Beginners - September 2016 (Page 4)

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 ‘{’ token Here is my code: #include <iomanip> using names...
[9 replies] Last: Hey guys! I have a question about loops if you all can help! It is pos... (by closed account ENhkSL3A)
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' and each will use the same function via overloading to disp...
[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 find sum of all the number between two integers entered by t...
[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, and prints the result to the screen. the only thing i don't...
[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 sourceannotations.h; the error says that a ; is missing. But in fact _WIN...
[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;" ?? #include <iostream> using namespace std; int a; a=10; i...
[4 replies] Last: Thanks. (by rejowan)
Deletion
 
In case "6" i need a code to delete a book record #include<iostream> #include <windows.h> #include<conio.h> #include<cstring> #include<string> #def...
[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 saw that the debug process was stopped. I still have no idea...
[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\codeanalysis\sourceannotations.h(29): error C2144: syntax erro...
[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 , b , c ; int n, i, j; n = 2; cout << "\...
[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 { public: ~monster(); private: // private constructors ...
[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)
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 out with it. up till 11 works, then suddenly at 12 and bey...
[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 linked chain. Beginning with a head pointer "headPtr" that co...
[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 characters per line in another file. If a word needs to be split up, ...
[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 fine (even getting the highest value in an array.) What is ...
[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 yet, what can I do to integrate it here in this program? As o...
[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 file and out put the occurrence of each letter aswell as show t...
[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<iostream> #include<vector> using namespace std; void print...
[1 reply] : Remove the ; at the end of line 7 // if (beg != end) ; if (beg !=... (by JLBorges)
not important
 
what's the difference between visual studio and dev c++?
[1 reply] : Dev c++ is old, good in 2000s, extremely outdated in 2010s. Visual stu... (by SakurasouBusters)
September 2016 Pages: 123456... 34
  Archived months: [aug2016] [oct2016]

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