General C++ Programming (Page 35)

by Tier
Need help w/ BUG in Consumer Producer lab
 
hey guys, for one of my classes, we're learning semaphores and pthreads. So, I wrote everything and ...
[3 replies] Last: OMG that was it! :D the correct line of code is: head = (head + 1) % ... (by Tier)
getline and cin abnormal output
 
hey guys I am having the following error for this code when I try to input file values. cout<<"P...
[5 replies] Last: There is C I/O (c streams) defined in cstdio: stdin / stdout /stderr /... (by MiiNiPaa)
Question about a loan calculator
 
Hello everyone, I'm trying to build an interactive loan calculator for a school project. These are t...
[3 replies] Last: Thank you everyone for all your help! I finally got it working. (by Mathguy217)
Problems with stringstream
 
Hi everybody. I am testing HTTP headers using sockets. I have created a class to control them and...
[1 reply] : 1) Use ostringstrem instead of stringstream : you do not read anyt... (by MiiNiPaa)
i need help in coding this please
 
I am totally new to this site as i am also a beginner in c++. I need help in coding this please. ...
[1 reply] : Hi, i am also a beginner in c++ Could you move this to the beginne... (by TheIdeasMan)
How would I refactor this into overloading ++
 
Here is the code I am using to ++ bool Inventory::incrementItem(int checkSumName, int weight) { ...
[1 reply] : Does the item not know its own weight? You seem to have that as an in... (by Disch)
UGH PROBLEMS!!!!
 
I cannot get this simulation right. Can any advanced users help me debug this? #include <GL/glut.h>...
[1 reply] : post this in code tags. It is easier to read. http://www.cplusplus.co... (by Bdanielz)
Whats the difrence Pointer and Refrence
 
So what is the difrence betwen. SomeStruct* StructOne; and SomeStruct & StructTwo; // Can not be ...
[5 replies] Last: So passing somthing by refrence &SomeObject is the same as just passi... (by helios)
Help with SFML Problem?
 
I got SFML to finally work with Qt Creator (I tried using it with Code::Blocks, didn't work) and I r...
[7 replies] Last: I just did. And I also noticed something. When I go to exit the progra... (by AceDawg45)
SDL_TEXTURE high memory usage
 
Hi Everyone, I'm programming a 2D Game usign SDL_2.0 and I'm having an issue with SDL_Texture. ...
[1 reply] : Creating an object should not imply creating a texture. The actions of... (by helios)
by leo255
Need Some Help Understanding Stack Implementation of Linked Lists
 
Hi guys, Not sure if this should be in the beginner section. Perhaps it should be. I have this...
[1 reply] : except why I'm setting ptr = p. I feel like p should be equal to NULL... (by helios)
Recognize wich circuit is closed
 
Hello, Me and my friend decided to start a project. We know few things about C++ but we need to kno...
[no replies]
C++ Compiler for Chromebook
 
I have an Acer Chromebook and wondered if anyone has used any of the C++ compilers in the Google app...
[1 reply] : Hopefully this helps: http://superuser.com/questions/430418/compile-c-... (by CDuck)
by amaid
Meaning of Shape *p=new Circle();
 
Shape and Circle are classes.Shape is the base class and Circle is derived from Shape class.Can some...
[3 replies] Last: "Object Slicing" refer to the case where you assign an object of a der... (by ne555)
Open World RPG - Loading System
 
Hello all, I am making an open world RPG game. I have already done the graphics rendering (with dir...
[4 replies] Last: Ah good idea, thanks (by Irrelevant Elephant)
Priority Queue
 
I am trying to implement the following priority queue and having trouble defining the print_tree mem...
[no replies]
Random Numbers Generator Question
 
So, there has got to be an easier way to generate random numbers within a specific range. Here is th...
[10 replies] Last: I just use C++11's RNGs instead of rand and let them do the distributi... (by Disch)
by chhe
speed question
 
I had written a program that writes to a comma delineated file and it takes forever to finish runnin...
[6 replies] Last: First step, get rid of the vectors and directly write your strings in... (by Agent)
by Agent
General Computer Science question
 
On multiple occasions, I've found myself writing code that requires a constant loop with the conditi...
[9 replies] Last: Can you explain what this is or provide a reference. I couldn't find ... (by Grey Wolf)
by antmjr
how to set stack size with GCC MinGW
 
Hi all. I'm following a course with coursera (algorithm 1) and my program for the assignment crashes...
[5 replies] Last: well, just a little update for those who may need the same piece of in... (by antmjr)
Pages: 1... 3334353637... 39
  Archived months: [may2014]

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