General C++ Programming - June 2012 (Page 22)

would this work
 
Hi all. I am currently trying to make a 2D library for a game I am making, one of the library's is going to be a 2D vector class. I want to be able to find leng...
[2 replies] Last: kk thanks for the help =D (by programmeraie125)
deleting char within a file
 
While I know that ox7F is hex for delete, How could I use it from within a file to delete a char from another file. I tried b_file << 0x7F; and it does not...
[11 replies] Last: If it's the spaces you're missing, you may want to take a look at nosk... (by closed account 3872Nwbp)
overloading classes in braces
 
Greetings! I'm working through C++ Primer Plus (Prata, 5E) and am working with operator overloading. The exercise I'm working on deals with converting char * to...
[6 replies] Last: Hey, thank you for the help. I looked over my class methods and there ... (by Chupathingy)
traversing to delete a node issue
 
i get a segment fault when i try to delete it. i know that head is null and because of it the loop condition wont execute. i just dont know how to fix it! ...
[7 replies] Last: Yes, it could, since it lacks a reference counter. However, I wrote th... (by closed account zb0S216C)
Create numbered files
 
Hey There, maybe it is pretty easy to do, but i cant make it for 2 days... I want to create files "file1.dat", "file2.dat",... in dependency of integer coun...
[4 replies] Last: ok, i made it now with int N=5; string temp; stringstream t; ... (by The Sorrow)
Aborting a loop in a Wndows application
 
How can I interrupt a loop inside a Win32 C++Builder 6 application using, for instance, Escape? I am sending commands from a TList through USB port using a f...
[7 replies] Last: No worries glad to help :) (by soranz)
Basic C++
 
Hi, I am new to c++. I just want to know can we use std namespace classes in MFC application? I mean I have created a function that use std namespace clas...
[1 reply] : it Should do. try it and see. (by guestgulkan)
by MAQAH
combining two characters
 
Hey guys any one knows how to combine two character arrays ? eg: char ch ="Hello"; char hc ="World"; how to combine these two for a single array cha...
[1 reply] : The C function for this is strcat (by Moschops)
by MAQAH
Quesion with char
 
Hey guys ny one knows how to take the characters of a character array as groups. eg: char ch ="987652345v" // assume this is an id no So what I want is ta...
[4 replies] Last: hm Great . Thanks ..!! (by MAQAH)
SFML question
 
IMAGE imagename; if(!imagename:LoadFromeFile("FilePath")); return 0; That still makes the image in SFML right? cause the tutorials on the website suggest ...
[4 replies] Last: And if you haven't even set up SFML yet, why are you trying to use it... (by Disch)
Counter to count PASS/FAIL
 
how do i add pass/fail counter based on below condition ? if(_hsastat&&_spdlstat){ Synchronize(createMainAsmData); _status=TMainF...
[5 replies] Last: Sorry, but I don't understand much your class's working... I can only ... (by S G H)
Convert Char array to String
 
Does anybody know how I would go about converting a char array to a string? Thanks.
[3 replies] Last: If the char array is not null terminated the above will not work. In t... (by Peter87)
How to print some portion of a string?
 
string line; line ("i am a good boy"); if I want to print just good boy, how do I do it?
[3 replies] Last: You can also use substr. string line("i am a good boy"); cout << line... (by Peter87)
problem with ofstream
 
In the following code. i couldnt write into the file "ride.out". Please help. I donno wat but #include<iostream> #include<fstream> using namespace std; #incl...
[3 replies] Last: don't loop on fin.eof(), loop on fin.good() or on getline. This is ... (by Peter87)
error in callback function refrance
 
I starting learn C/C++ sqlite API. There is a simple example for executing queries in database: callbackfunction: static int callback(void *NotUsed, int ar...
[1 reply] : void foo::bar(int arg){ //the method bar in class for } //is equival... (by ne555)
by farhad
please help...
 
I want take "n" students name with 4 scores for each one. but I have to use just iostream class and array function and iterations! how can i take names with "...
[2 replies] Last: thanks (by farhad)
counting in array
 
hello.....i am facing a problem and want you guys to help me out.....i want to count numbers in an array (which number comes how many times) but i am not gettin...
[1 reply] : Please show an example of what u mean and the code u'v tried so far. (by soranz)
sizeof
 
hello every one....i am facing a little problem...my instructor used sizeof(x)/sizeof(int) to find the size of an array x ....but i coudlnt get it...can any one...
[4 replies] Last: thanks guys....for your help....especially anirudh sn, you rocked :-) (by awaise17)
by eag
Filling Question.
 
Hey, Can someone please help me to solve this in C++ language. I want to write a simple app which when given a username gives the number of tweets he has ...
[4 replies] Last: Ya i agree this is a repost as there was some problem in that. B... (by eag)
Printing graphics in MM_TWIPS mapping mode problem
 
Hi, I have a problem printing graphics in MM_TWIPS mapping mode - all graphics (lines, arcs) are weak and increasing Pen width or changing pen mode does not ha...
[no replies]
June 2012 Pages: 1... 2021222324... 33
  Archived months: [may2012] [jul2012]

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