General C++ Programming (Page 4)

How to have the output not have a negative number
My question for this is how do I get the output to not have a number number for example: Input firs...
[5 replies] Last: if(difference < 0){ difference *= -1; } (by kemort)
C++ Data Structure Tutor
Hello I am a college student enrolled in a C++ course focusing on Data Structures. I am looking for...
[1 reply] : Why not post it here for people to look at and discuss? (by MikeyBoy)
How can I take input extened ascii ,control charater from text file ?
How can I take input extened ascii ,control charater from text file ? I am working with huffman enco...
[1 reply] : Try using the binary format and an unsigned char. (by Thomas1965)
Compilation Issue across AIX and Linux
Hi , I have below code snippet : >>cat myinc.h #include <iostream> class not_Defined; class ...
[3 replies] Last: Thanks , it ( this-> or class_C:: ) resolved the issue and the above e... (by akshayhigh)
by SCB3
Help with A* Pathfinding
I am trying to read in from 2 text files (one contains the start and end coordinates, the other is a...
[5 replies] Last: (by kemort)
by SCB3
A Star Pathfinding issues
Happy New Year everyone. I'm having some trouble implementing a A-Star Algorithm into C++, I do u...
[1 reply] : (by kemort)
by zingo
delete files older than n
What is the best way to delete all files that haven't been modified in X days? Thank you.
[5 replies] Last: Something like this, perhaps: #include <iostream> #include <string> ... (by JLBorges)
From input argument to BYTE[]
Hello I have a program that uses a BYTE pin = "123"; that I use in a outside method. Now inste...
[4 replies] Last: Thank you! (by Johannes H)
Where do I find the Standard ISO C++?
Many times I read C++ documentation and they refer to the Standard ISO C++ Where can I get it for f...
[2 replies] Last: The best browseable copy now is for pdfs and ... (by Cubbi)
I need assistance with the last bug in my program.
In my program i am trying to only get input (variable guess) for one letter, and if the user does in...
[5 replies] Last: if the user does input more than one letter, it will be ignored In... (by gunnerfunner)
Moving camera in a 2D game
Hi guys, I'm trying to create a simple 2d game using c++ and SDL, I've made this function for testin...
[no replies]
Assignment :
28. Implement a program that takes 10 integers from the user in the range 0 to 9 (there can be repet...
[1 reply] : Please note that this is not a homework site. We won't do your homewor... (by keskiverto)
Initialising a class object with the return value of a function
Hello, I’ve been playing around a bit with functions returning a class object. There’s one si...
[2 replies] Last: Hi Yanson, thanks for your fast answer, that looks like it's the solu... (by langaro55)
vector erase
hello guys im just wondering how can i delete vector . #include "Student.h" void Student::list...
[1 reply] : You have a loop of the form: for(int it=0 ; it != students.size(... (by cire)
Sum of the series?
hello, i am trying to figure out this program, how do i go about this? sum = a+1/b*1 + a+2/b*2...
[5 replies] Last: And a fair bit of integer division And the fact nothing is actually a... (by lastchance)
nested for loops
Consider the image pattern described by the matrix P(I,j) P(i,j)= . . . . ....
[1 reply] : And your effort thus far is .... ? (by gunnerfunner)
4 corners
Hi, Can anyone tell me how to go about writing a small c++ program to detect the 4 corner coordin...
[2 replies] Last: This worked great. However I'd like to know what I am doing. I've sear... (by technologist)
Failing with maps
Need help guys, I'm still too dumb for this :S Basically I have this button class, copy/move constru...
[6 replies] Last: Do you always have a button for each INTRO_BUTTON? If so then why not... (by Marcus Aseth)
by sadosm
cant make stars using for loop
i want to make star row and coulombs.
[10 replies] Last: thank you guys, kemort's answer is the best one. (by sadosm)
ERROR in execution
I am making a simple SNAKE Game.... there are errors in running of code and i stuck over here ......
[2 replies] Last: Have a look here. Maybe you can learn sth. from it. http://codereview.... (by Thomas1965)
Pages: 123456... 25
  Archived months: [nov2016]

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