Beginners - November 2011 (Page 56)

Manipulating string length()
 
Hi guys, I need help writing a program that formats a paragraph from user-inputted words. The user should be allowed to input the desired width of the paragraph...
[3 replies] Last: Hey try out my algorithm: Just change the name string to your input_li... (by happykiller)
by Ch1156
C++ Counter help
 
Ok so im building a counter that will continuosley count up. There is no limit but i cant figure out how to not put a limit cap on it? Code: #include <io...
[6 replies] Last: I just wanted to add this: This is an infinite loop: while(true) or... (by happykiller)
Call function
 
I am working on a program right now to determine whether a not a person participating in a race qualifies for the next round based on their age and the time it ...
[3 replies] Last: Set the "i" variable above the "while(i != -1)" ... void CheckAgeT... (by happykiller)
by bigl
need help understanding what im doing wrong
 
we did this program in the classroom but i dont type fast and fell behind, im doing homework for it now but before i go on i need to figure why this one wont wo...
[1 reply] : Remove the line return total, avg; ; it's not needed here. These valu... (by andywestken)
What does the sleep function do?
 
can someone explain what the sleep function does.in this case here! #include <windows.h> #include <iostream> #include <fstream> using namespace std; ...
[8 replies] Last: Thank you i found a website that list them. http://msdn.microsoft.com... (by learningtocode14)
Getline not working in Looping statement....grrr...
 
My question is about while loop statements. In this program it won't seem to read what is in my input. after the first name and set of scores. It just prints th...
[1 reply] : Did you get this working? (by hondaek9)
can a pointer represent a whole array?
 
the tittle says it all. but if you believe that a pointer can not or can be representing a whole array cell then please tell me why and the logic behind it
[12 replies] Last: @andy: I never recommend the use of pointer arithmetic with dynamicall... (by Albatross)
linked lists help
 
could someone please explain the second part of the if statement in my code? i've been doing an assignment using lecturer notes and stuff i found online (we hav...
[2 replies] Last: thanks much appreciated (by smallmos)
EOL in c++(input)
 
hi guys,i am beginner in c++.i have two question? 1)how to write end of line in input(without getline)for integers? 2)how to end input with 0?
[11 replies] Last: Glad I could help. :) (by Stupebrett)
Math Tutor program help.
 
Hello I am having problems getting a function to generate random numbers multiple times for my math tutor program. #include <iostream> #include<ctime> #in...
[4 replies] Last: What do you want your program to do, exactly? Can you copy your output... (by mzimmers)
Updating one element of a struct and writing to a binary file
 
I've been trying to figure out a simple script to open a data file from an ice hockey management game and made a change to one element of a struct for each reco...
[3 replies] Last: Thank you very much. I've made the change as you recommended and this ... (by archibalduk)
hello world comes up
 
Hi , I recently downloaded C++ express and installed it when I started a new project I had an hello world come up in the editor, I tried to start another new pr...
[4 replies] Last: Delete all code and write your own? If it is something else we could p... (by vlad61)
How do I ask an if statement if a variable has no value?
 
I'm fairly new to programming, so I really only know basics. But I'm trying to make an if statement that basically says: If this variable doesn't have a val...
[7 replies] Last: Hmm... ok, thanks for the help :D (by jp01cf01)
by gwiz
Banking Simulator Gone Wrong :(
 
EDIT: also, if you do pick 3, after you put how much you want to deposit, it completely skips the getline(cin, accountChoice) If you run this program, and fo...
[3 replies] Last: @gwiz I changed your menuOption from an int to a char. By checking a ... (by whitenite1)
Error Handling problem, need help
 
Good morning everyone. I have been working on the following program but I can't get the invalid argument to work. Every function works execept when I enter a da...
[9 replies] Last: I can't get the correct dates to show. So now that your setDate fun... (by Moschops)
At wits end!
 
Everything in my program is working except I need it to calculate the Total MPG of both tankfuls of gas and it is not ending on the sentinel. I am 2 months new ...
[7 replies] Last: I hate to keep hassling you but do you see why my program will not ca... (by codekiddy)
compiling error 17: error: expected initializer before 'void'
 
I've been trying to get rid of this error for the past couple of hours, if anyone could help me get rid of it that would be great. Thanks! When trying to compi...
[7 replies] Last: Don't forget this line down below: Before: void NumberOfBlanks(strin... (by bcthund)
by kw1991
how do you make a graph?
 
I have to write a program that will plot a sine signal graph where y = 1 unit and x = 20 ms i have no idea how to even begin this program because i have neve...
[13 replies] Last: In WM_PAINT * CreatePen/ExtCreatePen to create a pen to draw with * ... (by andywestken)
by alend
How sizeof recognize the end of array
 
string array = { "23", "5", "-10", "0", "0", "321", "1", "2", "99", "30" }; int elements = sizeof(array) / sizeof(array ); std::sort(array, array + elements)...
[2 replies] Last: sizeof is not a normal function. It is a built in command that will re... (by hamsterman)
Returning from function to function
 
So if i am in 'int main', then i go to function 'string choose_pokemon', then from there i go to function 'string main_menu' and then 'string pokedex' (where th...
[1 reply] : You have't given enough info. The funtion should return when you call ... (by andywestken)
November 2011 Pages: 1... 5455565758... 65
  Archived months: [oct2011] [dec2011]

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