General C++ Programming (Page 2)

by ReVolt
Turning BMP Image To Min. Finite Automata
 
Hello I have problem with this... I don't know how to start with it, first thing that came up to my ...
[1 reply] : Well, if you have an RGB bmp image, and you know that it's only black ... (by KRAkatau)
How to use '&' and '>>' on a double number
 
Hey, I am working on a project where I need to retrive a double number and store 8 bits of the num...
[1 reply] : floating point numbers have intricate inner structure, so there is no ... (by MiiNiPaa)
string loop rectangle display
 
I have been writing a code to display a "mailing label" with user input. The "label" is a rectangle ...
[no replies]
Saving tree to file
 
So I have this game that builds on it self 20 questions and it improves as it learns from you howeve...
[2 replies] Last: // FILE: useful.h // PROVIDES: A toolkit of useful functions for rand... (by OLittleO)
compailing problem
 
i cant understand what the problem with my code header file #ifndef ROBOTDB_H #define ROBOTDB_...
[1 reply] : http://www.cplusplus.com/forum/articles/40071/#msg216270 grep error (by ne555)
The Output comes correct in some cases and wrong in some..
 
Here's the program. It was supposed to make the user enter the contents of an integer array. Display...
[2 replies] Last: Such minute mistakes! :/ Thanks! :D (by Winkerd)
C++ multiple choice questionaire
 
Could you check if the answers I chose are correct? I want to double check that I am understanding t...
[15 replies] Last: variable length arrays are supposedly only in C99, and hopefully neve... (by Cubbi)
by cgw122
Random images with Gdi+
 
I am attempting to read a random image out of a directory using gdi+. I am attempting to do it by b...
[no replies]
data from txt file into array
 
#include <iostream> #include <fstream> #include <string> #include <cmath> #include <stdio.h> ...
[4 replies] Last: I made the changes you suggested, as you can see below string bac , p... (by tonismahonis)
What's the error? (1,2)
 
#include<iostream.h> #include<conio.h> #include<stdio.h> #include<string.h> void main() { clrsc...
[20 replies] Last: Yes..I am sorry about that! (by Winkerd)
stack around the variable 'X' is corrupted
 
hey guys , I have been trying to solve a problem when this error came to me : " stack ar...
[3 replies] Last: ohhh No worries I got the mistake :) you were right it have to do wit... (by husseinmd)
Why does this code run?
 
#include<cstdio> int main() {puts("abcde");} I haven't put std:: before puts and main d...
[7 replies] Last: [quote=cppreference]If control reaches the end of a function without e... (by Bourgond Aries)
Design question
 
For some special kind of data transmission, i created a Packet class and a Packet-Generator class wh...
[2 replies] Last: I'd say it depends. If the data is rather fixed and not overly compli... (by coder777)
Function pointer problem
 
I'm trying to do something basic in C++, create a pointer to a function but it's not working. In t...
[5 replies] Last: Sorry about the code tags. THANKS!!!! (by RonInNewYork)
Make C++ code compile faster, (taking more than hours to compile)
 
#include <iostream> #include <fstream> #include <vector> #include <iomanip> #include <cmath> ...
[10 replies] Last: Yes @ Andy, @ cubbi any suggestion as to how i can make it finish the... (by MikeyBoy)
OpenGL
 
I a linux user I'm going to make a game and I'm going to use C++ with OpenGL. what my question is...
[2 replies] Last: modern openGL tut: http://www.opengl-tutorial.org/ Aceix. (by Aceix)
by bobr
infininte loop
 
in is code I have an infinite loop but im not sure if removing it will hurt the switch statement tha...
[1 reply] : Do you intend to reduce it to: int main() { int value; ... (by keskiverto)
Including cocoa (objective C) in a C++ program
 
Hello, I am running OS X Lion 10.7.5 and trying to include cocoa. #include <iostream> #include <...
[3 replies] Last: I've never actually used SDL so I couldn't give you a working example ... (by Lodger)
by RD7
Fixed point int min value
 
I am reading about positive and negative infinity in c++ and i am trying to implement them in a fixe...
[1 reply] : It depends on what representation is being used but in two's complemen... (by Peter87)
Need help C programs on mac/linux
 
the below program i need to run on mac/linux terminal compling gcc 1. write a program in...
[1 reply] : Move your topic to Linux programming. You will probably find more help... (by MiiNiPaa)
Pages: 1234... 77
  Archived months: [mar2013]

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