Beginners - January 2012 (Page 18)

help with preoproscessor directives
 
i am trying to make a type from one class carry over to another class and dont know how. i need to g...
[4 replies] Last: why your header don't have include guard? TIP: #ifndef HEADER_NAME ... (by codekiddy)
by seppel
Constructor Syntax
 
Having defined a class A with several constructors and a default constructor the statement A a( x )...
[8 replies] Last: Users.Peter87.Respect++; Wazzak (by closed account zb0S216C)
double definition help
 
hello, i am getting a compile error for my program, i have been getting this error fairly frequently...
[2 replies] Last: thx (by jpm61704)
Doubt in pointers
 
I have been told that following 2 statements are equivalent: a = 0; *(a + 5) = 0; Where a is...
[2 replies] Last: yep. I just printed the addresses and understood. Doubt solved! :) (by anonymized)
question about scoping and performance
 
I don't really understand caching as well as I would like, but as I understand it, it's good practic...
[6 replies] Last: I would like to see some proofs that it does affect performance at all... (by Peter87)
Templates..
 
Hi everyone, I have an code to write about 3 containes using templates(for different data types)....
[4 replies] Last: It's hard to understand what you mean, Detroit. The whole idea of te... (by closed account zb0S216C)
Problem with comparing arrays
 
I am trying to compare two arrays and see how many are same and in same position. Also, see how many...
[3 replies] Last: the code was only created here. I did not give my actual code because ... (by biplav17)
Got a quick question on while loop.
 
let's say there's an array of 1 by 12 Bruce = (1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4) i want to write...
[1 reply] : for (int i=1; i<12; i++) { if (Bruce != Bruce [i-1]) { cout << ... (by Moschops)
by jzp253
Multiple Defintions (1,2)
 
Everything compiles fine but it wont run because of multiple defintions here is my codes. main,cp...
[30 replies] Last: globals.h extern int PlayerChoice, e, E; extern char UserName ; Pu... (by Moschops)
error: expected unqualified-id before '{' token
 
// // Conversion - Program to convert temperture from // Celsius degrees into Fahre...
[2 replies] Last: Hi, there is a couple of mistakes in your code: 1.) You placed "{" be... (by ssegota)
by tw3tye
SDL_Rect to string?
 
i have created "rect2.x" set it "x = 10" "y = 10" and im trying to display it in text to get you...
[2 replies] Last: Thx much. (by tw3tye)
shared dll
 
hi i have created .dll and .o file of my huffman class like this : g++ -c huffman.cpp g++ -shared...
[4 replies] Last: i m trying to use MFC aplication to make gui for "huffman class" i ve ... (by sourena)
quadratic equation solver
 
Just finished some new code and wanted to share it because mabye some people would like it, Here it ...
[1 reply] : Thanks for sharing, you may want to put it in the source code sub cate... (by strongdrink)
by chipp
virtual function questions
 
why if a class has a pure virtual function, it cannot instantiate an object of its own? i read on th...
[4 replies] Last: pure virtual does not mean you may not write definition for that virtu... (by codekiddy)
Returning a pointer
 
I am trying to return a array of random numbers and it does not work receiving: int *random = ne...
[5 replies] Last: alright thanks! (by biplav17)
GCC: Too Many Open Files
 
I've just compiled my test console and GCC overrode my std::cout 's and printed this: gmon.out: T...
[6 replies] Last: Thanks again, JLBorges. Wazzak (by closed account zb0S216C)
typedef
 
Hi, While looking at some code examples I saw the below typedef char ContactField ; Does th...
[14 replies] Last: hehe, I see we are picking on Microsoft now. Microsoft did what it di... (by webJose)
by tw3tye
SDL_Rect problem
 
void animation(SDL_Rect* nubz){ nubz.x += 32; nubz.y = 0; nubz.w = 32; nubz.h = 32; ...
[2 replies] Last: WOW ... I just faceplm .Going to sit in corner and cry. Thx on help. (by tw3tye)
trying to get preprosceor directives correct
 
im writing a small game in console and i know i have my preprocessor files in the wrong place. in a...
[2 replies] Last: You haven't mentioned where in the file error occurs. Also, in battle.... (by Pravesh Koirala)
by kw1991
moving data from queue to a stack?
 
I'm just learning about queues and stacks. I have the queue and stack working but now i need to writ...
[18 replies] Last: problem solved (by kw1991)
January 2012 Pages: 1... 1617181920... 48
  Archived months: [dec2011] [feb2012]

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