General C++ Programming - February 2011 (Page 21)

How can i create my header file?
 
I am new to c++.I ask you to answer me? I use turbo c++ 4.5.
[1 reply] : Open a text editor, type in the things you want in the header file, an... (by Moschops)
by clros
Is thread active/alive? c++0x
 
Hi! It is possible with c++0x established if a thread is active or alive? I thought use the std::thread::get_id() but it's a good idea? get_id() shou...
[4 replies] Last: Under Linux, "ps -eLf" can tell you the number of threads. (by PanGalactic)
by abakiz
Changing object values in different function
 
I have an object that is created from another void that loads it's values from a file. Now I'm trying to edit these values using another function, I've trie...
[12 replies] Last: I know what I was doing, I forgot to put square[//the number] ;( Th... (by abakiz)
Turn Speed
 
Simple question: How do I compute the turn speed of an object rotating on the Y axis?
[2 replies] Last: Alright. Thanks, Quirk. (by closed account zb0S216C)
Check for connection
 
Hi. How can I understand that, user is connected to the internet? I mean, immediately after connecting to internet. For example immediately after connecting ...
[2 replies] Last: See how many user are connected to port 80 of a remote machine using '... (by rishabhagl)
Number, Letters and Space Only allowed.
 
hey guys.. i just want your help.. because i am making a program that has only numbers, letters, and space should be allowed.. i dont know the syntax for the sp...
[8 replies] Last: i want to put another one.. like name address age.. can you tell me h... (by simeonz)
by GulHK
QT related interview questions
 
Hello everyone! Could anyone please guide me what type of QT related questions are asked in interviews. Any book that I should have a look at? or any questio...
[3 replies] Last: Thanks Duoas :) I did write programs in QT but it was three years... (by GulHK)
by Vita
Why SDL_Surface can not be static member in Class
 
Hi, I have a problem, I'm a newbie to SDL and I've been making a simple class for controlling SDL so I wanted to make SDL_Surface * screen a static member in...
[2 replies] Last: How can I use that I don't understand? Can you give me a sample. Tha... (by Vita)
by isnork
Changing the type of a class attribute dinamycally
 
Hi, I'm coding a class that has a vector as a private attribute. The type of the vector ( it can be a concurrent_vector from the TBB library or a std vector...
[3 replies] Last: EDIT: Man, I did not read inside the parenthesis in your original post... (by simeonz)
RPG Game
 
I made this RPG Game with Code::Blocks, it took me about 2 hours. It on my channel on youtube. http://www.youtube.com/user/TheGuyNextDoor96?feature=mhum
[1 reply] : Ok, mate, I like the enthusiasm but could you limit yourself to one po... (by sargon94)
Factor Counting Algorithm
 
Recently I've gotten into the project Euler Problems, and have been doing pretty well with coming up with minute solutions. However, I'm having difficulties wit...
[9 replies] Last: @RAWBERRY Don't use floating point counter. Use an integer one. Preco... (by simeonz)
while loop issue, putting the finishing touches on program.
 
The current (and final) problem is this. When I enter "Q" the first time because I don't want to search everything is fine and it just quits and goes to the ne...
[2 replies] Last: I really don't know. I commented it and it appears to be working in Un... (by skatingrocker17)
by onion
structs overloading ?
 
Hi, May I ask for some help here please? I'm new to C++. I just tried googling but after a day I still can't solve my problem. I have these structs declar...
[2 replies] Last: Can I do like this? struct IF IF; struct Stmt { IF ifStat; }... (by onion)
by asuri
Changing string to char
 
Hey guys, I was trying to store a letter in the string array to a char array, but it showed this error error: invalid conversion from ‘const char*’ to ‘ch...
[3 replies] Last: There's no need to use c_str at all. Just do this: board = ... (by Disch)
How to continously check for serial data
 
Hello im a relative C++ newb. Taken a few classes but now im woring on my first project for myself. Im trying to get a visual C++ program to read incoming R...
[no replies]
string data() and c_str() functions
 
My first question is that is a NULL terminating character put end of the string while string str="abcd" is defined? Or no need it because it already stores the...
[9 replies] Last: What happens according to this strategy when you append characters and... (by simeonz)
how do I implement a counter from 0-C hex (1,2)
 
and how would I increment it and make it skip D-F (hex) every time it got there.
[24 replies] Last: is 1A the EOF like it is in assembly? (by Onceler)
How to map 256 numbers between -1 and 1
 
Hi everyone, I am learning Open GL programming. I am using the glVertex3f() function which specifies the coordinates for x, y, and z axis. However, the coord...
[2 replies] Last: ah - very simple indeed, thank you hamsterman! (by readysetgo)
by asuri
sudoku row and column check
 
Hey all, I was trying to make a sudoku solver for a 4 by 4 one, it all seems to be ok except the function where i am trying to compare the numbers in each row ...
[2 replies] Last: No Sir, this is actually a part of assignment where the part 1 asks me... (by asuri)
by Disch
SFML setup in VC++ 2010
 
An anonymous user sent me this in PM: Hey, I saw that you reccomended SFML. I downloaded it and am using visual 2010 as my compiler. Do you have any idea ho...
[2 replies] Last: I just don't like taking up space on a forum like this with such basi... (by firedraco)
February 2011 Pages: 1... 1920212223... 25
  Archived months: [jan2011] [mar2011]

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