Beginners - February 2013 (Page 56)

I really need help with this program not working correctly
 
Hi so I made a program using if statements, but when I put 64 as the input it does include all of the correct input except for the last part "Not divisible!" It...
[1 reply] : You should edit your post and use code tags under the format option. ... (by SamuelAdams)
Do-While Loops - ALMOST COMPLETE
 
This program should work as follows (and it does work - almost): Input sequence of integers (zero to stop): -4 3 -20 10 45 100 -1 0 The sum of positive num...
[1 reply] : try removing the " ; " right after your if statement :) (by simpleasy)
[Deleted]
 
[1 reply] : http://www.cplusplus.com/doc/tutorial/files/ (by simpleasy)
by Doth
struct in class not working properly
 
I started doing a program that is supposed to solve crosswords ( search for words in all directions ). So basicaly I have a field [X:Y] , there is a letter on ...
[3 replies] Last: OK, I found the mistake. I'm sorry to waste everyones time , this is t... (by Doth)
by JakOrp
troubleshoot prime number calculator
 
Hi i've searched through some articles and i think the mathematical part of my code is correct, but it doesnt run as expected. many thanks in advanced. edit: t...
[13 replies] Last: Thanks for your help! (by JakOrp)
Kindly need a help ...
 
I am just a new student for programming .. i really hope i can find help here coz i badly needed it now .. I have here a program .. I hope you ca help me bou...
[2 replies] Last: You are not even going to give him an answer? Try something like: ... (by Pickle Gunner)
getline in fstream
 
my assignment has me taking data from a .txt file and putting it in a program and doing some calculations with it. the .txt file. 400 25.5 1/4 pound hambur...
[2 replies] Last: Thanks that was just what i needed! (by Mobius1)
Strange syntactic error in the code.
 
Hi Everyone, I'm a total starter with C. That is a simple hometask that I'm trying to code but get stuck with a syntactic error when trying to create a loop....
[8 replies] Last: Thanks for the hint! I really used the wrong syntax. It's working now!... (by wondersz1)
Help With Functions
 
I am getting the following errors: Error 1 error LNK2019: unresolved external symbol "double __cdecl CalculateAverageScore(int * const,int)" (?CalculateAvera...
[7 replies] Last: Case sensitive double CalculateAverageScore(int , int ); //declaratio... (by ne555)
How to verify input is an integer?
 
Hey all, Having trouble verifying an input is an integer. It's like this: I need to enter a number, and then check whether it's between 5 and 26, if so, i...
[5 replies] Last: Well, while I'm not really sure what int argc, char* argv means or... (by hellfire1)
by s1729
problem with delete[] in class
 
Hi guys. In the code below, I am making a class 'agent' and then making an array of agents in function 'main'. This throws the error given below. In the functio...
[5 replies] Last: Thank you Disch and ResidentBiscuit! You were right and I managed to f... (by s1729)
Problem with converting numbers with text
 
Im trying to write a program that could convert numbers to text. The main problem is that i only got error when i write a number between 100-999. I know i do...
[7 replies] Last: Please don't give out full solutions, redlichan. noted... I'm a new... (by redlichan)
Invalid Allocation Size in VC10
 
I am a beginner in C++ and I am trying to create a matrix calculator for addition and subtraction, 2Ddynamic array while avoiding to use #include <vector> I ...
[4 replies] Last: Thank you, I am still getting into it. I used your suggestions and the... (by mrmegusta)
How to get this example to work?
 
These are the variables: n = number of rectangles and/or trapezoids a = beginning x value b = ending x value h = width of each rectangle/trapezoid, (b-a)/n...
[4 replies] Last: Ok. I have the first part for you. (I'm sure there is a much more ef... (by aperio)
Plz help edit this c++ program?
 
this program is to store my name and print it. name has to have a limit of 10 characters. while loop has to end when i enter 10 characters or i press enter. but...
[3 replies] Last: @cire http://www.cplusplus.com/forum/beginner/91858/#msg493662 How man... (by zubair rockstar)
Mayan long count
 
This is what my teacher posted.. .and I HAVE NO CLUE on how to even start it! 1 Kin is 1 Day 1 Uinal is 20 Kin 1 Tun is 18 Uinal 1 Katun is 20 Tun 1 B...
[4 replies] Last: Do you understand how to convert seconds to HH:MM:SS? This assignment ... (by LB)
Generate an array of 500 numbers between 1-1000
 
Generate an array of 500 numbers between 1-1000. Sum the even numbers and display the total sum, sum the odd numbers and display the total sum. Display a coun...
[1 reply] : [quote=bugdray55s homework assignment]Generate an array of 500 numbers... (by LB)
by rcast
Ternary Operators
 
Can somebody explain in simple terms how this works and what it produces? a = --b ? b : (b = -99);
[6 replies] Last: Excellent. Thanks (by rcast)
Some techniques to learn C/C++
 
I want to learn C++. Could you please tell me how to learn C++,have any easy way,documents,ebook etc
[2 replies] Last: I think that he best way is to try and fallow some tutorials from the ... (by nedo)
Badly need a help guys..
 
I am just a new student for programming .. i really hope i can find help here coz i badly needed it now .. I have here a program .. I hope you ca help me bou...
[1 reply] : Wheres your problem? All I see is the assignment, not any work where y... (by ResidentBiscuit)
February 2013 Pages: 1... 5455565758... 67
  Archived months: [jan2013] [mar2013]

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