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 t...
[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 l...
[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 t...
[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 ...
[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 '->' oper...
[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);...
[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 colu...
[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 th...
[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 ca...
[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 c...
[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 ...
[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...
[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 wa...
[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...
[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; }...
[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 ...
[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 w...
[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 ...
[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 leveleng...
[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 Playe...
[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.