General C++ Programming - October 2012 (Page 16)

Creating a basic GUI
 
I figured I might as well do something new and try and create some basic GUI functions(I am not trying to get an entire library or anything here). I quickly ca...
[5 replies] Last: What you're trying to do is the following In ... (by coder777)
Dividing it into functions
 
Here is my code that is kind of like a calculator that takes in the users description and amount and it keeps adding the amount until the user wants to stop. ...
[2 replies] Last: I'm trying to divide this code into 3 functions. (by lazyman)
Question
 
what are the best option for learning General C++ Programing?
[2 replies] Last: Set a goal, e.g. in the next 6 months you will be intermediate C++ pro... (by Kart)
Placing stuff
 
Hello i'm working on win32 programming in c++. I was wondering how you would place stuff on your form. Like tell it what location on the screen to be at. If ...
[no replies]
Where to put build Binaries?
 
If I'm using cmake to build software.. Where do I put the build binaries.. Does it have to be somewhere specific or can I put them anywere and the system will ...
[1 reply] : It is generally recommend (but not required) to do an out-of-source bu... (by vince1027)
Memory Allocation ?
 
is this a valid call first knowing CPolygon is an Abstract base class with virtual function "int area(void) = 0" and CRectangle is a derived class returning the...
[9 replies] Last: okay i defiantly understand it more now. thank you for all your help ... (by wtfshawn)
trying to get collision with bullets
 
trying to get my bullet's to hit my player, had a friend come over and he made a iterator thing out of my bullet's fire function and now when ever I press the ...
[2 replies] Last: cool thanks for that it's not breaking any more =D (by programmeraie125)
by Median
Exercise-based C++ books
 
I've checked through the newest C++ Primer a bit, but it doesn't feel like it fits me that much seeing as I would like it to have more focus on exercises (or so...
[2 replies] Last: it doesnt really work toward some big program but each chapter has pro... (by wtfshawn)
USELIB() function
 
Hey Everyone, Just wondering about this USELIB() macro. Is it only specific to Borland compiler or is it useable in MS Visual Studio 2010 also? Also... is...
[2 replies] Last: Cool. The link was excellent. Helped me understand things better! Che... (by tenpoundbear)
by yen
angle
 
write a program that asks the user for angle ,entered in radians.The program should then display the sine ,cosine and the tangent of the angle.(Use the function...
[7 replies] Last: The arguments of the switch ( ... ) in C++ math library is a (int ) an... (by cronopio)
Vector elements
 
Which is better to use for accessing a certan value with in a vector? myvector.at(i) = i; or myvector = i; As far as I know, they do both the...
[4 replies] Last: Hi, your solutions is very good for two forms, use of operator is v... (by cronopio)
Reference or not a Reference that is the question...
 
I am working on a programming assignment for data structures and seems to be going just fine except for a single warning that I cannot make much sense about. ...
[7 replies] Last: It's not const Polynomial& other in the copy-and-swap operator= , i... (by Cubbi)
Smfl Window
 
Can I remove the console window from an Smfl Project?
[2 replies] Last: http://sfml-dev.org/tutorials/2.0/ The information you want is in the... (by cire)
Randomized incremental algo to compute maximum of a linear objective function
 
Can anyone help plz ??? Below is the assignment.. i just need basic algo Implement the randomized incremental algorithm to compute the maximum of a linear ...
[no replies]
read file and put into struct
 
Hello guys I got some weird result, I want to read this txt file ------------------------------ 1001 0 10 2 1002 2 7 3 1003 5 12 4 1004 6 9 2 --------...
[1 reply] : And which line of code in the above do you think is storing a value in... (by Moschops)
istream cin - How to get just one Character
 
Helle there, i got following while loop: char cEingabe = '\0'; do { std::cin >> cEingabe; std::cout << "Your Choice was:" <<...
[6 replies] Last: Oops! I should have read the first post more carefully. :-( (by Duthomhas)
Binary to Decimal and reverse
 
I see these two question in my book, the first one I make it out, but the second one puzzles me, how ? 12.8.5 Binary to Decimal Write a program that asks the...
[4 replies] Last: 1. std::string binary_string b( "11100010101" ); std::cout << std:... (by vlad from moscow)
Writing function that returns two types
 
Hi all! I have written a function that returns a string. It works as expected. It looks like this: string myFunction (int i, string myString) { stri...
[4 replies] Last: As a variation on vince1027's suggestion, you could return a pair (std... (by andywestken)
avl
 
he guys i have made a program that take input from user and make avl tree.my code is working perfect but I wanted to take data from different files and parse ...
[1 reply] : Use fstream header to open files and read from them. Help is here http... (by codewalker)
fib
 
Write a program that neatly displays the first 21 numbers in the Fibonacci sequence in a table. Recall the definition for the Fibonacci sequence: F0 = 0 F...
[2 replies] Last: Write a program that neatly displays the first 21 numbers in the Fibo... (by doug4)
October 2012 Pages: 1... 1415161718... 50
  Archived months: [sep2012] [nov2012]

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