Beginners - May 2010 (Page 16)

by Gio
Allegro Library Installation
 
Hi, I have a rather simple question: How do you install Allegro 4.4 after downloading it, as in setup your program to use it? I use Visual C++ Express 2010.
[7 replies] Last: You're gonna need about 3 cups of coffee or maybe coke or something el... (by blackcoder41)
Cannot output the text file and print the student result
 
1. Add new member information 2. Print member list 3. Exit #include<iostream.h> #include<fstream.h> #include<dos.h> #include<conio.h> #include<stdl...
[5 replies] Last: Actually, we never give full solutions around here. What the heck a... (by Albatross)
by wasing
Login Program
 
first off some introduction I have extremely basic c++ programming experience. I am currently taking a game programming class as an elective in high school b...
[8 replies] Last: Ok, look, when you want to assign a value to a variable you must use t... (by m4ster r0shi)
I thought Inheritance does not inherit Constructor!?
 
class Employee { protected: char EmployeeID , Name , EmployeeType , Department ,TelephoneNumber ; int count ; public : //Constructor & Destructor ...
[5 replies] Last: O okay ty (by DoomCarnage)
Conversion Master 3000x
 
I've literally just started learning C++ so i thought i share my first real-ish program to get some feedback, please feel free to comment on the program as any ...
[5 replies] Last: You might want to take a second look at the output of 5/9 and 5/9.0... (by moorecm)
Me vs Computer
 
I want to see who got the high number me or the computer but I don't know how to see who got the higher number. How do I check to find out who got the higher...
[17 replies] Last: Okay, now I'm done thank you. (by Callum5042)
If I input first name-last name how can I make the output last name-first name?
 
I want to change the input around, how can I pull off something like this? I really need help. For example if I input Bob Joe I would want the output to b...
[4 replies] Last: This type of logic can work. #include <iostream> #include<ccty... (by rajroshi)
having trouble with the output of my function
 
this program is supposed to convert the weight in stones to lbs this is what i wrote: // convert.cpp -- converts stone to pounds #include <iostream> int ...
[1 reply] : You're missing a newline in this line: cout << "CRacK Rock = " << sto... (by Albatross)
undeclared identifier
 
I'm getting this error message "error C2065: 'calaverage' : undeclared identifier' I can't figgure out why. I gave calaverage a value in line 11. #inclu...
[8 replies] Last: Hey guys thanks for your help, i finally got it to compile. (by econ330)
by tehjoe
crashing out?
 
I have a binary file that has 1000 null versions of a strct called customerInfo that looks like this struct customerInfo { string user; string pass; s...
[3 replies] Last: It uses c-string instead of std::string. (by blackcoder41)
Having trouble multiplying two variables
 
The program is supposed to take the users input in "furlongs" than convert that to yards. One furlong is 220 yards... so this is what i have so far but i keep g...
[3 replies] Last: Reinstall XCode. Your copy of GCC 4.2.1 is insane if that is really th... (by Albatross)
error C2065: '' : undeclared identifier
 
Hello All! I have spent all day trying to solve what i thought was going to be an easy problem. I am using MVS 2008. So here is the skinny. I create...
[11 replies] Last: Use inclusion guards. #ifndef YOUR_HEADER_HERE_H #define YOUR_HEA... (by helios)
How would I change certain letters in a string to uppercase?
 
For example if I had the user input "whats on television" How would I make the output become Whats On Television?
[4 replies] Last: An STL algorithm way: #include <algorithm> #include <cctype> #... (by Duthomhas)
by nammae
What is the different between string and char* in C++ (1,2)
 
Hi, everyone. I tried this following code and there is nothing appear: #include <iostream> #include <string> using namespace std; int main() { ...
[25 replies] Last: +1 helios & Disch - Disch's examples clarified this. Thanks - not sure... (by closed account Lv0f92yv)
console text-editor
 
I have just made a console type text editor but I can't figure out how to save the text file and if I do make it then will it be text? #include<iostream> #in...
[16 replies] Last: [quote=clover leaf]Guys keep it simple I'm only a beginner. What we sh... (by Duthomhas)
Stuck on this, see if you can see the problem
 
I am working on a project and I admit its an assingment but I have looked at it for a week and I am going crazy. I believe the problem is in the IsValidDay func...
[3 replies] Last: I know this is already solved, I just wanted to chime in with a style ... (by Disch)
by JoeyS
Use of string arrays in functions?
 
Hi, I have the following code which works, but can someone please help me with how I may instead put the tasks of populating the array and printing the array in...
[1 reply] : One way to do it is this: #include <iostream> using namespace std... (by m4ster r0shi)
Wierd Array Behavior
 
I have been working with c++ for a little bit and have just noticed some interesting behavior with arrays. I have put my code on pastebin since it is startin...
[2 replies] Last: Thank you helios. I figured it was something along those lines but i w... (by squirtman59)
by Leydin
"chaffArray[1] = new (buffer + 50) chaff;" What exactly is this doing?
 
Hello. I'm working on an exercise problem from C++ Primer Plus. What I am supposed to do is place an array of structures into a buffer and then initialize the s...
[3 replies] Last: Well if you read the comments above the code you see that the exercise... (by Leydin)
by wtf
Would somebody please tell me how to use the codeblocks debugger
 
Like give me a walkthrough, a step by step guide, telling me everything I need to do to setup my program in order to be able to benefit from the debugger. Its ...
[4 replies] Last: Well I've watched some videos on youtube, done exactly what they've to... (by wtf)
May 2010 Pages: 1... 1415161718... 33
  Archived months: [apr2010] [jun2010]

This is an archived page. To post a new message, go to the current page.