General C++ Programming - August 2011 (Page 27)

by lolo25
Thread Function
 
Hi I am still beginner in c++. I need an advice about problem I have. I have to make 3 paths to run simultaneously between the client and the server . I h...
[4 replies] Last: I think threads are better off behind concept of a library such as std... (by closed account S6k9GNh0)
What needs to be added to a do while loop so that it will function exactly like a while loop?
 
I know the difference between a while loop and a do while loop but not sure how to make a do while loop function exaclty like a while loop.
[2 replies] Last: in while loop : first check the expression and if its true then run th... (by ahura24)
by diana
Open file text with Nodepad from Resources
 
HI, I started to play with files in C++ and I have a little problem. Here is my c++ project and the problem: main.cpp #include <iostream> #include "resou...
[2 replies] Last: You're right! This is my problem. I don't know how to read Demo.text f... (by diana)
Tips to accelerate your C++ knowledge?
 
I have been learning C++ for 3 months and I do not know if I understand if I know the language like I am suppose to. How do you know if you are okay with C++? I...
[8 replies] Last: Anything was better than 20 minutes; and in terms of development time,... (by xstux)
pointer,macros
 
someone pls help me understand macros #ifdef #endif #ifndef #endif also about '->' operator. and pointers.those probs eating my brain. int *a;...
[1 reply] : http://www.cplusplus.com/doc/tutorial/preprocessor/##ifdef ptr -> ... (by hamsterman)
by jarric
Help!! array problem, what is the prob of this i dnt know
 
#include <iostream> using namespace std; void printMsg(); void printArray(int arg ,int length); void inputArray(int arg ); int total; int main() { ...
[3 replies] Last: You defined printMsg() and printArray() inside of main(). Take them ou... (by Caligulaminus)
by Lukmas
Reading data from a 2-column text file
 
Hello Guys, I am quite new to C++. I have a data file (tab delimited text file) containing two columns of data like: 0.1588 0.0000 0.1640 0.0000 0.1...
[7 replies] Last: Hello Guys, I tried going one step further by using the getline() fun... (by Lukmas)
How to typedef a template class?
 
Hi I am writing my first template class. Could you tell me what's wrong with my code here? I get this error, for line 9 of Basket.h : error C2143: syntax erro...
[2 replies] Last: :D Thanks a lot dude. I didn't expect that!! It seems I should improv... (by soheilghafurian)
SDL problem
 
ok so i am using Dev C++ to do all my programming stuff and i decided to try out SDL for it but i cant seem to get it to work here is what i got #include <"S...
[5 replies] Last: well it was pretty obvious and i feel kinda dum i didnt notice it Xb ... (by chainswap)
by amma
abstract factory question
 
Hi People, I'm trying to create an abstract factory but I'm stuck. I create a component factory class Component { public: virtual ~Component(); //Abs...
[6 replies] Last: I would like to thank you for your help, after taking a beating from t... (by amma)
Add player
 
I wrote a 16 week bowling program for a college class I was in quite a few years ago. I wrote it in C, but now decided to convert it to C++. Pretty much, I got ...
[6 replies] Last: naderST, actually, when I subtract the 49, it's to end up with a numbe... (by whitenite1)
return a pointer from a class method
 
hi, I have a class 'Myclass' and a method of that class 'Mymethod' which returns a pointer. I am not sure how to write that method. Can someone please help me ?...
[5 replies] Last: Note that returning a pointer (or reference) to a built in type, like ... (by andywestken)
Clipping a sprite diagonally
 
Hi all, I've been wondering how I could go about clipping a sprite diagonally, for instance if I wanted to tear a piece of scenery in half at the point that a ...
[2 replies] Last: Oh wait I remember plotting individual triangles with directx9, not su... (by quirkyusername)
Binary file IO error "Unhandled exception at 0x100cad4a...."
 
Hi, I am learning to use the file streams to handle files. I am stuck with Binary file IO because of this error. I have wrote this small program to showcase the...
[2 replies] Last: Thanks a lot buddy! Passing the string like you pointed out seemed to... (by noxiouswinter)
by smelas
sorting elements in the container
 
typedef struct TGM{ double numbers ; double SecondNumbers; bool negative; }TGM; vector <TGM> tgms; TGM tgm; for (; firstLoop ...
[5 replies] Last: yes ! it's fine. (by smelas)
by fsshl
mybit.to_ulong()
 
Dear c/g++ expert: why my g++(4.5.2)compiler can compile and run(well) of the example code of ------------ // bitset::to_ulong #include <iostream> #in...
[3 replies] Last: #include <stdexcept> #include <bitset> bool fullAdder(bool b1, boo... (by TheMassiveChipmunk)
Pig-Latin
 
So I'm converting a python program used to turn any phrase into a pig-latin phrase. I got the file working completely correct in python and almost complete in C...
[11 replies] Last: You're welcome. Please mark this as answered. (by kooth)
by mae38
Problem with static member array?
 
Dear Fellow Programmers, I have had a quite annoying problem which I have not been able to solve yet, so I would like to ask for Your expertise: I am writ...
[4 replies] Last: Cheers! Now it apparently works. Thank You very much :). Before I pres... (by mae38)
trouble with header and global vars
 
I separated my game classes into different header and cpp files. gamengine.h gamengine.cpp levelengine.h levelengine.cpp snakengine.h snakengine.cpp and snakem...
[19 replies] Last: Thank you guys for your help. (by closed account zwA4jE8b)
Switch statement not working?
 
so in my game engine that im making there is a part in the program that makes an object of the Player class render and animate depending on what the Movement st...
[5 replies] Last: lol believe me i had them in there before...i just took them out becau... (by paki programmer)
August 2011 Pages: 1... 2526272829
  Archived months: [jul2011] [sep2011]

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