Beginners

by admin
Welcome -- read before posting!
 
Welcome to the beginner's forum in C++.com! In this forum, users can to talk about any topic relate...
[2 replies] Last: How To Answer Questions in a Helpful Way Be gentle. Problem-relat... (by admin)
Console Closing Down (1,2,3,4,5,6,7)
 
Hi, i am new to C++ and have just written my "Hello World" program. It worked all right but the cons...
[120 replies] Last: It displayed "Hello world" after you pressed Enter. int c is a ... (by Duoas)
by AlanG
unexpected printout for int
 
Here is my bash session: agauld@ubuntu:~/src/cc/tour$ cat testinc.cc #include <iostream> #include ...
[1 reply] : cout << "n: " << n << ++n << n++ << n << "\n"; printf("n: %d%d%d%d\n"... (by Pattako)
by mrsh
matrix power
 
i tried to run matrix power,but i dont get the correct answer for my matrix,this is my code #i...
[1 reply] : //#include <fstream> #include <iostream> //#include <conio.h> //#incl... (by kemort)
Class - dice_roll error
 
I'm getting error code - error: expected primary-expression before 'dice_roll' in my constructor. Wh...
[1 reply] : If you move this out of your initialization list you'll see it's the p... (by newbieg)
if / else if / if else
 
So today someone told me there is no function called else if, is that true? I know if exists Els...
[3 replies] Last: It's possible that they were trying to be a wise...burro in that an "e... (by newbieg)
Why is my switch infinite?
 
Write your question here. #include <iostream> #include <iomanip> using namespace std; in...
[2 replies] Last: @whitenite1 Omg, so silly. Thank you it works now! (by kattykat243)
error in my code
 
i have done the code. But when running it, it cannot do more than 3 instruction. Please help. Thnx i...
[3 replies] Last: i think i found the problem. i put .2f in the scanf("%.2f",hourrate). ... (by teopeishen)
Question on If / Else if statements
 
The basic idea for the code below is to generate certain responses based on many different constrai...
[5 replies] Last: Thanks for all the info guys. Much appreciated! (by rshrecky)
classes
 
So we are supposed to do this program down below but I keep getting errors and I feel like the Instr...
[8 replies] Last: http://stackoverflow.com/questions/3106110/what-are-move-semantics (by kemort)
by jklx22
Need advice on some actual evaluations converting measurement systems
 
Now I have done the first two parts but I am stuck on the last 3 parts of the problem. Here is the ...
[3 replies] Last: you can do it with a cout statement... cout << "words " << totalfeet ... (by jonnin)
error message
 
I get an error saying lost in scope dist0 and dist1. I'm lost on where to fix this code. My guess i...
[2 replies] Last: Since the intent is to set values to the arguments passed by reference... (by JLBorges)
Converting english to morse code (1,2)
 
Hello I have three questions: the first one is when I run my code and enter text for it when it retu...
[28 replies] Last: I don't understand that why do we need to use arrays knowing that they... (by Pattako)
Body Mass Index Program with void function
 
I'm studying functions, functions prototypes, declarations. First I tried to create a function with ...
[6 replies] Last: #include <string> #include <iostream> void BMI(); int main () { ... (by kemort)
by WestAU
Time between allow else error...
 
Sorry to ask what i thought would be an easy to find answer LOL. I am trying to do the following....
[3 replies] Last: Thanks i will give this ago, basically i want to simply allow connecti... (by WestAU)
by xx123
headers, classes & main
 
I am new to headers and the main cpp file. So i have to create a program that calculates an employee...
[9 replies] Last: I made some changes: class Employee { public: Employee() {} Em... (by TheIdeasMan)
simple question
 
I get an error above time, dist0 and dist1 saying expected a deceleration. I don't know why it does ...
[1 reply] : remove the semi-colon from end of line 39, compile your code and go th... (by gunnerfunner)
How to define the function?
 
I keep getting 3 errors unresolved external symbol "void __cdecl showValues(int * const,int)" (?show...
[3 replies] Last: I also updated the code above fixing other errors. All that is left is... (by CisntEZ)
Eliminating 0
 
I've got a string of n numbers,introduced from the keyboard.For every number in the string that cont...
[2 replies] Last: Version without functions: #include <iostream> int main() { std... (by JLBorges)
by tit0n
Infix to prefix that is already fully parenthesized
 
I've found a lot of pseudo code or codes in general where they do infix to prefix. But for my projec...
[no replies]
Pages: 123... 60
  Archived months: [dec2016]