Beginners (Page 55)

Quick question
 
I am trying to decipher the following code, it is intended to read a take a string argument which is...
[3 replies] Last: fname and ifs are just variable names used in your code. The fname var... (by Peter87)
Stringstream?
 
I need a better understanding of how stringstream works. What I am trying to do is write a code that...
[5 replies] Last: Oh yes I understand now, I guess I was overthinking it since classes a... (by shareyourjoy)
Can somebody explain what for(;;) does in C?
 
Can somebody explain what for(;;) does in C? for(;;) { while (something) { } } ...
[3 replies] Last: it can exit by writing a break condition. (by anup30)
Returning to C++ (on a mac)
 
Hi there I went back to university and did a computing degree 6 years ago. It was a very "all rou...
[no replies]
by Lee125
Queue and Stack. Confuse???????
 
Can anyone expalin what is different between Queue and stack. Why in this example of queue they did...
[7 replies] Last: A queue and a stack are both data structures which hold multiple eleme... (by Faison)
by Ned757
I know this piece of code won't work but can you help me make it work?
 
#include <iostream> #include <stdio.h> using namespace std; int main() { cout << "...
[5 replies] Last: Calling the getchar() function has a side effect, so it would be bette... (by Faison)
by SCB3
Finding it hard to use C++ for minesweeper
 
i
[4 replies] Last: What happened to your first post? (by Zhuge)
by jmag91
Help appreciated - Pass by reference (1,2)
 
In the Input function I am supposed to update the variables MilesDriven and GalsUsed. It says to do...
[21 replies] Last: The problem is on line 25: operator>> leaves the new line character ... (by coder777)
Which is the best program for c++.
 
please support your idea
[7 replies] Last: Planet's radius is "R". Also, 2 satellites were located(longitude and ... (by zorigoo12)
Converting string to stack<char>
 
Hello everyone, I'm working on a c++ assignment that requires me to push a string to a function, ...
[3 replies] Last: That seems to have worked, thank you! (by m0rteum)
HELP PLEASE URGENT :(
 
please help i need to make a program that will cout as a menu to choose from converter or calculator...
[6 replies] Last: cout << "Copyright law protected if copied or edited without my permi... (by giblit)
how does a save file work? how do i create it
 
Gonna try to keep this short. Making a game similar to zork basically a text based rpg and need to s...
[1 reply] : Have you read the tutorial on files? http://www.cplusplus.com/doc/tuto... (by LB)
by zoyboy
need a little help figuring out what's wrong
 
I have an assignment where I'm supposed to figure out grade information for multiple sections. I ha...
[14 replies] Last: #include <iostream> using namespace std; int main() { int highsc... (by zoyboy)
Using a do-while loop to validate input
 
I'm having trouble with this program. It produces the correct sample output given to me by my profes...
[15 replies] Last: It finally worked! Thanks a lot to both of you for all your help. (by steezedq)
by brenny
How C++ works differently in OSX and Windows
 
Hello, I've experimented with a little python, and some swift. I didn't really enjoy what I was l...
[1 reply] : The difference is not in the C++. Every application has to use the fa... (by keskiverto)
Copy constructor in derived class
 
let's say if i have 2 classes like: class base{ private: int age; st...
[8 replies] Last: what if the base class doesn't have a user defined copy constructor ?... (by keskiverto)
How to initialize Array in Constructor and access elements using an object
 
What is the proper syntax for accessing an array within a constructor and passing the argument into ...
[2 replies] Last: Thank you so much! (by vkhanhvy)
how to use cin in a if statement
 
How do I use a if statement with cin like, if the user types ok then this would happen? I only know ...
[1 reply] : #include <iostream> #include<string> int main() { std::string ch... (by MiiNiPaa)
I'm confused about this user defined data type.
 
What exactly does this do? So far I understand that it is defining a structure type as type, but I'm...
[2 replies] Last: myStruct is a synonym for struct type Line 6 is effectively: ... (by AbstractionAnon)
Troubles with setprecision
 
I'm trying to make a loan calculation program for my class and I'm having trouble with getting my ou...
[2 replies] Last: Thank you! Problem solved. (by KyuubiCalvary)
Pages: 1... 5354555657... 99
  Archived months: [feb2015]

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