49,757 Topics

Member Avatar for
Member Avatar for humantaco

Can anyone post the code to these? 2.1 Banner Write a program that outputs your unique name (no longer than 8 characters) in large capital letters that are composed of asterisks ”*” and spaces ” ” in a 6 × 6 For example, my unique name is: unix-prompt >> ./a.out …

Member Avatar for Fbody
0
151
Member Avatar for humantaco

2.1 Banner Write a program that outputs your unique name (no longer than 8 characters) in large capital letters that are composed of asterisks ”*” and spaces ” ” in a 6 × 6 For example, my unique name is: unix-prompt >> ./a.out 2.2 Escape this! Write a different program …

Member Avatar for Fbody
0
158
Member Avatar for Kromletch

I am working on a C++ program that wants me to read in 52 unsorted states. All the states have randomly Capitalized letters.The objective is to sort the states in alphabetical order by the last letter of the state. Case sensitivity is the least of my problems but i am …

Member Avatar for Fbody
0
269
Member Avatar for Barca

Hi, I know this is asking for much and I'm being lazy but I have an ASCII text file with multiple rows of text. each row contains the name of the city followed by a ">" and then the countries name. I wanted to know if its possible to have …

Member Avatar for Barca
0
153
Member Avatar for patrick772goh

I am using Visual C++ 2003, Previously i am using this to call test.dll stored in the root directory folder name root1 and in the sub folder root2 [code]HINSTANCE result = NULL; result = LoadLibrary(L"..\\root1\\root2\\test.dll");[/code] It work fine in normal OS. When i run in Win XP regional language setting …

Member Avatar for Mr.What
0
388
Member Avatar for NathanMc

Hello. I'm currently working on a C++ assignment where I need to calculate a student's GPA from a text file containing 4 grades and the corresponding credit values for the class. I know how to write the program to get the correct GPA, but I am having problems figuring out …

Member Avatar for NathanMc
0
307
Member Avatar for akmalhisyam

I have question, why when I don't put the "inFile.ignore()" line, the program doesnt work. What is the thing that the line ignore? [code=c]while(1){ inFile.getline(name,50); inFile>>ass1>>ass2>>ass3; inFile.ignore(); if(inFile.eof()) break; cout<<name<<" "<<ass1<<" "<<ass2<<" "<<ass3<<endl; }[/code] here is the content of the input file : akmal 3 2 1 akmal hisyam 1 …

Member Avatar for akmalhisyam
0
3K
Member Avatar for muze

hello guys...im writing simple TAPI app which, if I call to my landline number, prints the message.If you need variable declarations and initialization, I"ll give, but i know they are fine. This code should work but it does't, everything looks fine here...:confused: [CODE] void WINAPI TapiInitialize() { LPLINEDEVCAPS lineDevCaps = …

0
80
Member Avatar for NicAx64

This program will use arc-consistency to remove the invalid values from the variable domain and generate the permutations for the 8 queen problem. Here is the source code with the make file. chessboard.h [code] #include <iostream> // uses std::cout std::cin #include <stdlib.h> #include <stdio.h> // uses exit(0) and fprintf #include …

Member Avatar for Ancient Dragon
0
646
Member Avatar for Taimur.Ace

I need chess game implemented in C++,it should be a 1 player game with AI techniques implemented for the computer. i m willing to pay. <snip,snip,snip>

Member Avatar for NicAx64
-2
354
Member Avatar for bobjohnson

I have to write a C++ program that: Declares and defines a class called “bankAccount

Member Avatar for roshaero
0
220
Member Avatar for Sarama2030

how is c++ a graphical user interface programming language, i mean how does all the code fit in to develop window based applications.

Member Avatar for Stefano Mtangoo
0
139
Member Avatar for GURTEJ UBHI

HOW TO WRITE A PROGRAM IN C to print the following pattern: 3 323 32123 323 3

Member Avatar for Ancient Dragon
-3
75
Member Avatar for fire_

