Beginners - August 2008

Line clearing
 
i recently wrote a fight program in which you hit 1 to attack 0 to defend and i was wondering if there is a way to clear the line after it is displayed?
[4 replies] Last: i am just a noob to all this, but wouldn't putting a: system("cls");... (by Zhuge)
by g0dwyn
Friend classes and inheritance
 
Hey all, I know that friendship isn't usually inherited by a derived class, but does that still hold if the base class is purely abstract? Thanks!
[1 reply] : It should seeing as an ABC is exactly like a regular class except it c... (by ShawnStovall)
by ave
what does -> mean
 
Well first off let me say hi to everyone, this is my first post on the exciting journey to becoming a c++ programmer.... well im excited anyway- iv been program...
[4 replies] Last: Actually with the Lightwave SDK it is a pointer to a struct as C has n... (by ShawnStovall)
What does cin>> do?
 
I'm just curious :D! I'm a TOTAL beginner at C++, so sorry if I sound stupid :o
[4 replies] Last: @kryptonite Don't forget to #include <string> ... Some compilers wo... (by Mitsakos)
Infinite loop
 
Does anybody know what might be causing this while() loop to go on indefinatly when a char is entered? It works fine for an int but a char will cause the printf...
[1 reply] : You need the user to enter the number 5 (as char) to exit the loop but... (by Mitsakos)
Code Improvement?
 
Hi, just learning and experimenting away at C++ and I was wondering if you could suggest any ways I can make my code more efficient. Well here's my code. Beware...
[12 replies] Last: If you are coding in the C++ the "correct" way to include that file wo... (by Zhuge)
debuging in VC
 
hi. i use VC 2008.every thing is ok when i create new project and debug and run ... but how we can debug and edit cpp codes(that we have already in hard drive...
[1 reply] : The only way to debug in VC++ is from inside a project, and only if th... (by helios)
difficulty in understanding function pointer
 
hello friends... can anybody tell me how to use pointers to function with an example?? thanks..........
[4 replies] Last: How about http://www.newty.de/fpt/index.html ? (by Duthomhas)
Global Variables in Multi-File Projects
 
Hello everybody. I have a question regarding global variables in a project with many source code files. I have already defined a class called "sprite" and I wou...
[6 replies] Last: Ah, there we go. Thanks for the help! This was really frustrating me! ... (by Terekane)
by fyndr
Turning C++ Code into DLL
 
Firstly, let me say that I have only very limited experience with C++. I am writing a program in Java that is supposed to recognize and respond to global inp...
[no replies]
Seconds in a millenium?
 
I know this could be coded by simply doing.. int main() { int retnum = (1000 * 365 * 24 * 60 * 60) return(retnum) } But I am working with arr...
[6 replies] Last: If you want to practice matrices, try calculating a Pascal's triangle ... (by helios)
...no match for 'operator>>'...
 
I'm so new to this that I doubt I'll even understand the answer, but since one guy in my ITV C++ class has already turned in this assignment before we've been t...
[9 replies] Last: Brewmaster That looks fine. system() is evil, but that doesn't mean... (by Duthomhas)
by paul23
another unknown error
 
Well I got an error earlier today and I've been trying to solve it the whole day already.. But I don't understand what the error means and I can't find any synt...
[8 replies] Last: Assuming that your field.h is the complete file, you haven't got an #e... (by bnbertha)
by ave
trying to understand this code snippit
 
Hi I need some clarity on how something works in c++ if you take a look at the code below, this is a plugin/ dll that is called from lightwave 3d when the us...
[3 replies] Last: Q1 The syntax is a bit weird on this; it would be useful to see code t... (by bnbertha)
by Xexr
Return array from function, how do I get the size?
 
Hello all, I realise this is a ridiculously simple question, but please humour me. If I want to return an array from a function, I see I can dynamically crea...
[5 replies] Last: Thanks guys, I understand, last time I do that :) (by Xexr)
variable name length and inheritance
 
I wanted to know if c++ has a variable name limit. i knw that visual basic has a limit on variable name lenth of about 30 characters and was just wondering if t...
[2 replies] Last: thanks for the clarification about variable names. now on to the other... (by Cambrion74)
loopings
 
hi, i'm new to c++, can someone help me make a program using for loop with this output; enter a no:3 1* 2** 3*** the no. and asterisk depends on the in...
[3 replies] Last: What string(int,char)? http://www.cplusplus.com/reference/clibrary/cs... (by helios)
problem with properly passing a multidimensional array to a function
 
This is a sample of what I'm trying to do "main.h" extern const int N; extern const int R; "main.cpp" #include <main.h> const int N = 100; const i...
[11 replies] Last: My bad. I got confused. It's line 43. (by helios)
Unscramble the words
 
Ok , I want to write a program , that unscrambles words , I have a list of words , lets say 50 words , and I type 10 scarmbled words , and I want that program w...
[3 replies] Last: Ok , thanks , I'll try to write some code in few days , then I'll post... (by m4k4v3l1)
by alejol
Use numbers and operate with them if they are inside strings
 
Hi there, im asked to make a simple program that takes two numbers and perform an arithemtic operation, the problem is that i have to store everything in string...
[5 replies] Last: No worries man :) (by Zaita)
August 2008 Pages: 123... 14
  Archived months: [jul2008] [sep2008]

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