Beginners - May 2010 (Page 19)

by Morph
What's the problem here
 
I tried everything but x and y values always point 0 and -1 for(;;) { cout << " T...
[7 replies] Last: [quote=Desh]Consider using a vector of strings - since the things insi... (by Mythios)
by ollie
linked list
 
I have a linked list and want to be able to access any element in the list by inputting an int. I ha...
[2 replies] Last: Yes - or this line: current = current->next; would segfault, because... (by closed account Lv0f92yv)
#if in C++
 
What is the purpose of #if in C++? How does it differ from the regular if? Why use one over the othe...
[19 replies] Last: I couldn't find anyone in this thread explaining why the heck one woul... (by Albatross)
Comparing entered array's elements
 
#include <iostream> using namespace std; int main() { int array1 ; for (int i=0; i<...
[2 replies] Last: Before your return you could do something like: for( int i = 0; i ... (by Mythios)
a problem with file
 
hii i am new to c++ i have a problem with files. when i read from file the words appear on console w...
[9 replies] Last: You could do something like this which reads a line inside the file: ... (by Mythios)
How do i combine 2 .cpp files
 
Hey guys the dude that asks newbie questions here again. Today i have a question regarding using ...
[14 replies] Last: What's with all the bad advise in this thread? - Don't use globals.... (by Disch)
Trying to assign a unique record number
 
I've written a function to assign a unique number to a variable in an array. I've run into a problem...
[2 replies] Last: recordnumber is a variable in the mobile struct (by Hanii Puppy)
by jarke
Problem outputting arrays
 
Hi all. I wrote this piece of code to test a function I would be using in a larger program. Basic...
[8 replies] Last: Thanks for all of the help, everybody :) (by jarke)
Pointer to a vector
 
I am trying to make a pointer to a vector in order to be able to easily choose from a few different ...
[5 replies] Last: Please pay attention. You cannot learn anything unless you actually t... (by Duthomhas)
by codder
C/C++ Cursor
 
Ok solved.
[6 replies] Last: It sound like you are drawing a cursor on your window at a position wh... (by closed account z05DSL3A)
A question about "Accelerated C++" book
 
Hi, I'm new to C++ and rather new to programming (only know SAS previously, which is not a progra...
[1 reply] : pantera, First of I can't really answer this because I have not rea... (by closed account z05DSL3A)
C++ Resources (book suggestions)
 
Hello I am relatively new to programming and I was wondering if anyone could suggest a comprehensive...
[4 replies] Last: Book Of Brilliant Things http://www.cplusplus.com/articles/Grey_Wolf6... (by closed account z05DSL3A)
by Nikoru
Trying to figure out how to do health regenration with a function.
 
Okay this is from my Knight Class. I am trying to figure out how I can bring back the health at a mu...
[11 replies] Last: @moorecm, Alternatively, you could do something with static variables... (by chrisname)
compilation problem
 
Hi to all, I need to compile a kind of program like this one: class a; class b; class a...
[2 replies] Last: ok, its better thank you, but now I'm stuck with a : error: invalid... (by logiq32)
Template Class and by Key comparison
 
I am writing a binary search tree (currently finished, minus generic support), and am interested in ...
[2 replies] Last: So would it look like class Myclass < T operator < > as the declar... (by closed account Lv0f92yv)
looking for advice
 
So I just got a C in my C++ class. I was getting an A up until I encountered loops, especially those...
[2 replies] Last: Totally agreed, Angel. I found (and still find) that to learn new ... (by closed account Lv0f92yv)
"get pointer" will be dirfted after invoking tellg()
 
IOFile.txt as follows: abcd efg hi j kl mno pqrs tuvwxyz int main() { ifstream...
[4 replies] Last: This behavior really bugs me too... there is, I think, little excuse f... (by Duthomhas)
Dynamic Object Creation
 
Hey everyone, I am currently working on a game project and I can be considered as new to C++. My ...
[2 replies] Last: Thank you for the respond, it helped :) (by paprika)
2D graphics
 
Hi how do i add 2d graphics like a background and like a diffrent kind of text to my programs? i kno...
[4 replies] Last: Actually, the Win32 thing in my opinion is the big thing that absolute... (by Albatross)
modifiers
 
is there anyway to make modifiers like __delspec()?
[2 replies] Last: Write your own compiler... (by Duthomhas)
May 2010 Pages: 1... 1718192021... 33
  Archived months: [apr2010] [jun2010]

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