
please wait
Program using getline doesn't work after something is already input? |
I made a program using getline that works fine. When I copied that program, word for word, semicolon for semicolon, it doesn't work anymore. I'm assuming that t... |
May 8, 2012 at 4:21am
[4 replies] Last: Thanks, it works now. From now on, I will use cin.ignore(); ... (by Gregory Sakas)
|
by pholotic
problem with variable type converions
|
Im writting a program that allows the user to create a password that is encrypted to a text file. So far, I can create a password and guess it correcetly/incorr... |
May 8, 2012 at 4:15am
[6 replies] Last: Sounds like a lot of if statements... thanks for the help. I'll keep y... (by pholotic)
|
by ballspwner
I need help with this program
|
write a program that will have a visual interface for a student info system that will record a student ID, first name, middle, intial, last name, DOB, phone #... |
May 8, 2012 at 4:05am
[1 reply] : What part do you need help with? (by Zhuge)
|
by Aytzz
Pointers
|
I'm following the tutorials on the site and I got to pointers. // more pointers #include <iostream> using namespace std; int main () { int firstvalue = 5... |
May 8, 2012 at 4:04am
[4 replies] Last: doh, even though this is already resolved, I made a diagram to show it... (by Disch)
|
by jmustudent5
What do I actually write in?
|
Hello, I have just started looking in to programming. I am trying to write my "Hello World" program but I don't understand which software to use. I have been... |
May 8, 2012 at 3:41am
[9 replies] Last: Ok well I am on a MacBook. I have tried downloading a Code::Blocks lin... (by jmustudent5)
|
Program hangs at bitwise multiplication function |
Hello all! So I'm doing a homework question asking me to code some Egyptian division, but that's not what I need help with. The problem is that I am only allo... |
May 8, 2012 at 3:02am
[2 replies] Last: Wow, don't know how I ended up with that! Thanks for looking through ... (by Cameron Basham)
|
by Hydrasin
How do i make this a function?
|
Currently working on a project that is supposed to create an insert sort linked list, then through an option in a switch function, return the list. Here's what ... |
May 8, 2012 at 2:35am
[no replies]
|
by turning123
User input array problems
|
I am being asked to take the average of an array that is supposed to be populated by the user. I have already setup the averaging function and am just having a... |
May 8, 2012 at 2:14am
[2 replies] Last: for(int i = 0; i < size - 1; i++){ cin >> arr ; } ... (by ResidentBiscuit)
|
by Omar Alamy
Reading file into dyn. array
|
Hi Im having trouble with the syntax to store data from a file into a dynamic array, for example, if i had a data file with the following: 1 2 3 4 5 an... |
May 8, 2012 at 2:10am
[no replies]
|
by Anomanderis
Template function within template class
|
Hello All, I'm guessing I'm making some sort of rookie mistake here. Basically, I have a class with template member functions, but I feel my class is not recogn... |
May 8, 2012 at 1:16am
[no replies]
|
by inform880
searching a text file for a string
|
Hi, I want to find a certain line in a text file. The text file looks like this: hi=hi! bye=bye! how are you doing=good! I am using getline(). H... |
May 8, 2012 at 12:58am
[8 replies] Last: Start over at the beginning of the file every time you have a new sear... (by cire)
|
by kfarrar
Overloading insertion/extraction operators
|
Good evening! I am in an introductory C++ programing class working on a project that I am having some troubles with. I am having trouble overloading the i... |
May 8, 2012 at 12:47am
[no replies]
|
by cppkyle
calculate percentage of reps
|
Hi everyone, I am new here. I've been doing c++ for 2 years now and for some reason I cant figure out why the percentage for each party is giving me 0 for the a... |
May 7, 2012 at 11:43pm
[3 replies] Last: Don't worry, even the best make mistakes. (by paulthepenguin)
|
by MFThomas
1337 translator program (File I/O)
|
Here's the directions: http://tinyurl.com/7b8yltp Basically, you need to read in text from one file and output to another file, except translated to 1337. I... |
May 7, 2012 at 11:42pm
[3 replies] Last: I'm not really sure I can help much short of giving you the answer, bu... (by paulthepenguin)
|
by JCharles
struct help
|
I have the following program below I have the output but i dont know how to get it. The out put gives the names Jane Doe and Joe Public along with their GPA's p... |
May 7, 2012 at 11:27pm
[6 replies] Last: it is we just need to understand the concept. We dont need to get an o... (by JCharles)
|
by zertech
A* Pathfinding. Almost works 100%(SDL)
|
Hi So i just finished a semester of C++. For my final project i attempted an implimentation of the A* pathfinding algorithm. It almost works 100% except in... |
May 7, 2012 at 11:09pm
[2 replies] Last: I actually re-wrote alot of the code, made it more efficient, and than... (by zertech)
|
by Tallrick
Converting a int to a char
|
Hello! I've run into a problem when I'm trying to insert an int into a string. I'm using the string::insert()-method for this which only accepts a char argu... |
May 7, 2012 at 11:02pm
[8 replies] Last: What if he wanted to insert at a certain pos in string. Another examp... (by Damadger)
|
by Keith504
Need Help With HomeWork
|
Recently I missed class so now I am confused with the homework. Can someone point me in the right direction for these problems? TY 1.Read in a list of 10 n... |
May 7, 2012 at 10:50pm
[3 replies] Last: You are welcome. (by paulthepenguin)
|
How can I have a user input spaces? |
In c++, I want a user to be able to enter an entire phrase, spaces and all. I know using a string doesn't work. What would work? |
May 7, 2012 at 10:35pm
[2 replies] Last: string do work but with the aid of getline so if you do it like this... (by ozone)
|
by DSaba
invalid types `int[int]' for array subscript
|
I am calling this function and receiving the error "invalid types `int ' for array subscript" float Average(int grades) { float total=0; for ... |
May 7, 2012 at 10:33pm
[3 replies] Last: Thank you both for your help. I should have posted the entire code I w... (by DSaba)
|