General C++ Programming - April 2014 (Page 35)

Help with Cartesian Class
 
I am trying to make a cartesian class which allows the user to input two coordinates, displays the coordinates, and uses memberwise assignment to assign the val...
[4 replies] Last: Okay so I changed my code and it runs but it doesn't ask for user inpu... (by lizardqueen)
Detect debugger attached
 
Hi im trying to detect if a debugger is attached to a program my example im trying to check if its attached to notepad problem is its always showing false ...
[no replies]
by K7ing
How can i validate only certain characters are used
 
I'm learning to code and i would like to ensure the program does certain things when certain characters are existing. Ex: cd C:\Program P1 P2 User will...
[no replies]
by kimi86
Read file block by block
 
Hi , I need to read file block by bock (say of size 2) using ifstream: void main() { std::string line; std::ifstream myfilessaved; myfilessaved.open("te...
[no replies]
CRTP in separate .cpp & .h files
 
Hi, Multiple variants of this question has been asked and answers have been given but I have a specific requirement that has been bothering me for quite a few ...
[6 replies] Last: I do not know how to do this... I think you misunderstood. The class... (by Daleth)
Getting a Heap Corruption, help me find the bug please?
 
Hello all, I am getting this heap corruption in my code that I have never seen before. I have read a little bit about it, but I can not seem to find where the ...
[2 replies] Last: omg never i fixed it... It was because in the struct I had declared, i... (by vaze159)
by cbufis
NEWBIE HELP
 
I have been working on this program for over a week. I can only use loops. Please help!! I need this program to go through 3 sales people Reid, Nicole, and J...
[9 replies] Last: I would also recommend learning about a switch statement, which would ... (by Joshhua5)
Function Pointers
 
Hi all! Ive recently got into function pointers, i find that they can be quite handy for making your program very 'dynamic'. However, the syntax is very c...
[2 replies] Last: I agree with @NoXzema - std::function is what you want. However, i... (by TwilightSpectre)
exculdeing items from fgetc
 
Hey all, Yesterday I received some great help with a problem reading in some info because it had a character ('\n') that needed to be excluded from the read ...
[1 reply] : I figured it out. do { if ((data = fgetc(gol_grid_file)) != '\n... (by bwquestion)
Accessing an array
 
struct whichMessage { const char *toMe; const char *toYou; const char *toThem; }; const struct whichMessage theMsg { { "Hello Me", "Hello ...
[2 replies] Last: In test.h struct whichMessage { const char *toMe; const char... (by xwielder)
hangman code wont continue loop
 
I am having a problem with my code. It works fine the first time prompts user etc...however when you lose (no way to win yet not that far in class) it shows yo...
[no replies]
doubly linked list polynomials
 
namespace main_savitch_5 { class polynode { public: // CONSTRUCTOR: Creates a node containing a specified initial // coeffi...
[1 reply] : Do you have a question? Or are you just posting 440 lines of code beca... (by TwilightSpectre)
Help with a project.
 
Im terrible at writing programs and have to take this intro class for some reason, can anyone help walk me through a program i have to write this weekend, it se...
[no replies]
by preedy
allegro
 
is is possible to put a video in your c++ game using allegro 5?before starting the game................
[1 reply] : You'll have to read the documentation ( http://alleg.sourceforge.net/... (by Duthomhas)
by ntran
Graphics for c++
 
Hi all, I have this truss-solver implementation in c++ which, for a given truss and boundary conditions, it calculates the displacements at the joints, and the...
[2 replies] Last: I almost feel bad recommending Tk again... but here is a similar threa... (by Duthomhas)
Hash Table / Linked List Help
 
Have a program that runs some tests to check memory leak/ allocations using a modified linked list class and hash class I've have implemented the linked list in...
[no replies]
by RE9741
Next step
 
Hey guys, I learned the basics of c++ in making terminal applications etc. I then moved on to making windows forms applications. I'm just wondering, what would ...
[1 reply] : This depends much more on what you want to do. Do you want to go mor... (by Hippogriff)
Detecting cycles
 
https://www.codeeval.com/open_challenges/5/ this is the link to the question. I don't want you to solve it. Just direct me. Thanks in advance
[no replies]
cannot access private member declared in class (header file)
 
Hi everyone... I am currently doing the assignment about linked list. Here are some details information about what I am doing.. This program is C++ and sh...
[11 replies] Last: As the default setting is that the datastructure1.h is non-copyable, a... (by programnightmare)
Code::Blocks SDL help!
 
So I am doing the tutorial at http://lazyfoo.net/tutorials/SDL/01_hello_SDL/index2.php for SDL (I am a beginner). I wrote the program fine, but this always happ...
[3 replies] Last: Yep. Same problem. What could the problem be? (by pieceOfPi)
April 2014 Pages: 1... 3334353637... 41
  Archived months: [mar2014] [may2014]

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