General C++ Programming - March 2011 (Page 23)

Extract data from file with header
 
Hi all, I have been trying to read a series of data from various .dat files into an array of ints (only one file per execution of the code). The data comes ...
[2 replies] Last: just refer to the link http://www.cplusplus.com/doc/tutorial/files/ (by bluecoder)
by Tolt
simple code but i get error C3861: 'ldexpf': identifier not found
 
i cant really say that im a total beginner to c++, read 3 ourses in school and alot on my spare time but now when i added FLTK to my visual studio 2010, i get e...
[no replies]
Problem with pipes.
 
I'm making a program to generate the sequence of numbers: 1 11 21 1211 111221 To do this I had the stupid idea of using pipes to output the sequence bac...
[no replies]
Best way to do this?
 
I'm making a fantasy RPG game - There are a bunch of shops you can go into and purchase certain supplies. Once bought, it gets placed into your inventory, which...
[4 replies] Last: timmah1493, we don't know the perfect way for everything. Only experie... (by closed account S6k9GNh0)
Engines/development tools for first person games
 
Hello everyone, I need to make a First Person game for a project and I was hoping you could suggest libraries/engines/development tools for this that fit my li...
[2 replies] Last: I don't think he could create 3D engine in OpenGL in only 15 days. May... (by Abramus)
by Dhaval
How to assign and delete objects without new and delete operator
 
Hi I have some ASN structure to program in C++ Shown Below: s1:Array S1 // this array can have 1 to 7 elements struct S1 { id: INTEGER s2:Array S2 // t...
[1 reply] : You could create your own array type, that does not allocate memory dy... (by Abramus)
Reverse Words?
 
I'm new to C++ and have no prior logical or experience with other programming languages. I've learned on arrays and string today and saw that the null character...
[2 replies] Last: naaokth gave very good solution. I just want to mention that if you wa... (by simeonz)
Problem with templates
 
So I wanted to work on Binary trees and binary search trees the node is defined like this: template<class C> struct BSTNode { C val; BSTNode<C...
[12 replies] Last: @ne555 : the link you gave worked fine. Its working now !! Wow! didn't... (by navderm)
I would appreciate some help please
 
Ok you guys porbly know the old batch bomb :start start Blah.exe goto start it repeativley opens the program. Me and a buddy of mine have been trying to...
[1 reply] : We're not here to help you pull stupid pranks on your friends or schoo... (by packetpirate)
by codist
opengl close event
 
I have an opengl game. I'm am trying to make this as cross-platform as possible because I want to sell this game. Is there an opengl event will be called when t...
[2 replies] Last: I want to ask the user if he or she wants to exit. I want the user to ... (by codist)
by dAND3h
How is this memory allocated?
 
Hi, I am writing an Array template class for a project. I was writing a push function when I wondered something. What actually happens if I increase an array in...
[11 replies] Last: Hi there, I know this thread's a bit old but I didn't see an answer t... (by Tarnge)
GMP with windows mingw
 
C++ GNU Multiple Precision Arithmetic Library help in eclipse!? hi, I am kind of a noob when it comes to eclipse, but I am using C++ on eclipse and I found t...
[no replies]
by venot
how to fix the syntax and logic errors ?
 
//Debug6-1 // function counts down from higher number to lower number entered // e.g., if numbers entered are 4 and 8 // output is : 8 7 6 5 4 #include<iost...
[5 replies] Last: Just FYI, it helps if you say what the errors are so we don't have to ... (by TechnoCat)
Question about creating Codes for payroll report.
 
Hi, I am taking a C++ course and is stuck on one the questions on my homework assignment. How do I make the output look like this: Employee Hourl...
[no replies]
How to Make a Random number (int) that changes every start?
 
Hey guys So im making a console simulator. Its basicly a game about universe and stuff. So i need to make a random int for some voids and i want to m...
[12 replies] Last: @Albatross ok i figured out thanks all! now it worked (by vitinho444)
std::sort assert error
 
I got following error message hen trying to sort: ...file...algorithm Expression: invalid operator < ABORT ... RETRY... This is relevant code that fails: ...
[10 replies] Last: First, thanks for your help so far and for your time. I am not native ... (by savavampir)
Problem Using Boost Regular Expressions in C++
 
I had previously used a regular expression in PHP and I am trying to convert it to a Boost Regex. I have had no luck. Here is the expression in PHP ...
[2 replies] Last: Okay, well my matching subject is quite large, it is the source of a w... (by rompetoto)
Auto website access
 
I want to make a program which automatically open the website and fill the username and password in fields automatically and all these actions perform hidden fr...
[no replies]
Simple Error problem..?
 
I keep on getting this error with this simple piece of code. fstream binaryio; // Create stream object binaryio.open("Exercise13_5.dat", ios::in | ios::bin...
[5 replies] Last: @kbw Using size_t is probably better for this expression, I agree. Bu... (by simeonz)
plz simple this code
 
#include<iostream.h> #include<conio.h> char ch; int top=-1; char st ; char stack ; void exp() { top=-1; } void input() { co...
[5 replies] Last: only at the start of the lines :0( else if((stack =='+'||stack =='-')... (by closed account z05DSL3A)
March 2011 Pages: 1... 2122232425... 31
  Archived months: [feb2011] [apr2011]

This is an archived page. To post a new message, go to the current page.