General C++ Programming (Page 2)

search for an element in an array
I'm trying to write this function that is supposed to return true if an element in this array is fou...
[no replies]
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)
Trying to transfer from a textbox on a popup form to a DGV on another form
I am trying to allow the user to input into a textbox on an "addform" and when they click "save" the...
[no replies]
Rock-Paper-Scissors Game for Stroustrup's PPP2 Book - Help Needed
Here are the specs: Write a program that plays the game “Rock, Paper, Scissors.” If you are not...
[no replies]
eof question
Is there a specific code for "is eof" and "not eof"? Thanks.
[9 replies] Last: This is the wrong way to read a stream: while(!fin.eof()) { ... (by Cubbi)
Program runs with infinite loop?
I have the whole thing coded, I don't see any errors and program doesn't throw any errors, but it'll...
[4 replies] Last: I got it, thanks everyone for all the help, solid advice. (by Menacing)
Repeating Patterns
Hello everyone, I want get opinion about constructing a function which can identify and count the "r...
[6 replies] Last: There are already various applications for sequence analysis. Yes, so... (by keskiverto)
Here is the prompt, To distinguish between the different base representations, typically the base...
[5 replies] Last: OP: I've double checked my first post on this topic and the code there... (by gunnerfunner)
by MikeSW
Accessing a file using an array
I'm not even sure I asked the question correctly. This is for an assignment, but I don't want help w...
[13 replies] Last: The code above isn't my final code, but thanks. Have a great night. :)... (by MikeSW)
Pages: 1234... 35
  Archived months: [aug2016]

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