Beginners (Page 5)

C++ program to read n numbers and print the second largest number
 
Is this correct? #include <iostream> using namespace std; main( ) { int n, c; float v, ...
[3 replies] Last: 1. Read 'n' numbers: while (std::cin >> n) [CTRL-Z] to stop reading 2.... (by Boilerplate)
HELP knse2c.cxx:28:1: error: expected unqualified-id before ‘{’ token
 
Why do I keep getting this error? knse2c.cxx:28:1: error: expected unqualified-id before ‘{’ to...
[9 replies] Last: Hey guys! I have a question about loops if you all can help! It is pos... (by kns2872)
Overloading Function - Not understanding the rules behind it
 
Hello everyone, I am working on a problem where I need to design a menu that has 4 options to 'run'...
[3 replies] Last: Thank you Peter87 and Handy Andy! After thinking on what you both said... (by McClapYourHands)
Functions
 
I am a bit confused in functions maybe because I am teaching myself but can any one tell me how to ...
[11 replies] Last: Thank you everyone for the help now I understand the concept.. Thank y... (by MichaelBhattacharya)
Question about For Loops
 
Using a for loop, i need to write a program that gets 10 integers from the user, computes their sum,...
[4 replies] Last: 1. Declare an int (num) for your input and for the total (sum). Initia... (by Boilerplate)
where is defined __w64 ?
 
I am working with VS2010 on a Win7-64 Laptop to build a win32 app. I have an issue in sourceannotat...
[3 replies] Last: > I can't see where __w64 is defined __w64 is an obsolete (it is s... (by JLBorges)
Error in declaration in Global Variable
 
Why global variable-value declaration has error before the main function "int a; a=10;" ?? #in...
[4 replies] Last: Thanks. (by rejowan)
Deletion
 
In case "6" i need a code to delete a book record #include<iostream> #include <windows.h> ...
[1 reply] : Deleting a book is easy if you use a std::vector for books. If you're... (by AbstractionAnon)
by Enot02
Something is not right...
 
I wrote this program and ran it. It didn't print out all the rows, just 3. While I was debugging, I ...
[7 replies] Last: Don't worry, I just doubled the number of rows and the number of colum... (by Enot02)
VS2010 : syntax error in sourceannotations.h !!
 
Hi all, I have got this error : c:\program files (x86)\microsoft visual studio 10.0\vc\include\co...
[5 replies] Last: You do not need to repeat the same question on your other thread. If y... (by SakurasouBusters)
C++ program to multiply two order matrices with pointers
 
How to write with pointers? #include<iostream> using namespace std; int main() { int a ...
[7 replies] Last: Write a C++ program to multiply any two order matrix with pointers. ... (by SakurasouBusters)
by Jims
Factory pattern or builder pattern? Not sure what to google
 
I am not sure what I need to google here. Lets say I have a class like this Class monster {...
[2 replies] Last: Thanks that is cool, I guess by using std::istream the monster class d... (by Jims)
please help me
 
write a c++ program to read N numbers and to print the second largest number
[13 replies] Last: Great and perfect explanation. Thank you. (by new programmer)
by oOoOo
probably some small stupid error I'm not seeing (printing text for numbers)
 
hi, this is not working and I'm stumped. I'm guessing it's something small (I hope)and I'm just worn...
[1 reply] : (usernumber % 10 == 1) works only for the number 11 since you expli... (by coder777)
Linked-Based Implementations of ADT Bag
 
Regarding the class Node. The question states to, "Write C++ statements that create the described l...
[4 replies] Last: My guess is that this is what your program is supposed to look like. ... (by Cody0023)
by agulbs
When .llN appears, create a new paragraph
 
Im supposed to create a text formatter that reads input from one file and formats it to 60 character...
[1 reply] : Take a look at line 36: if(str == '.' && str[i+1] =='l' && str[i+ 1... (by coder777)
lowest value in an array (pointing out error.)
 
I am having a problem with getting the lowest value in an array, although everything else is working...
[2 replies] Last: highest = sales ; lowest = sales ; Note that array indices start fro... (by Peter87)
How to create database to a notepad file?
 
We have this pre-lesson topic about notepad database like thing. Since we have no idea in doing it y...
[3 replies] Last: Okay. I can write to a notepad file (Ignore the comments, I'll just st... (by DoubleOSeven)
Help with min and max of letter count array
 
Hey again guys. I got another noob mistake filled program. I have a program that needs to read a fil...
[3 replies] Last: I got it, now with functions. Thanks for the help!!! //call to fu... (by Winslowz11d7d)
iterator not dereferencable???
 
Why do I keep getting the "vector iterator is not dereferencable" compiler error? #include<ios...
[1 reply] : Remove the ; at the end of line 7 // if (beg != end) ; if (beg !=... (by JLBorges)
Pages: 1... 34567... 36
  Archived months: [aug2016]

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