Hello. Can someone tell me how can i add string to combo box? i tried [CODE]GetDlgItem(IDC_COMBO1)->Items->Add("Text"); [/CODE] but it didn't worked. and everything that i could find on google didn't helped :( so i'm asking you pros ;)

Member Avatar for Ancient Dragon
0
113
Member Avatar for broli100

Hello, I want to do classic "save as" function, how you know it from all programs, but I have a problem - when I put constant pathname in fopen function , like "file.txt" ,it works. But when I type a variable char[], it does nothing. Then I looked for function …

Member Avatar for broli100
0
221
Member Avatar for bigcat1969

Hi there, I'm an old programmer trying to get back into it and vastly confused. I know or at least knew how to program in C and found it fairly easy, but Windows programming has me stymied. Basically I'm trying to figure out Win32 Api and have started to get …

Member Avatar for William Hemsworth
1
2K
Member Avatar for neoraghav

Hi, i accidentally given input as character for a integer variable.....then the program went crazy and just flooded the console..... so, is there any way to handle this exception......and how to achieve that thank you

Member Avatar for neoraghav
0
150
Member Avatar for xsnake7

hi, how can i use the result of a function without having it repeated ? like in the code down there i have to use the result of the function [B]get_sides()[/B] in all of the other functions..but the way i coded it down there will make me enter the values …

Member Avatar for xsnake7
0
243
Member Avatar for neoraghav

Hi, i want to konw how to create and use thread in c++[vc++ 6.0], what all are the header files needed, can anyone please write a simple code for that...... can anyone please refer to some links where i can get good hold of c++ threads

Member Avatar for Ancient Dragon
0
274
Member Avatar for myk45

i needed to write a simple program to demonstrate the CRC mechanism in Networks. i needed a string of bools to be XORed with the polynomial. Well, i used <bitset> but that did not help much. So i just used a bool vector. This is how i proceeded. Here, when …

Member Avatar for myk45
0
135
Member Avatar for jtylerboy222

Can't get the right output.. Trying to calculate mean, standard deviation, & variance through data structures. [B]Output:[/B][CODE]Mean: -9.25596e+061 Standard Deviation: 2.2836e+046 Variance: 5.21481e+092[/CODE] [B]Code:[/B][code] #include <iostream> #include <stdio.h> #include <math.h> using namespace std; struct StatData { double Data[10]; double mean; double stdDev; double variance; }; int main() { const int …

Member Avatar for burcin erek
0
170
Member Avatar for ubahn

Hi guys, I need to find a fast algorithm to generate all possible sentences from a given words list, e.g: Words : word1 word2 word3 Output : word1 word2 word3 word1 word3 word2 word2 word1 word3 word2 word3 word1 word3 word1 word2 word3 word2 word1 This implementation needs to be …

Member Avatar for elsiekins
0
37
Member Avatar for neoraghav

Hi, i have created dll and lib files using vc++ 6.0.. how can i use this files in my program.... i want to know how to link the lib and dll file in which ever program i want using vc++ 6.0 please help..... thank you....

Member Avatar for neoraghav
0
199
Member Avatar for ragoo

Hiya, I dont know if I am in the correct forum i.e. Networking. I am having problems with Server / Client communication. I send data over to the client and it records and prints out in cout, but what I want to do is print in a file. I used …

Member Avatar for Ancient Dragon
0
70
Member Avatar for moteutsch

I'm trying to make my rich text box resize with the window as it is resized. So, if you make the window bigger, the text box will become bigger as well, so that it is always filling the window. Here is my code, but when I resize the window nothing …

Member Avatar for Milton Neal
0
122
Member Avatar for dispatcher

hi dears how can i use parallel processing or other meaning which comment or header is useful in c++ to access to dual core of cpu in inverse of bulk matrix dimention for decreasing time execuxion , i know fast method as same as L.U , ... . but i …

0
24
Member Avatar for knellgust

#include <iostream> #include <iomanip> using namespace std; int main() { char item, code [5] ; double number, money; const double itemA=50, itemB=60, itemC=70, disc=0.8; const int size = 10; cout <<"Enter the item you would like to buy: A,B, or C: "; cin >> item; cout <<"Enter how many you …

Member Avatar for Stefano Mtangoo
0
104
Member Avatar for plex_Rominus

I am still new to C++, I've tried drawing a horizontal line but i keep messing up and instead end up drawing a vertical line. could you kindly direct mev on how to go about it.

Member Avatar for mrnutty
0
37
Member Avatar for PrOwr!+3r

I am working on a grading program and I am having trouble passing the structure by reference and by pointer. I am also trying to convert the total numeric average into a letter grade? Should I use a loop or an array?

Member Avatar for mrnutty
0
35
Member Avatar for emko

Hi, I need to make a program that counts the frequency of characters in a file, then outputs how many times each character appears in it. I am trying to make a class for it, but I am having difficulties figuring out how to do the definitions for each method. …

Member Avatar for mrnutty
0
254

The End.