Beginners (Page 79)

EOF loop issue
I am supposed to do. 1. Use sentinel, nested and EOF loops to do file I/O. 2. Create a program fil...
[1 reply] : Initialize variables. You don't know what currValue is because it isn... (by GRex2595)
sales commission program
I need some guidance on what to do next. I wrote the program as much as I could. If you see a bett...
[9 replies] Last: I couldn't figure it out in time. Got an F :( I still don't know how ... (by gttomog)
Pointer crash
I'm obviously not very good at c++ yet. Having trouble understanding how to use pointers. Making a s...
[3 replies] Last: I still don't know why it crashes at runtime though Because when line... (by MiiNiPaa)
by Lee125
So...I know that the atoi function in the C++ standard library is supposed to convert a string into ...
[1 reply] : Even first link will show you b... (by MiiNiPaa)
Sum of powers of numbers 1 through 10
I need help writing a program that will calculate the sum of any power of the numbers 1 through 10. ...
[10 replies] Last: You should have double for sum because if you accept a double for the ... (by GRex2595)
Problem with the == part of an if statment
I am having a problem with my if statement as on the tutorial in the "Statements and flow control" s...
[4 replies] Last: @TarikNeaj Your post was not visible when I had clicked "reply". I s... (by Arslan7041)
Trying to convert from Celsius to Fahrenheit and then the other way
So I am trying to write a code that will allow the user with three options (figured that part out) ...
[9 replies] Last: I need the output file to be labeled Lawrence_celsius_output.txt and L... (by lolapurple)
Trouble getting my code through a test
I'm having trouble getting my code through my instructors test program. Can anyone help tell me what...
[2 replies] Last: And this is the compile error I'm getting. $ g++ -Wall -Wextra -ped... (by ManlyMartin)
by HG319
Binary search theory questions
Imagine you have 101 dalmatians and that no two dalmatians have the same number of spots. Suppose th...
[5 replies] Last: would it just be 7 comparisons? (by HG319)
Aligning brackets, and making readable code
Ive been in a C++ class for about 2 months now, and im actually working on a mid-term project that i...
[3 replies] Last: I find it difficult to place for loops within for loops ( confuses t... (by AbstractionAnon)
Rewriting Strstr
I'm trying to write code that does the same thing as "strstr". However its just doing the same thing...
[2 replies] Last: Perfect thank you. I didn't even think about how it could check for th... (by TieRein)
Programming advice with loops
I am supposed to do. 1. Use sentinel, nested and EOF loops to do file I/O. 2. Create a program fil...
[no replies]
while if loop
I am trying to write a stop command if the number of test is 0. I tried a if else statement and it d...
[no replies]
by Gi Pa
Write a print function
Hi guys, I'm come back with another stupid question. I have to write a function that print in a tx...
[no replies]
by bhalo
reverse a integer by recursion
how to do it using recursion? #include <iostream> using namespace std; int f(int n) { strin...
[no replies]
How do you stop the infinite loop? When I test it out by putting in the number 2. It gives me in...
[10 replies] Last: calisabeth (25) @Subscriber360 Our teacher didn't teach us the use ... (by Subscriber360)
outFile command in another member function of a class
Although I have professionally programmed in the past (Java, Coldfusion) I'm following a course on C...
[4 replies] Last: Thank you very much! That solved it all. (by sweetsunray)
dec to binary failed...pls help
I want to do a conversion tool from decimal number to binary. I tried calculated on paper many times...
[1 reply] : Hi i got a number of functions that i used some months ago for convers... (by andy1992)
proxy class
Can someone explain to me what is a proxy class? I need explanation not a link thanks in advance
[2 replies] Last: Proxy is a class which adds indirection layer to another object. There... (by MiiNiPaa)
by HW95
Retrieving an integer from a .txt file
Ok so I'm trying to retrieve an integer from the file reference1.txt but every time it keeps failing...
[4 replies] Last: I don't know how but what seems to be my original code I posted decide... (by HW95)
Pages: 1... 777879808182
  Archived months: [feb2015]

Cannot post in this page. To post a new message, go to the first page.