• Forum
  • General C++ Programming

General C++ Programming

by admin
Welcome to this board!
Welcome to the general programming forum in C++.com! In this forum, users can to talk about any top...
[no replies]
Code lines
I have been wondering, can I call a code line just as I can call a function by writing its name with...
[1 reply] : uhm, What? xD There is a function for this, called goto but uhm... ... (by TarikNeaj)
by Matep
Competition Tast
Hi guys, need help with the idea on how to solve this assigment with an fast enough algorithm. Th...
[no replies]
by KrtinN
While Loop Does Not End
My while loop does not seem to end: while (check=1) { cout<<"Please enter the number of people:...
[5 replies] Last: You can have an empty body for a conditional. Some compilers generate ... (by ne555)
Check Template?
How can I make this kind of paycheck template? _________________________________________________...
[3 replies] Last: So first you have to read in the first line which will determine how m... (by giblit)
Runtime error in console
for example int num; std::cout<<"Please enter a number: "; std::cin>>num; when this code is...
[2 replies] Last: Yeah, the both worked. Thanks for your help @giblit (by N495t4r)
Would Like Help Proofreading My Code
I have created a function that deals with an array of pointers and I would like some help proof-read...
[11 replies] Last: instead of lines 9-14 you may simply do Objects = temp; or use std::... (by ne555)
by yj1214
! operator
#include <iostream> bool checkSomething(){ return false; } int main(){ if(!che...
[2 replies] Last: Well than it should print out 'hello' to the screen but it doesn't. b... (by yj1214)
int x =1.7 + 3; std::cout<<x; //this will print 4.7 as the value of x, how do I make the ...
[2 replies] Last: Oh my bad.. double x =1.7 + 3; std::cout<<x; //this will print 4.7 ... (by N495t4r)
factorial of 1000
please help me finding the factorial of 1000 using doubly linked list in c++
[8 replies] Last: @dhayden. Big integers can be represented in a container by making eac... (by fun2code)
by arsy
Help with Game of Life Code - Not Displaying The Generations After 0
Need help with figuring out why Gen won't copy over to NewGen. When the code is ran it shows the dis...
[3 replies] Last: Mark all of your code. So its blue, then press the button and hit subm... (by TarikNeaj)
Ascii Code
I'm having a bit of difficulty understanding how and why this example works. It changes all ascii le...
[2 replies] Last: It might be easier to understand if you start by writing it: text = ... (by dhayden)
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)
by yj1214
A question about g++ -l
g++ -l I heard that this tells compiler the library name. What is it mean by library name? is it t...
[7 replies] Last: > Does using libraries limit the amount of optimization that a linker ... (by JLBorges)
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)
by cotro
Loop stop condition not working due to "invisible" characters
Hello I am currently reading a file that has a format like this: 2.5437667456 0.38745628423 0.34257...
[5 replies] Last: I haven't tested this, but it should show you the ASCII values of th... (by fg109)
Pages: 123... 52
  Archived months: [jan2015]