General C++ Programming (Page 5)

What is going wrong in this program?
#include <iostream> #include <fstream> using namespace std; int b; class book { private: int bo...
[2 replies] Last: After you get the book number there is '\n' left in the input buffer. ... (by vin)
by balala
Detect CD tray status
Hi everybody, I'd need a code to detect if the Cd tray is open or closed. I think this is possible,...
[9 replies] Last: I have no enough experience with C++ to can say why this makes differe... (by balala)
finding and fixing errors by using STL techniques
I'm trying to solve this exercise: (#4)
[2 replies] Last: Thanks for the reply. The lines 18 and 21 are part of the book themsel... (by Tomfranky)
error C2228--Visual Studio 2015
I am getting an error in my program, and have been searching for an answer. The error is "error C222...
[2 replies] Last: Yes! Thank you! I actually just noticed that! (by Zekiay H)
What is wrong in this program?
#include <iostream> using namespace std; #include <fstream> #include <cctype> int main() { int ...
[7 replies] Last: Thanks everyone! I was usinf .eof() because that's used a lot in my te... (by Anne693)
Redirect someone via c++ in command prompt
So i'm trying to create a program that asks a few questions if all the credentials are correct i wan...
[no replies]
Need help fixing a problem!
I am still relatively new to learning c++ and I need help fixing my code so it will work properly. ...
[1 reply] : Duplicate post waist time and effort. (by SamuelAdams)
by Inig0
max and min functions
I'm in a 110 computer science college course, we use Visual Studio 2015. I need help with finding t...
[2 replies] Last: Thank you, I was just missing the inner brackets (by Inig0)
Help with a few problems
I'm a pretty new person to c++ so i'm kinda having some trouble with this problem. im using function...
[8 replies] Last: this solved my problem!! thank you!! (by jessicacats)
by AlexIL
Help with a makefile I wrote
Hello guys, I'm writing a c++ program using qt5 libraries. I wrote this makefile (
[5 replies] Last: Lets say that a Makefile starts: ... I don't disagree with anythin... (by Repeater)
by a015
Taking Screenshots using Dev C++
I have this code #include <iostream> #include <windows.h> using namespace std; int main(...
[3 replies] Last: One surely can create a batch/powershell/whatever script/installer tha... (by keskiverto)
converting normal date to Julian date
okay, so here i am again asking for help (I do also ask my teacher for lots help also so please don'...
[5 replies] Last: Thank you that fixed it!! (by jessicacats)
by oOoOo
Quantum computers
Hi, Am I right to worry about the future ? As far as I understand quantum computers and classic...
[2 replies] Last: I don't know anything about quantum computing, but I do know about C++... (by mbozzi)
by agulbs
Invalid operand to binary expression
How do i fix this?? I need to create a lexical analyzer, however i keep receiving "invalid operands ...
[1 reply] : Without the declarations of Token and TokenType, its hard to tell. My... (by doug4)
by bozmin
comparing two objects
I have two object containing the same numbers. the first object has numbers coming as follow: n1 = ...
[4 replies] Last: I don't think your code is doing what you're expecting. Line 30: You... (by AbstractionAnon)
Bubble sort, Selection sort & Insertion sort
So I'm new to C++ and am needing a little help. All feedback is welcome. I am suppose to create an ...
[2 replies] Last: I corrected it. (by amkir100)
Idk where to start...
Phase 1: Create a program that takes the input of an integer and returns whether the number is prime...
[1 reply] : Normally the best way to start is on a pc of paper and write down the ... (by SamuelAdams)
I will try to insert tagged code Here is the code: #include <iostream> using namespace std; int ...
[6 replies] Last: Line 2: using namespace std; can't be on the same line as a preproc... (by AbstractionAnon)
connect 5 game
I'm trying to make a program that will play a "connect 5" game for school. The game is between two ...
[2 replies] Last: Your posted code does not compile. Line 5: You're missing the requi... (by AbstractionAnon)
Program doesn't work. Program is for finding the no. of words in a text file
#include <iostream> using namespace std; #include <fstream> int main() { int words=0; ofstr...
[9 replies] Last: Here's another variant (stealing exf0's good ideas, but restricted to ... (by lastchance)
Pages: 1... 34567... 38
  Archived months: [aug2016]

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