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

Direction in proving this statement?
 
What does this mean, (interpretation): "As can be easily seen, only number systems with bases 2' hav...
[3 replies] Last: [quote=kbw]But you could extend that statement to any base, base 3, 10... (by Duoas)
Random Number Generator with a twist
 
Hello, I have to come up with a program that I have to create which is: The Computer guesses a ra...
[2 replies] Last: Doh.. Not sure how I missed that! Thanks! corrected it and all is ... (by FSUSem1nolez)
by AMOLED
[HELP PLEASE]
 
How do I code this. What is the proper coding for this problem? Thanks in advance :) Read and fo...
[8 replies] Last: This doesn't look like your previous program, and you didn't even use ... (by LB)
by Ceset
SDL_GetTicks()
 
SDL_GetTicks() function. it stores the first time program started and gives you the value how much t...
[7 replies] Last: i removed my question from here because it was something out of this t... (by Ceset)
Reading whole file into std::string
 
I have been using this: std::ifstream in("name.txt"); std::string s((std::istreambuf_iterator<cha...
[7 replies] Last: Doesn't that code read one char at a time from a file stream? I would... (by kbw)
Convenient name for a sorting function.
 
Let assume that I wrote a function that uses the selection sort algorithm to sort some sequence in d...
[no replies]
by vRltwE
Using Cygwin compilers in Qt Creator
 
Is it possible to use Cygwin compilers in Qt Creator (considering that Qt Creator is installed norma...
[no replies]
Help: error C2039: 'to_string' : is not a member of 'std'
 
Hi, I am trying to convert "int" to "string" on VS-2008 and I am getting the following errors: ...
[4 replies] Last: My knowledge of C++ is limited; so, would you please tell me what is ... (by Disch)
How to 1 more formula in C++?
 
How to 1 more formula in the program? Inside the program got 1 formula, so I want add 1 more formula...
[13 replies] Last: OK... Thank you :) (by ajith55)
What is the error in this code?
 
For a school homework i had to make a c++ program to generate a report card so i made this program ...
[5 replies] Last: Three choices: 1) using namespace std; -- This is not recommended as... (by keskiverto)
by Luk3
How to create a global object/instance of a class? (1,2)
 
Hi, I'm new in object oriented programming. I need help creating a global object/instance of a cla...
[30 replies] Last: http://xkcd.com/619/ (by LB)
Need guides in understanding the codes
 
Hi guys, can someone explain me on what does these codes did? this is only part of the code... /...
[1 reply] : The meaning of: float dragOffsetX, dragOffsetY; dragOffsetX = dragOff... (by keskiverto)
by Ceset
frame per second algorithm
 
hi. i was trying to achieve a better way of game looping. so i have a game loop algrithm. but i dont...
[2 replies] Last: @Disch well. first of all. ty for your detailed and informative answer... (by Ceset)
Basic in c++
 
I am a new leaner i want to know every thing abaut these great language so i need help from all c+...
[7 replies] Last: if you need it to pass the exam, properly try to remember all the char... (by Hzj jie)
by Snaksa
What should I learn next
 
Hello! I' studying C++ for around a year. I can work with recursion and I know how to implement data...
[11 replies] Last: it turns out to be a very interesting question. briefly, languages, no... (by Hzj jie)
Recursion with linked list
 
I have a linked list I made and am practicing a simple recursion function sum() which returns the su...
[1 reply] : Have you initialised the tail node's next to null? EDIT: Also, it app... (by Script Coder)
constructor that initializes a pointer to point to the object
 
I have a program that has a base class 'control' and there are 2 dervied classes 'button' and 'textb...
[7 replies] Last: I mean tabstop should be a secondary property - it should be a result ... (by LB)
Binary Operations
 
Code: #include <iostream> #include <string> using namespace std; void process(string operator, int ...
[2 replies] Last: I see. Thanks for your help. (by helpstudent)
Revamping your entire code due to new C++ functions
 
I just have a general question about how you programmers go about making use of new C++ functions wh...
[2 replies] Last: The tools you mention were around since about 1994 (which was the firs... (by Cubbi)
Operator new needs curly braces () for array
 
Right well I've got this error and I don't know where to go from here because I can't find out how t...
[11 replies] Last: YYYEEEAAAAAAHHHHHHH.... Okay thanks guys!!! I went in search for the ... (by SatsumaBenji)
August 2013 Pages: 123456... 27
  Archived months: [jul2013] [sep2013]

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