General C++ Programming - February 2012 (Page 11)

re-engineering issue
 
i has a Qt application which i am converting to normal C++ . I may seem odd because most of the people try the reverse. I had some parallelization problem with ...
[2 replies] Last: The issue is solved . I forgot the fact that gcc do not like to separ... (by sajis997)
introduction/Approach to parsing/Game development
 
Hey, Just joined the forum! hope to find much knowledge! Anyway, Im writing a c++ game using the SDL graphics library. Ive got gravity, a character, a map...
[3 replies] Last: Ye ok, i thought i had to, im using C's FILE to open and read a file ... (by SuperStinger)
Is Primitive Type Trait?
 
Is there a type trait in the standard library to check if a value is a primitive? Something along the lines of: template<class T> struct is_primitiv...
[5 replies] Last: The only time you "need" to use typename is to identify nested depende... (by clanmjc)
by Smoke
Converting a hexademical to decimal string
 
Please be aware I cannot use any intermediate storage such as int or long as will be working with big integer numbers. My current progress is below ...
[10 replies] Last: @Smoke I know it's been more than 10 days since this was commented on... (by whitenite1)
using C++ to develop Android applications
 
I want someone to give me a gist on who C++ is used in programming Android applications.
[2 replies] Last: I want someone to realize that it's faster to search for the answer th... (by cnoeval)
opendir problem
 
hi every body i tried to open a directory in my local computer but the function opendir() always return error "can not open the directory " i send the foll...
[6 replies] Last: perror() say : "no such file or directory" and i'm sure 100% that the ... (by aliansi)
I cannot run properly my C++ programme
 
When I enter all the number in my C++ programme. Right before the output print out , the below statement will be show. A dbgheap code will be shown also and the...
[8 replies] Last: Thank you all of you! you guys have helped me a lot ! Now I can run t... (by kyky365)
by Yezman
Pointers - In a function call use *s or s?
 
struct dir_t { char *name; // Name of directory int owner; // ID of owner int num_files; // number of files in directory file_t files ; // file descrip...
[2 replies] Last: So you got to use s . Good. (by jumper007)
by gibran
nested loops help please
 
Before you think i am being lazy, let me say that i really, really, tried finding my mistake(s). I am desperate right now. My primary goal is to scan an arra...
[2 replies] Last: comparing to all the occupied slots in an empty parrallel_array: An... (by vin)
by fanasy
why my c++ program call so many time of _fini
 
my platform is linux 2.6.9-55.ELsmp I use gprof to analyse my c++ program for speed up. but I find 69.65% time to call _fini and the calls is 12308332. I goog...
[2 replies] Last: thanks roberts for remind. I drop the object to string. now can't see ... (by fanasy)
fopen getting crashed....(cannot able to access file through fopen sometimes)
 
hi , I was trying to open a file using fopen() method. It's not opening all the time. some time it opens but the other time its getting crashed.... FI...
[3 replies] Last: the file gets open correctly, but you use MAX_LEN and MAX_LENGHT. do y... (by Jikax)
by vivmen
problem with vector
 
Hi all i am trying following code class myc { static int i; public: myc() { cout<<++i<<" ctor \n"; } ~myc() { cout<<--i<<" dtor \n";...
[7 replies] Last: contact microsoft. well lets see their view. here is link http://so... (by vivmen)
by jpss90
Fatal Error LNK1120
 
I apologize if this is the wrong thread to put this as this is my first post but I need help with my programming class. I keep getting this error message: 1>...
[2 replies] Last: Thank you, that totally makes sense. I have tried that and it succeede... (by jpss90)
by bd123
Snake Game SDL
 
Hello, I am just starting out trying to make games in C++. I have some experience with the language but I have never made games or used SDL too much. As a ...
[1 reply] : Rather than having speed for the snake, depending on what direction th... (by closed account o1vk4iN6)
breadth-first search using an adjacency matrix
 
Hi everyone, I'm trying to implement a breadth-first search using an adjacency matrix for my undirected graph. Basically given v1 and v2, I'm trying to find a ...
[1 reply] : |to_expand visited tree| to_expand := Queue new. to_expand push: roo... (by ne555)
by rucafe
sting member variable and sscanf function
 
I have created two classes: class dm_Step { public: char m_plus; char m_particle; float m_energy_sec; float m_xpos_sec; float m_ypos_sec; floa...
[2 replies] Last: Why scanf and not >> ? (by kbw)
by dumkat
exiting a loop
 
I am writing a socket program bool done = false; while(!done){ . . sck_client = accept(sck_unix, (struct sockaddr *)&remote, &len); . . } Is there ...
[3 replies] Last: You're using blocking sockets, so the calls to socket functions will b... (by kbw)
Run Java using C++ and the opposite
 
Hi all, i would like to ask: (1) How can i run a Java program using C++ ? (2) How can i do the opposite, to run a C++ program using Java ? ...
[4 replies] Last: (1) How can i run a Java program using C++ ? (2) How can i do the o... (by closed account 3hM2Nwbp)
Getting the working directory and converting to a string
 
As the title says, I am trying to get the working directory and convert it from a LPWSTR to a string. It has to be ASCII and not Unicode because functions later...
[11 replies] Last: I believe it's _get_pgmptr if that is what you're referring to. Thanks... (by snipslog)
Overloading the ++ operator to incriement an iterator
 
Hello, I am currently creating a sqaure list and one of the requrements is to overload the the pre and post ++ operator. Ive tried overloaded the ++operat...
[6 replies] Last: @vlad from moscow I tried this and when i try to incirment an itera... (by new2cpp)
February 2012 Pages: 1... 910111213... 43
  Archived months: [jan2012] [mar2012]

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