General C++ Programming (Page 38)

by birbal
Cosntant pointer
I am reading c++ primer 6th edition. here i encountered a example int * const pr = &rats; As fa...
[3 replies] Last: "You have to read pointer declarations right-to-left. " http://www.par... (by booradley60)
Random walk program (1,2)
Hey guys I'm supposed to create this program for my c++ class but i am at a loss. i have been doing ...
[20 replies] Last: Again num 4 is alawys 0 so that would mean num3 is always either -1 or... (by giblit)
If statements not working
I am making a multiple file program. I need to get commands from a input file and make the program d...
[no replies]
Windows RAM Limit
The current program I am writing crashes because the memory exceeds the RAM limit in Windows. Would ...
[5 replies] Last: Also are you allocating on the heap or stack? (by giblit)
How to make this Expreesion Tree?
#include<iostream> #include<string> #include "StackType.h" using namespace std; struct node...
[1 reply] : Line 98: printTree is declared as requiring one argument of type node... (by AbstractionAnon)
Inventory problem?
Hi I am developing an inventory class and items, and weapons. Can anyone see the issue with my co...
[7 replies] Last: I would stronly suggest you use a standard container for your Inventor... (by AbstractionAnon)
explicit typedefs
Hey guys, I'm looking for a way to make explicit type conversions between two "types" that are re...
[5 replies] Last: Oof, that hurt my head. I think I'll stick with Boost.units for now, b... (by Gaminic)
Irrlicht custom animated scene node?
Hi, Firstly I would have posted this in the Irrlicht forums but I think their registration system...
[no replies]
Simple Peer-to-Peer in C.
Using C instead of C++, can anyone link me to a for-dummies example of simple peer-to-peer connectio...
[3 replies] Last: Yes, there are a few libraries that let you write portable code for so... (by Computergeek01)
Specialised collections (or not)
I've got myself into a debate in the office about specialised collections, I feel like a lone voice ...
[3 replies] Last: @doug4 20 different MyTypes, soz for the confusion. we only use #defi... (by Jaybob66)
by ane
list of vectors (a vector of n vectors of m elements)
I create a list of vectors (a vector of n vectors of m elements). std::vector <std::vector <int> > ...
[1 reply] : I create a list of vectors (a vector of n vectors of m elements). It... (by Computergeek01)
Need help!
I am very new to C++ and I find it very hard to write this program for the first time. I've been wat...
[1 reply] : What have you written so far? Also, who gives you this assignment? Us... (by LB)
Staic allocation and dynamic allocation
Lets say I have following code... if(pass==1) [ int a; ..... .... ...//somecode } ...
[2 replies] Last: @Doug4 Thanks.I have got it. (by venkatacplpl)
string replace is not working for "\'"(\+Apostrophe)
Currently I am trying to write a program where my requirement is I want to change ‘ as \’ using ...
[3 replies] Last: No worries dude :) (by mutexe)
Homework help!
If anyone understands my homework assignment, I would appreciate any help. Unsure where to start....
[1 reply] : As always: input, logic, output. The input is clear: two sequences of... (by Gaminic)
pointer to vector problem
ive created a vector of vector and initialized like this vector<vector<double>*>* vec1= new vect...
[11 replies] Last: ok got it i want to copy vector<vector<double>*>* vec1 from vector<ve... (by naveen2525)
i want to ask whether the library graphics.h is compatible with 64-bit windows 7?
[2 replies] Last: Nope. It is not. graphics.h is about 25 years old. It was created fo... (by MiiNiPaa)
graphics h error id returned 1 exit status
Hi!I am trying to compile a program with the graphics.h library included but I always get this error...
[1 reply] : That library is very old, deprecated, and non-standard. If you want g... (by giblit)
ncurses not working with iostream
ive recently started working with ncurses on linux. it doesnt want to compile if i include iostream ...
[3 replies] Last: well iostream is very different than fstream (in this case). iostream ... (by Little Bobby Tables)
Moving the head of an array
Basically, my function receives an array. For example: u8 array = {1, 2, 3, 4, 5} I don't need...
[1 reply] : int myArray = {1, 2, 3, 4, 5}; int *cut = &myArray ; somefunc(cut);... (by Smac89)
Pages: 1... 3637383940... 58
  Archived months: [feb2014]

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