Beginners (Page 52)

by Nison
There seems to be an error for some reason and i don't understand why. This program is supposed to c...
[2 replies] Last: Try it this way Yes, it did work. Thank you very much! (by Nison)
Hi guys. Anyone know a good website were i can do practice programs. Basically i want someone to giv...
[5 replies] Last: this site's tutorial (by Lorence30)
Issues with default for an int
Ok, I am a newcomer to C++ and running into an issue. I am using the introductory book by Stroustru...
[6 replies] Last: Something like this perhaps: If extraction fails, failbit is set an... (by JLBorges)
std::string to int
Why this code fails? I am converting a string to int by indexing. #include <iostream> #i...
[5 replies] Last: Line 7 doesn't do what you want. s1 gives you a char , which is an... (by Peter87)
Where is "int n" declared?
What am I missing? This sort.cpp from CppWOF CH 6 works fine. (I just commented out the Pause for Ne...
[8 replies] Last: You had essentially: void swap(int *p1, int p2); void swap(int *p1, i... (by keskiverto)
for loop until 0
how can I write the code to loop the a value to 0 without using signed int? I try ==0, but it doesn...
[4 replies] Last: thx (by csbs5c26)
Troubles Understanding Variables in Classes
Hi, I'm relatively new to C++ programming, and currently struggling to understand use of some functi...
[1 reply] : class what{ int x; public: int getx(){ return x; ... (by LendraDwi)
by akif13
User input: 1, 2, 3, 4, 5 How do I display "Target Found" when user entered 3? I get the output lik...
[1 reply] : [code firstline=31]bool found = false; for(i=0; i<5; i++) //the loop i... (by Smac89)
int menu and char's being input
I am writing a code where I ask the user to input a value of 1 2 or 3. If the user enter's a char, ...
[1 reply] : char x; int y; cin>>x; if(isdigit(x))y=atoi(x); //you can do somethi... (by LendraDwi)
Multi Arrays
Hi guys, im struggling with multidimentioal arrays. I have a basic understanding but I cant figure o...
[1 reply] : I don't think its possible but if it is every employee have 4 salary (by LendraDwi)
by wolfv
Break loop when key is pressed
I saw some complicated solutions on the web, but am hoping for something simpler. For this applicat...
[4 replies] Last: Thanks Duoas, the example on (by wolfv)
by sjabat
HELP about void!!! it outputs error. 49 11 C:\Users\Skye\Documents\wh.cpp '::main' must return 'i...
[4 replies] Last: [quote=bilgramiraza]and include an return 0 at the end of the main ... (by BHX)
Compound Interest
Hi, I am making a program that calculates compounded monthly interest. I ask for the initialbalance ...
[1 reply] : 1/12 is an integer expression, and so uses integer division. 1/12 == 0... (by helios)
Understanding Operator Overloading
Good day all, i have been battling to understand the overloading of the equality operator, please se...
[3 replies] Last: Reference. Your Word::operator== takes a reference parameter. The 'r... (by keskiverto)
What do these errors mean?
I'm getting weird errors I don't understand with this program. This program is the second part in ...
[2 replies] Last: Ahh, alright I see. Thank you very much! Those are very helpful. (by VisuAlly)
by mehak
shouldn't be the output be a garbage value? #include<iostream.h> class India { public: st...
[5 replies] Last: Aha. (by cire)
Multiplication Through Addition Function
I am trying to create a function called square() that will multiply a given integer through additi...
[12 replies] Last: No problem (by Jamerack)
guys i found a website for c++ tutorial. is this good ?
[1 reply] : Let's just all not reply, so he takes the time to read before asking u... (by IceStorm)
Template problem! expected initializer before '<' token (Solved)
I am trying to make a calculator program and I am getting an error when I try to define a function f...
[15 replies] Last: Oh.. now I get an error. Fixing now, thanks :) (by IceStorm)
by sjabat
inventory program
[4 replies] Last: Well, first open the file with ifstream input("inventory.txt") tr... (by IceStorm)
Pages: 1... 5051525354... 65
  Archived months: [jul2014]

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