General C++ Programming - August 2013 (Page 2)

how to address files having spaces in their names
 
i wonder how does any os address file having spaces in their names. Even cmd.exe in windows can't access such file but windows explorer can. How is it so?
[4 replies] Last: dir "* *" and in Linux, it uses "\ " to escape a blank (by Hzj jie)
Layout Design Matrix Calculator
 
Hi guys, I want to ask on how to put a layout design in the program when it is being ran. It should look like these: http://i1102.photobucket.com/albums/g460/Di...
[2 replies] Last: for such a design you need GUI (wxwidgets, qt, etc) but not the consol... (by coder777)
by h4ever
How to start with C++
 
Where can I download C++ and some simple tutorial how to make first program compiled? What I need to download if I want use GDI+? Is there some program which ca...
[1 reply] : http://www.cplusplus.com/search.do?q=How+to+start+with+C%2B%2B (by tath)
Threading Advice (1,2)
 
From this post: http://www.cplusplus.com/forum/lounge/109303/#msg595161 I'd like to create the said program while trying to integrate threading. Now, I know...
[28 replies] Last: thread is simple as where the code is running, every program has at le... (by Hzj jie)
how to change the ordinary picture with only red channel in c++ programming?
 
URGENT with using SDL_Maprgb and SDL_GetRgb. I am new to programming. can someone help me to solve this problem? void put_pixel32 (SDL_Surface *surf, int x, ...
[8 replies] Last: SDL_Surface *Redchannel (SDL_Surface *surface) { SDL_Surface *temp = ... (by innyong)
I/O stream
 
Suppose I have a text document with lines as such: 1 4 3 2 3 6 1 7 2 4 3 3 Using I/O streams, I need to take the number that is by itself, multiply ...
[3 replies] Last: Open the file. If opened succesfully then loop through the values wit... (by vin)
I need help with arrays in c++
 
I need to create a program that will find the total of all the elements in array. I need to use for loop and the array size is 10. The output should be like ...
[16 replies] Last: thank you guys. your help is appreciated. (by Hummer1)
verifying loop in a linked list
 
I was trying to implement Floyd's cycle finding algorithm to find loops in linked list. I implemented my code using 2 pointers but I am not able to figure out w...
[5 replies] Last: I did try to make it clear that my code (which was just basically a cl... (by ciphermagi)
Displaying Function from Reference
 
Having a little trouble getting my function to display the results. I got my getNumber function working and I know I can't use return to return multiple values ...
[13 replies] Last: Solved!! Thank You very much LB (by seansabour)
Applying Data Types. Computer Programming
 
Alright so I'm in a computer programming class and I was given the following problem: Write a problem that takes an integer value and multiplies each of the ...
[5 replies] Last: What The ferror Not supposed to just post an answer to questions that... (by ciphermagi)
by Ceset
what my loop stops working?? (1,2)
 
when i hold and dragged the window for some purpose my loop stops. here is an example output: 40 40 40 40 40 40 40 40 40 1316 40 40 40 output 1316 is the p...
[25 replies] Last: thx. that was pretty explanatory(srry if i m using the wrong word, en... (by Ceset)
Changes in epsilon & binary cubic roots
 
Hi again, I'm wondering if the epsilon variable is machine dependent, and what changes it (architecture/firmware/manufacturer), and how it would relate to the ...
[no replies]
How do I ignore the case of something that I am inputting?
 
I have tried tolower() and toupper(), but these don't seem to work on the string I am using. I am inputting a word using: cin >> answer; This input can be ei...
[3 replies] Last: Or you could use google and get a more correct solution: http://stacko... (by LB)
how can we add two matrices in the example given below?
 
class Matrix1 { Protected: int ** data; int row,col; Public: }; Class Matrix2 : P...
[2 replies] Last: See: Matrix addition http://en.wikipedia.org/wiki/Matrix_addition An... (by andywestken)
closed
 
closed
[1 reply] : http://www.youtube.com/watch?v=ywWBy6J5gz8 (by Smac89)
how can we make resize function for Matrix2 Class in c++ ?
 
class Matrix1 { Protected: int ** data; int row,col; Public: }; Class Matrix2 : Public Matrix { ...
[1 reply] : Derived class has access to protected members of its base class. So yo... (by vlad from moscow)
by AMOLED
Displaying Pyramid
 
Guys I am having trouble coding this one :( Any help please? Input You are to ask the user to input from the console(keyboard) two data, M and N. M is an int...
[12 replies] Last: well so funny same question over and over hah :D :D these deitel dudes (by Ceset)
by Ceset
pixel format flags??
 
well i made a reserach but couldnt find anything here is the link http://wiki.libsdl.org/SDL_ConvertSurfaceFormat#SDL_ConvertSurfaceFormat-1 i saw pixel forma...
[no replies]
problem about infinite loop
 
the following codes make up the program. when the program run, it happens an infinite loop. this loop is within the operator + in dblinked classe(i have point o...
[1 reply] : The problem is in your dblinked.h file. Line 155 to 159 is within an ... (by Smac89)
by Denis
complexity
 
Hello, Could someone to help determine complexity of the following code blocks: 1. for(size_t i = 0; i < v.size() - 1; ++i) { std::sort(v.begin()...
[5 replies] Last: Thank you all. The answer has been figured out by myself. (by Denis)
August 2013 Pages: 1234... 28
  Archived months: [jul2013] [sep2013]

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