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?
Aug 30, 2013 at 12:01pm
[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...
Aug 30, 2013 at 8:48am
[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...
Aug 30, 2013 at 6:39am
[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...
Aug 30, 2013 at 4:51am
[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, ...
Aug 30, 2013 at 3:46am
[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 ...
Aug 30, 2013 at 3:32am
[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 ...
Aug 30, 2013 at 3:03am
[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...
Aug 30, 2013 at 2:25am
[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 ...
Aug 30, 2013 at 12:36am
[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 ...
Aug 29, 2013 at 11:24pm
[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...
Aug 29, 2013 at 10:51pm
[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 ...
Aug 29, 2013 at 10:10pm
[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...
Aug 29, 2013 at 9:15pm
[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...
Aug 29, 2013 at 7:32pm
[2 replies] Last: See: Matrix addition http://en.wikipedia.org/wiki/Matrix_addition An... (by andywestken)
closed
 
closed
Aug 29, 2013 at 6:57pm
[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 { ...
Aug 29, 2013 at 6:57pm
[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...
Aug 29, 2013 at 6:37pm
[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...
Aug 29, 2013 at 6:32pm
[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...
Aug 29, 2013 at 6:21pm
[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()...
Aug 29, 2013 at 5:01pm
[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.
Registered users can post in this forum.