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 << " TELL ME WHERE YOU WANT TO GO : UP, DOWN, LEFT, RIGHT " << end...
[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 have this code so far and want to know if i am going about it ...
[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 other?
[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<5; i=i+1) { cout << "Enter element" <<"[" << 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 without spaces and also i can't make a new line when reading ...
[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 more then 1 .cpp file a quick example: I have the math pa...
[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 where it won't leave the first loop. What it's supposed ...
[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. Basically, there's a function that takes a character and converts...
[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 vectors for a non recursive towers of hanoi homework assignm...
[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 programming language???). I'm now learning C++ by myself from the ...
[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 book that I could get to learn the very basics of C++ but a...
[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 much slower rate. When I compile it, it takes me all the way t...
[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 { b b1;}; class b { a a1;}; int main(int argc, char *ar...
[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 making it a generic class (presumably using templates), that...
[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 of the "for" kind. I feel like everything started to slowl...
[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 inFile("IOFile.txt",ifstream::in); char ch; inF...
[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 problem is this: I have a character in the game. I would ...
[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 know i need to use a win32 window app instead of a win32 consol...
[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.