Beginners (Page 3)

C++ Structure Array Flight terminal program
 
Hello All, I am a student new to C++ and I am being asked to write a lab displaying airline f...
[1 reply] : Hello Collegestudent01, Welcome to the forum. Some helpful informatio... (by Handy Andy)
loop exit
 
i want to ask how to exit the program by pressing Enter key. // C++ program to count occur...
[1 reply] : why are you using a while loop? you could just say getline(cin,str) (by adam2016)
Questions about C++
 
Hello. My name is John. I am blind. I use a computer with special screen access programs. I'm inte...
[4 replies] Last: I think the de facto cross-platform standard for 3D audio is OpenAL,... (by Ganado)
What's wrong with this code? (1,2)
 
Hi, everyone. I'm working on a program that allows the user to play a game called a Mad Lib. I'm doi...
[32 replies] Last: Now, I'm working on the next part of the project, and for some reason,... (by Living4God1991)
Broken code for arrays
 
Hello, Could you please help me in fixing my broken code? I need my code to accept negative nu...
[4 replies] Last: Hello sr2cute702, I will start at the top. Line 10 I changed "MAX" t... (by Handy Andy)
Sorry to bug you all but I need some advise
 
I'm not sure if it's me but evertime I step away from c++ I keep forgetting, or worse going backward...
[2 replies] Last: Line 23: In your default constructor, you don't initialize Head. The... (by AbstractionAnon)
by Bopaki
Book2.cpp:187: error: expected primary-expression before '{' token
 
I have extracted this one line in my program that gives the error above I do not know what is the m...
[3 replies] Last: I think I am using very old compilers. I will google the new ones. T... (by Bopaki)
installing systemc-ams
 
hello everyone, i want to add and install systemc-ams library on visual studio 2013. would you p...
[no replies]
rows and columns 0 and 1 not printing
 
i'm trying to animate the game of life, with asterisks, but the code i have won't print the asteris...
[2 replies] Last: whatttttt it must have been the compiler then? okay, I copied the co... (by Lewis3017)
Need help with a c++ project
 
Here is what i am told to do: Write a program that calculates the average number of days a compa...
[5 replies] Last: average_abs I haven’t tested your code, but it seems your functio... (by Enoizat)
how to get input from user without pressing enter.
 
i want to know if there is any way if the user just press 1 and the function runs without pressing e...
[8 replies] Last: @Andy No problem, I didn't want it to seem like I was nitpicking or de... (by Chervil)
Reading data from text file into a dynamic array of structs
 
Hello, I am having some trouble reading my data into a dynamic array of structs. Below is my code as...
[1 reply] : It's not a good idea to use eof() as the loop condition. It can caus... (by Chervil)
Issue with the output file of a read-in/replace-word code
 
In a nutshell: The code is supposed to open a file, read in the contents, search for a specific word...
[4 replies] Last: This version of replace_word which does not use regular expressions ... (by JLBorges)
How to fix this "Call of overloaded function is ambiguous" error?
 
I have the following simple code: template<class T> class myClass{ void print(string s){ ...
[3 replies] Last: #include <string> #include <iostream> struct some_class { // ov... (by JLBorges)
Why doesn't my assignment operator overload work properly?
 
I am trying to create a String class like so: class String{public: string s; String& operator=(...
[3 replies] Last: @JayBari thanks, I didn't know copy constructors function like that. I... (by daverave1212)
What am I doing wrong!!
 
This is the problem A car dealership has 10 salespeople. The dealership keeps track of the number ...
[1 reply] : try for (int i=0; i<10; i++) (by SamuelAdams)
by Hahang
Everyone help me fix this! I can not fix it! thank you so much
 
Write your question here. #include<conio.h> #include<stdio.h> #include<stdlib.h> #include<string.h> ...
[1 reply] : See where you wrote, "Write your question here." Please do so. What pr... (by joe864864)
Undeclared Variable In a Class?
 
Hey! I'm trying to use the get/set functions in a class to return a hidden variable, but keep gettin...
[1 reply] : Your get functions return "minutes" and "seconds" but your variables a... (by joe864864)
Adding classes for weapon and armor in adventure game
 
I am asked to Make a hero class and add specific inventory slots for a weapon, armor, and ring. So f...
[no replies]
string manipulation
 
Hello, I am trying to manipulate a string (below). How would I put "John" in a seperate string, 1 in...
[1 reply] : std::istringstream input(s); //#include <sstream> std::string name; i... (by ne555)
Pages: 12345... 58
  Archived months: [sep2017]

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