General C++ Programming - May 2013 (Page 23)

Hold screen via GUI to console
 
Hi, I had a program (on console) that uses a third-part software to draw some graphs. In order to hold the graphs on the screen, I used cin.get(); and that...
[4 replies] Last: It might be a whole lot simpler to just create a new window and draw i... (by Duthomhas)
Function with multiple output
 
Hi, In my program I have a function that runs a big number of calculations and gives some output on console. Now I create a GUI, I want to modify slightly the ...
[2 replies] Last: Well actually it's not a Qt problem. The GUI works fine. I have my pro... (by dekeenfrance)
cstring and switch problems
 
#include <iostream> #include <iomanip> #include <cstring> #include <cctype> //used for toupper using namespace std; const int MAX_CITIES = 10; const int ...
[3 replies] Last: Try: CommandType command = GetCommand(); Also Add().list; will... (by S G H)
by yingC
Too much of global static, will it slow down the program?
 
I'm trying to reduce the test time on my program. But there is too much of global static variable, will this cause the longer test time?
[1 reply] : Not unless there's tens of millions of them and they're all guaranteed... (by Lachlan Easton)
need help on problem loop
 
I can getthis to work with everything except making a number with more than one '.' invalid. What am I doing wrong? Help please. Put the code you need h...
[2 replies] Last: so how should I fix it? (by CCTHECRAW)
by labeeb
Is null and space are same?
 
Is there difference between '\n' and space? If there is difference that what symbol is used for space?
[5 replies] Last: Note that '\n' is used as the line feed when writing to the console/te... (by andywestken)
Invoking the Base class constructor from the Derived Class
 
I understand it is done like this // Calling the base class constructor explicit CCandyBox(double lv, double wv, double hv, const char* str="Candy"): CBox(lv...
[4 replies] Last: Oh ok thanks cire. (by Anmol444)
by labeeb
What is difference between char* and char const*
 
In c++ I am trying to convert std::string to c style string. I found a following function string.c_str(); Its return type is char const* not simpl...
[1 reply] : char * and const char * are two pointers. The difference is that const... (by vlad from moscow)
Recursion to ittration
 
cxvgzsdfv
[1 reply] : Someone Please Help i Often Don't get help from this Forum (by Sarmadas)
Templates: How to use in projects
 
How should I emplement templated functions in projects? I read that if a function is templated, it can't be represented by a prototype, so the emplementation h...
[7 replies] Last: > I read that if a function is templated, (...) the implementation has... (by ne555)
Need help ASAP: Don't know how to fix this error
 
okay so in my main file i get an error that says: "no default constructor exists for class "question" where it says question Game[10) i have an idea on what...
[8 replies] Last: all i did was add: question::question() { correctAnswer = 0; } ... (by Aceix)
I don't understand
 
i = 2, ~i = -3
[3 replies] Last: You're right, I put it back. (by HighbrowManiac)
Function returns values in continue
 
Hi, I am writing a program with a function that includes a long loop. I need this function to return a value when each loop is done, to send this value to outp...
[10 replies] Last: Thanks. The callback method finally works. Just want to know, is ther... (by dekeenfrance)
Which algorithm to use in C++?
 
Hello friends I have the following task and let me know which algorithm to use to solve? Statement Given an NxN size plane is to calculate the number of pos...
[4 replies] Last: Thanks MiiNiPaa, this a good solutions, im review. regards cronos (by cronopio)
by Doggie
String Subscript Out of Range (Line 1662).
 
Solved
[2 replies] Last: It works! didn't realize that I won't need to use istringstream in the... (by Doggie)
by Yoda
Explain to me about game and c++ in a nutshell.
 
I know you need the following skills. C++ - for programming them shiz OpenGL-DirectX- for drawing gfx? and sending code to gfx card? But my questio...
[1 reply] : bump:: if no replys this bump i will mark as closed and keep studying.... (by Yoda)
by oswww
Template partial specialization
 
I want to write a template that combines two type of resources: class someClasses { typedef someType ElementType; } template<class T1,class T2> c...
[9 replies] Last: > Now my code looks like this Yes! We don't need that specialization ... (by JLBorges)
Errors In the program
 
Hello Can any please let me know the errors in this. This is The error i am getting could not deduce template argument for 'std::basic_istream<char,_Traits>...
[1 reply] : What line does error points to? (by MiiNiPaa)
algorithm
 
a company pays an annual salary bonus to its employees. the bonus is calculated by multiplying the employee's annual salary by a bonus rate, which is based on...
[1 reply] : Homework questions are for you to work out, so that you will learn fr... (by keskiverto)
Program Not Displaying Properly
 
When the program runs it doesn't display properly. In theory, it should display each question etc. Any ideas? Header #ifndef QUESTIONS_H #define QUEST...
[3 replies] Last: Put count++; at the bottom of the loop. (by vin)
May 2013 Pages: 1... 2122232425... 47
  Archived months: [apr2013] [jun2013]

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