Beginners - August 2013 (Page 42)

Homework Help
 
hello, i am stuck on a problem. we have a homework problem where we have to use if and else statements. i somewhat under stand them when we did simply payroll p...
[8 replies] Last: @ jkevin Use of toupper is OK, except the OP should do it once for t... (by TheIdeasMan)
by kelbs
Good programming practices
 
Hi all! First post on the forum. I've been reading some of the articles which I find extremely helpful. My question deals with good programming practices, but f...
[2 replies] Last: @jkevin 1. answer needs to be initialised, otherwise the loop might n... (by TheIdeasMan)
by spangg
Expected Unqualified-id
 
Hey guys! I'm new here and new to C++. I'm trying to do this exercise: Read a set of integers into a vector. Print the sum of each pair of adjacent elements...
[2 replies] Last: Oh wow did'nt realise that. Thanks! Problem solved. (by spangg)
please help, Do-While
 
Hello, how can I use a do while loop to continue running the program, this is what I have so far, #include <iostream> #include<iomanip> using namesp...
[3 replies] Last: use this: do { cout << "Please enter two numbers to calculate " << s... (by kradragon94)
by Jemar
What Do you Think is wrong?
 
To get the gross (multiply hours worked to Hourly rate) To get the retirement (multiply gross to 7percent) To get the Taxes (multiply gross to 20percent) ...
[4 replies] Last: @coder777 Thanks buddy for the making me Think what should i do. now ... (by Jemar)
Code
 
When the loop is supposed to be repeated the program endlessly does cin.get();s. Why is that? #include <iostream> #include <string> using namespace std...
[no replies]
by jkevin
For loops
 
Can someone explain me how the for loops work in this piece for code real quick? int k; for(i=1;i<=5;i++) { for(j=5;j>i;j--) cout<<' '; for(k...
[2 replies] Last: A formatted code is easy to read than unformatted. For example int k... (by vlad from moscow)
Graphics (1,2)
 
Now i am aware that there are a few threads already on the site about this topic. But im wondering where the best place to start is. First off, im not looking ...
[29 replies] Last: @Chillieman GraphicsGale is a pretty good editor for 2d/pixel art. You... (by knn9)
Trouble understanding File input/output and .get()
 
Hey guys I've trouble understanding (inFile >> ch).get(); . After I added this piece of code, it start working. I found the solution on the Internet but I real...
[6 replies] Last: you can still use getline(), and then thefile >> ws to "Eat up" leadin... (by jkevin)
by JB2005
trouble with word/letter count using files.
 
Playing with file input/output for practice and I don't get why the word count and letter count are the same number. I have found some information on closing th...
[7 replies] Last: You're welcome. I'm guessing it measures the size of the string? Yep... (by norm b)
Continue Until Choosing to Exit
 
Hello, Im having trouble getting the program to continue running until the user chooses to exit. I have managed to create an exit statement, however it doesn't ...
[2 replies] Last: Thanks, I know I'm suppose to use the do-while, but Im not sure how to... (by joeplus)
homework help - csting reverse characters using pointers.
 
Can someone tell me how to at least start correcting my program?? I submitted to instructor for review and his response was: Your reverse routine is correct. ...
[12 replies] Last: Thank you for explaining, I still don't really understand but after ad... (by luckyelee)
Pythagoras
 
Hello everyone, I am 14 years old and very new to c++, though i had previous programming experience. I've been working on a simple Pythagoras program and a...
[3 replies] Last: Thank you very much! (by ti83programmer)
C++ windows form breaks after input
 
program break after input int textbox ISBN i think its something to do with the mod11Function //My Functions bool blnDateFormatFunction (string strDat...
[no replies]
Why should "return 0" at the end of main cause crash ?
 
HI Everyone ! I faced something strange today ; This is my code : #include "StudentFuncs.h" int main () { fstream stubin ("stubin.txt" , ios :: out...
[12 replies] Last: The read problem relates to the way strings work with pointer internal... (by andywestken)
Increment/ decrement doubt
 
I was just playing with the increments etc. But I am unable to find the reason of the output. #include<iostream> using namespace std; int main(){ int i=1; ...
[15 replies] Last: @Cubbi And the point of view of the C++ standard is that the two inc... (by vlad from moscow)
break
 
what may be reason of error it is showing errors 1.break statement is not in a loop 2.case label not in a switch statement! case 3: display(); printf...
[6 replies] Last: Don't delete your posts, I've posted even worse garbage on this site a... (by Computergeek01)
C++ Quiz Part2
 
Continuing the questions I had on part 1: QUESTION 9 What is the output of the snippet below? //suitable #includes class A { public: void name(...
[2 replies] Last: Thank you very much! :-) I'll try 17 without the typos (by ant1bball)
by mmep93
goto (looping) error
 
I just want to ask what does this error means "goto bypasses initialization of a local variable". Here is the part of my code where I used the goto , pleas...
[8 replies] Last: #include <iostream.h> #include <conio.h> main() { clrscr(); u... (by vlad from moscow)
void pointers and pointers to functions
 
Pls i need good explanations what void pointer is And how pointers to functions work Thanx
[9 replies] Last: operation's third argument is a pointer to a function accepting two in... (by AbstractionAnon)
August 2013 Pages: 1... 4041424344... 51
  Archived months: [jul2013] [sep2013]

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