Beginners - September 2016 (Page 11)

expected initializer before '&' token
 
Hello, I am getting the error "expected initializer before '&' token" after compiling the following code: #ifndef MAZE #define MAZE #include <stdio.h...
[1 reply] : You seem to be missing the required semicolon that completes the class... (by jlb)
stack project!!
 
can somebody help us with our project? how to create a menu using stack? #include <stack> this would be the output: =====menu===== category a. hiphop ...
[4 replies] Last: @keskiverto, What logical operation in your program does need a stack... (by Handy Andy)
by Phil15
strcpy_s - Buffer is too small && 0
 
Hi guys, I have no idea what the strcpy_s function complains about... template<class V> bool get(std::string& key, V& val, const MDB_cursor_op op) ...
[4 replies] Last: You may be doing more work than needed, though. The c_str() method al... (by Phil15)
by junfan
Templates and Overloads
 
Hello World! I have been studying C++ lately and there are some concepts that I am not completely grasping. I am hoping somebody can explain them to me. W...
[1 reply] : In C every function has to have a unique name. For example: fma, fmaf,... (by keskiverto)
STACK PROJECT!
 
can somebody help us with our project? how to create a menu using stack? #include <stack> this would be the output: =====menu===== category a. hiphop ...
[1 reply] : Hello dendimon, Please edit your post and enclose the code in code ta... (by Handy Andy)
by ll1234
how to let 3.14 become 3.140000E+000
 
Write your question here. double x=3.14,cout x=3.140000E+000.
[1 reply] : http://www.cplusplus.com/reference/ios/scientific/ (by Duthomhas)
What to do for an error return for a struct object?
 
I have a function that returns a struct. If and else statement. How do I write it with one return without unnecessary stuff since I can't return a null object?
[5 replies] Last: What if it is *this instead of this? (by randompersonhere)
Doubly Linked List - Storing Data
 
Hi, I am constructing a doubly linked list for a class project. It is slowly coming along but I have hit a bit of a wall in my google searching. I'd apprecia...
[1 reply] : You are correct. Line 4 will copy the content of x to tempNode->lan... (by coder777)
File Input <fstream>
 
I am trying to get a couple variables from a file but it is not reading it correctly... string stu_name, stu_strt_address, stu_zip; float credit_cost, credit...
[1 reply] : student_files >> cred_num; student_files >> ws; getline (student_fi... (by SakurasouBusters)
Rock, Paper, Scissors, Lizard, Spock! Help!
 
Alright so I have 98% of this code completed everything works. However I need help trying to figure out where the last piece of the code goes. The "Congratulati...
[7 replies] Last: Here is the final code for anyone that needs help with this! #inclu... (by Unisaurus)
Check my work, please!
 
I'm supposed to use infile.ignore(INT_MAX, '\n') in the code, but I don't know exactly where it's supposed to be. Also, I'm getting a bunch of jibberish in the...
[1 reply] : Use ignore between infile >> ... and getline(infile...); . The re... (by coder777)
output window; show output from build
 
What means the integer beginning all lines in the output Windows (showing output from build) ? 1>------ Build started: - 2>------ Build started: 3>------ ...
[5 replies] Last: Many thanks ! Jean (by J Maurice)
stdlib.h problem with _DEFINE_SET_FUNCTION
 
In stdlib.h, I have an error on these two lines. _DEFINE_SET_FUNCTION(_set_pgmptr, char *, _pgmptr) _DEFINE_SET_FUNCTION(_set_wpgmptr, wchar_t *, _wpgmpt...
[6 replies] Last: HI, I 'find in all files' for _DEFINE_SET_FUNCTION in vain. the code ... (by J Maurice)
Am I on the right track.
 
Please Help: Objective: To create a C++ Console application that utilizes looping control structures to create the Fun with Multiplication application. Ge...
[3 replies] Last: > all that comes up is press any key, then you are not running that p... (by ne555)
by Simar
Set specific folder in bin diretory
 
I want to save my programs in spicefic folder in bin directory how can i??? When i closed dosbox and reopen it then again i need to chande directory tree path.....
[no replies]
I Finished the Code But It Was Different From My Prof's
 
Hello guys, My prof put a C++ assignment with a coding template. I need to put the code wherever lines he put the comments beside them. (the comment starts w...
[4 replies] Last: Alright, will see what he'd say later. Many thanks!! (by iSquall17)
I want to be able to program. Pls Help!
 
Well straight to the point. I'm 16 near 17 and I'm a junior in High school. I love video games, computers, and anything technology related. This a bit of a ran...
[1 reply] : Hard to say where to start. Your not going to learn programming overni... (by SamuelAdams)
Help with Client Function
 
I am confused as to what exactly a client function is referring to? Below is the problem I am working with, and the function I wrote based on what I believe it...
[3 replies] Last: > Is the auto used to generate automatically the variable type for x? ... (by mpark4656)
Help!! Don't get what is happening
 
Write your question here. So my professor asked to document the project and this is what comes out C:/Users/rnguyen155/Desktop/IC04B/A/futval.h:28: Warning:...
[1 reply] : What compiler are you using? My compiler gives no error for that file ... (by BHX)
Check this, maybe?
 
This is my task: Write a program that generates a random number and asks the user to guess what the number is. If the user’s guess is higher than the rand...
[4 replies] Last: I ran it countless times when the values were 1-5 but now I have chang... (by Fundamental)
September 2016 Pages: 1... 910111213... 34
  Archived months: [aug2016] [oct2016]

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