Beginners - April 2012 (Page 45)

text based video game....please don't question it.
 
please help. at line 26, the program ends. the not equal to "eric" portion of the code is not working as it should. Any advice? Thanks. #include <iostream...
[6 replies] Last: You want to do it this way: I've explained the differences in comment... (by Stewbond)
Why is my function wrong?
 
Hello, Practice working with functions and I don't understand why I'm getting this wrong. 1)I'm not understanding why the output for both functions is ...
[1 reply] : In the first function, one, you swap the variables in theory. Howeve... (by Azagaros)
by Lebron
Where is the problem?? C++
 
This function is supposed to write squares like. when you enter 3 +-+ | | +-+ or when you enter 5 +---+ | | | | | | +---+ I believe this code...
[no replies]
Markup program Feedback
 
hi im new at C++ program and i would like some feedback on how to make this better please here is my HW assignment Markup: Write a program that asks the u...
[6 replies] Last: code tags please. (by ui uiho)
Problem with vector, help :)
 
Im trying to use vectors in a server im making, but i dont understand them completely yet, i can compile my game, but when the event gets called, the program ge...
[1 reply] : google vectors. if you want to add an element to the end of the vect... (by ui uiho)
by ex81
multiple out files, is there a way to shorten this
 
outFile1.open(patho1, ios::app); //creates new blank file for export if (outFile1.fail()) { cout<< "Output file failed to open"; exit(2); //l...
[4 replies] Last: for (i=0; i<4; i++) { ofstream outFile ; } for (in... (by ex81)
reading and writing to a file
 
This is my first time trying to get a program to read and write to a file. First I created a file of random numbers in notepad and saved it to dev-cpp bin. I...
[1 reply] : void get_file (ifstream &fin, ofstream &fout) { char in_file , out_fi... (by paulthepenguin)
Is there a way to loop to the beginning?
 
I have two questions. The first is that is there a way to make the user be able to shut down the program at anytime by typing something in a certain string? Or...
[2 replies] Last: std::string, we get reasonable comparison logic auto-magically. But h... (by cire)
by Whaler
Error C2248
 
// My Name // // Program Average calculates the average of five test scores where the // lowest score is dropped for each student. The program also calculates...
[8 replies] Last: I'm not asking anybody to do my homework, as you can clearly see I hav... (by Whaler)
main .cpp not including a func-proto header file
 
My function definition .cpp file includes my header file fine, but my main() .cpp file doesn't. First definition (for opening my input and output files) isn't a...
[4 replies] Last: Again, the original problem was main() .cpp file not going outside the... (by erandall)
by Lebron
C++ please help.. This square doesnt work.
 
#include <iostream> using namespace std; int getInput(void){ int s; do{ ; cout<<" Enter length between 0 and 64 (-1 to exit): "<<endl; cin>>s; ...
[no replies]
Allegro extreme problem
 
hello ive been using allegro for maybe a week now and ive noticed when i load to many BITMAPS my program starts to not respond. Well how am i supposed to have i...
[no replies]
I need help ...im new to this.
 
I have two questions that i would like an explanation for. 1.What is the difference between a local variable and a data member 2.Explain the purpose of a ...
[1 reply] : http://www.google.com/ Has all your answers. P.S. Should learn the di... (by ResidentBiscuit)
Identifiers with array of structs????
 
I'm having trouble figuring out how to identify everything with an array of structs, here is my code, please help. struct players { string fname,lname; ...
[no replies]
by hay123
writing code to find standard deviation and the median?
 
I am also supposed to find and print out the median and standard deviation, but how would i do that? The user can enter any order and any kind of numbers, so ho...
[no replies]
Hamming Distance
 
Hi Can anyone please help write a Hamming Distance function that compares two strings, then return the Hamming Distance between them.
[8 replies] Last: You'll need to use a loop, for n in [0, length_of_shortest_string - 1]... (by Duthomhas)
Begginer Projects
 
I have been tinkering with c++ and i was wondering if you could reccomend some begginer projects? Nothing too easy and nothing overly impossible for a beginner....
[3 replies] Last: Well that would be a good place to start: http://www.cplusplus.com/doc... (by Lowest0ne)
String input validation?
 
Hi guys, I am attempting to complete an assignment that requires the user to enter in the name, number and points scored for 5 basketball players. My input vali...
[6 replies] Last: isLetter needs a lot of work, seems like the rest of it does to. if(... (by Lowest0ne)
Credit Card C++
 
Companies that issue credit cards often use algorithms to create credit card numbers that people will have difficulty generating at random. One approach is to ...
[no replies]
Creating a function to see if a word is a palindrome
 
I have to create a function in which i reverse the inputted word and compare if it is a palindrome with the original word using pointers. Here my code...can ...
[1 reply] : Try the following function bool is_palindrome( const char* first, co... (by vlad from moscow)
April 2012 Pages: 1... 4344454647... 66
  Archived months: [mar2012] [may2012]

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