General C++ Programming (Page 64)

by zxrp
Iterating through a Vector of Pointers
 
Hey guys, If I have a Vector of pointers, how can I iterate through that vector, to access the name ...
[10 replies] Last: I think I fixed another small error in elsewhere in my code, where I f... (by zxrp)
by zxrp
Looping through a Vector of Object Pointers
 
Hey guys, lets say for example I have the following vector: vector<Component*> mComponents; ...
[1 reply] : I found the solution, never mind, here it is: vector<Component*>:: i... (by zxrp)
by AGZZ21
Getting the optimal change in cents.
 
On one of my assignments I have to find the optimal change. For example, if I were to have 70 cents ...
[1 reply] : What I would do is sort the array for highest to smallest(or just assi... (by giblit)
by flony1
step two vectors to a function
 
hello forum friends I have a doubt and I have two vectors to a function. a vector is (int *, const...
[1 reply] : Perhaps there is a translation mistake? "vector" refers to the std::v... (by LB)
Pricing a Bond
 
Hello, I have written a code that prices a bond, but its pretty messy, is there anyway to condense t...
[3 replies] Last: Any help with for loops? I would really appreciate it. (by JohnMyer87)
Yes/No while loop help
 
Hi, I'm new to C++, and for a class project we had to write a code to exchange the user's input mone...
[1 reply] : std::string Done; do { // Your code d... (by monochrome)
Changing relative path reference
 
FILE* pFile = fopen ("./myfile.txt","w+"); Is there a way to change what a relative path is ref...
[4 replies] Last: You're right, that's even better. I already used boost::filesystem in... (by Stewbond)
Specifics concerning #include
 
I am using GCC via MinGW/MSYS under Windows. Currently i am using a home-brew IDE based on several ...
[4 replies] Last: If you're running all the files through a script anyway I'm not sure w... (by LB)
Need code to Exit function after 5 minutes.
 
Hi All, Need your help. I have a function which sometime takes more than 24 hours to run. So I wan...
[9 replies] Last: Hey, Could you please give me small programming example on using separ... (by pdsharma86)
unable to input data
 
Whats wrong with my code, I wasn't able to input for Lastname field. Can somebody please take a ...
[1 reply] : char fname, lname; means that fname, lname are single characters no... (by coder777)
Error 4 error LNK1120: 1
 
I am a C++ beginner and am trying to make a address book program that can write names and phone numb...
[1 reply] : Hi there ! If you look right here you can see the compiler's hint at ... (by soranz)
How does c++ apply in real life?
 
In my classes, all of my c++ projects have essentially been "If (4+4 = 8) cout >> 'cat'" I've done a...
[5 replies] Last: Game development is a great way to learn and home your coding skills. ... (by crexalbo)
Searialize object to file system with char or wchar_t?
 
I'm in the process of udating a library (DLL) to support unicode. One of the classes in the library ...
[11 replies] Last: The Unicode/UTF stuff is such a huge mess in C++, it makes you want to... (by LB)
Dynamic Array Memory delete[] issue.
 
The assignment was to use a dynamic array to display the Fibonacci sequence backwards. Everything wo...
[2 replies] Last: Consider the loop at line 43. The last time through the loop, i==n so ... (by dhayden)
Behaviour Tree
 
Behaviour trees are only about 10 years old. I was disappointed that not one single example code in...
[6 replies] Last: oh...ok but you don't have to be a pro to create an article. (by jasonwynn10)
Why doesn't this code work?
 
Can anyone help please? #include <iostream> #include <cstdlib> using namespace std; void ...
[9 replies] Last: if it is fixed close the topic unless there's something else... (by jasonwynn10)
How would one go about combining these two programs into one that can...
 
How would one go about combining these two programs into one that can open the .wav file in windows ...
[5 replies] Last: The string "file" is supposed to be the file name. (by jasonwynn10)
problem with weekday function
 
I would like to button "Open All" is activated at the exact same time on a certain day of the week, ...
[no replies]
by Illuk
Appended file path not working
 
I need to append file path for some particular program. But the problem is when I append it like bel...
[7 replies] Last: Thank you for all replies.. my problem has been solved. I have already... (by Illuk)
by LB
The inner factory problem
 
I apologize in advance as this is a rather complex example that I have simplified as much as I can. ...
[6 replies] Last: Thanks, much appreciated! It's better than what I was anticipating. Ma... (by LB)
Pages: 1... 626364656667
  Archived months: [aug2014]

Cannot post in this page. To post a new message, go to the first page.