General C++ Programming (Page 45)

by jaystu
New ordering system sorting
Here's the objective of the program: "Instead of using ABCDEFGHIJ to order letters use DCBAJIHGF go ...
[1 reply] : are you familiar with with strncmp function in c? I think you need to... (by SIK)
by manojg
passing std::vector as a const reference to std::sort problem
Hi, In my following code, I am passing a std::vector as a const reference to std::sort function but...
[4 replies] Last: Ahh! I see, thanks a lot. (by manojg)
Derived virtual class, returning object
Hi guys, I am having an issue I need some help with. If I have a virtual base class such as....
[2 replies] Last: Thank kbw, works like a charm! (by toomanystars)
Error handling when using Boost NonCopyable
I have been using a Boost NonCopyable library in Microsoft Visual Studio 2013. What I have is the...
[4 replies] Last: //tell user about error. In this case you are the user (of noncopy... (by spectral)
class and variable declaration
#include<iostream> #include<conio.h> #include<string> using namespace std; class ir; class B...
[1 reply] : #include<iostream> //#include<conio.h> #include<string> #include <cma... (by JLBorges)
by judo11
How to get the sum of rows and columns in 2 dimensional array?
Here's my code for adding the rows and columns. My problem is that my program displays an incorrect ...
[6 replies] Last: @judo11 What keskiverto is trying to tell you, is you must reset the... (by whitenite1)
c++ and sqlite
Can someone please help me understand how to integrate this. I want to write a simple console progra...
[1 reply] : Most C code ia valid C++ too, so what's wrong with using C API exposed... (by modoran)
Operator>> no match error
#include<iostream> #include<conio.h> #include<string> using namespace std; class Bank_acc { ...
[3 replies] Last: cout <<endl<< "Is the account a savings account or a current account?... (by KarnageKnight)
Counting black pixels in an image ??
I have a problem with the counting black pixels program at the very bottom and i dont know why its s...
[no replies]
by jaystu
Reading file into 2D array
can someone help me read a text file and store the file contents into a 2D array? Here's the file: ...
[1 reply] : As it's set up now, the nested loop is infinite. You should be testin... (by cire)
Game Programming Graphics
Hi =). I am looking to create a simple 8-bit top down game. Simple collision basics that I can lear...
[2 replies] Last: SDL - SFML - Opengl - htt... (by roger911)
Impossible to escape?
Ok so I have Project25 and Project26 below. Project25 endlessly checks to see if Project26 is open a...
[4 replies] Last: MS is aware of the Robin Hood / Friar Tuck problem, so I doubt it. (... (by Duoas)
using a header file across multiple files
So say I create a header file which contains a list of structs, and I want to use these structs thro...
[2 replies] Last: Nevermind... The problem was in the header file... forgot to close the... (by roger911)
by iebwen
how to stop strings separating: cin
I'm currently learning c++ from programming books. Codeblocks is the IDE I am using. One of the exer...
[5 replies] Last: getline worked perfectly. Thanks for the help. Really appreciate it si... (by iebwen)
Draw two overlapping circles in C++
Here is my code. I need help Drawing two overlapping circles both with black borders but different c...
[no replies]
conversion using constructor &&&& cast () operator overloading
---------Project for converting by constructor method--------- //main.cpp #include <iostream>...
[2 replies] Last: ummm.... and what is C++ cast syntax the one I used is just class::o... (by danicpp)
Result of !(NOT) on integer value stored in an integer?
Can I replace the following: VGA->precalcs.characterwidth = VGA->registers->SequencerRegisters.REG...
[3 replies] Last: That's right. The ! operator is a logical operator, so its result will... (by Duoas)
How to read in comma separated table.txt
Hello everyone! I am currently reading in a table separated by spaces which looks like this: Pol1 ...
[1 reply] : Change that to: string line; while (getline (datafile, l... (by AbstractionAnon)
by q139
Fast way to read content
Hello, I am trying to make graph program that reads file and creates graph. How could code read a l...
[8 replies] Last: Thanks alot, maps is very useful, now all lines can be mapped by numbe... (by q139)
Getline as the conditional of a While loop
I am trying to use getline as the conditional for a while loop as seen below. string fil...
[3 replies] Last: Thanks for the help naraku, that is a good solution! (by ALtherak)
Pages: 1... 43444546
  Archived months: [jul2014]

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