General C++ Programming (Page 5)

ShutDown Function for All Operating Systems
 
Hi, I'am Writing an App in C++/Qt to Plan ShutDown (or Reboot, Sleep, PowerOff..) in specific Time o...
[3 replies] Last: The shutdown function is indeed different for each OS. I suggest you ... (by dhayden)
loan calculation
 
hi, i really need help on program, i messed up really bad. can anyone help me. Here is what i hav...
[2 replies] Last: You can just edit your post if you wanna update. Also, speaking of edi... (by TarikNeaj)
How to overwrite a specific line in a file?
 
I can overwrite the first line, but when it comes to the other lines, it doesn't overwrite. I have ...
[3 replies] Last: +1 dhayden. That is a better approach for sure. (by Disch)
by joel b
Exception Handling
 
Good day everyone, Please i need your help with my my code which does not recognize the exceptiona...
[3 replies] Last: Agreed. You're effectively using an exception as an "else" block, whi... (by Disch)
by Addsy
Snake game
 
Hey guys I'm building a snake game for a project using shapes as food. I've created cpp and hpp f...
[4 replies] Last: gotoxy is a function which sets the cursor point to position x,y (just... (by programmer007)
How to combine three programs into one.
 
write c++ program call 'calculate number' using functions. user will choose one of the following fun...
[7 replies] Last: lol :D (by programmer007)
BFS from an input file
 
I need to create a BFS traversal on a graph from an input file given in this format. 4 1...
[1 reply] : The colon is relatively unimportant. The newline matters more. Use st... (by Duoas)
dev c++ problem
 
#include <iostream> #include <cstdio> using namespace std; int main() { char A ="100"; char B ="...
[1 reply] : For code tags you must use square brackets not angular ones. cin >> A... (by ats15)
by yj1214
A question about class object
 
class Foo{ public: Foo(){ cout << "Foo()" << endl; } ~Foo(){ cout <...
[9 replies] Last: But why this? Foo *foo = new Ham; this is same as saying, int *Foo... (by Gamer2015)
by yj1214
protected inheritance
 
class Parent{ public: int parentX = 6; }; class Child :protected Parent{ p...
[1 reply] : Neither protected nor private inheritance allows you to do Parent *... (by TarikNeaj)
Vectors and Class
 
So this is my first time using Vectors and i have only used class a few different times since i norm...
[2 replies] Last: Okay thank you i fixed it, i just thought since the class had a vector... (by JakeMHughes)
Calling child functions from parent
 
Hi, I'm trying to call the functions of a child class from a pointer to the parent class which are n...
[2 replies] Last: This is part of my university assignment. Each GameObject has to have ... (by markmansell)
Comparing random numbers within a set
 
I was wondering if, for the purpose of a simple game, it was possible to poll an event that would ef...
[4 replies] Last: Correct. Thanks for the help! I should be able to figure this out now... (by Cyberpunk Eevee)
Running a program in infinite loop until any key is pressed
 
I want to make a part of my program to cotinue in infinite loop unti I press any key. And when I rel...
[6 replies] Last: OK..thanks a lot.. (by Nikitesh)
vector template pyramid ?? iterator unexpected behaviour
 
Hi there, there is a vector pyramid as follows: template <class T> class cObject1 { public...
[no replies]
Problem in linked stack(Dynamic Stack)
 
when the program is executed there are 4 options a: push b: pop c: view stack d: exit all of...
[3 replies] Last: works fine here too you might want to change iostream.h to iostream a... (by Gamer2015)
Fast Graph
 
Iam trying to load a very large text file into a graph, where all words with the same lenght and tha...
[5 replies] Last: Start with all words of a given length. Sort them, starting with the s... (by dhayden)
by yj1214
Why would you use const?
 
void foo(const char *) This 'foo' function requires constant char address, right? so what do I ...
[8 replies] Last: Well, there are many reasons you might use const... Imagine you have ... (by Gamer2015)
loops
 
Write a complete C++ program that produces a table showing the temperature equivalents in degrees F...
[6 replies] Last: You tell us. Use @Disch's Post and get started on something. Come back... (by TarikNeaj)
How to start console app in current console app
 
I have a Console Application and I was wondering if there is a way to start a different Console App,...
[1 reply] : Maybe this> http://stackoverflow.com/questions/14327981/run-c-sharp-co... (by iQChange)
Pages: 1... 34567... 30
  Archived months: [feb2015]

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