Beginners - December 2008 (Page 7)

#define in C++
 
Ty4 clicking Okay, in a book I read that the syntax to the symbolic constant declarations goes something like this : #define NAME CONSTANT and it was a...
[2 replies] Last: #defining constants or macros is not really needed on C++. I think th... (by Bazzy)
pointers
 
actually i am new to programming, i have a question that what are the basic use of pointers? i want help also by a written program. thanks
[2 replies] Last: http://www.cplusplus.com/doc/tutorial/pointers.html (by elpis)
by mangeh
Erasing a file
 
void rensafil(art *lager, int& skrivit){ fstream utFil; utFil.open( "lager.txt",ios_base::in|ios_base::out|ios_base::trunc ); utFil.close(); ...
[2 replies] Last: #include <stdio.h> defines int remove(const char *... (by kbw)
by hacker
How do I delete a folder?
 
How do I delete a folder?
[3 replies] Last: Sorry, I'm stupid. Could you please give me an example?Like this. htt... (by hacker)
by Duncan
Why are member variables usually private?
 
hiya everyone. In most of the sample code I see, classes are defined something like this: class A { private: int x,y; char theChar; publ...
[12 replies] Last: Yes, that would be a good example, although you will probably want set... (by firedraco)
by Umz
Header files in Linux
 
I recently installed Ubuntu on a PC, and I got code::blocks for it. The problem is that even when I declare header files I still have to point to the functions ...
[6 replies] Last: You'll also find that you can now do things like this: for (int a=... (by helios)
Using '\'
 
I undesrstand (I think) that when used '\', it cancels out whatever comes after it. Now, for my menu in my C++ Console App, I need to use this '\' in a cout sta...
[6 replies] Last: You missed a %. system("%ProgramFiles%\\Windows NT\\Accessories\\w... (by Fredbenz)
sorting classes read from a file
 
Hi can anyone help? Can i get an example of sorting classes in ascending order read from a file without using vector? I know I'm supposed to use a copy construc...
[3 replies] Last: this is my code for my sort function //function to sort my database o... (by tyky9808)
by Davids
user chooses where the file will be created, how can i do that?!
 
i need to create file and put there txt information from massive, but user have possibility to chose where save the file ? cout<<" Where do you want to save ...
[1 reply] : I think you should read this: http://www.cplusplus.com/forum/beginner/... (by Bazzy)
by OGNNEC
Visual Studio C++ questions
 
I am using Visual Studio C++. In each of the very simple learning programs I am writing, I need <iostream> namespace etc. I can, of course, include them in eac...
[2 replies] Last: This may help: http://msdn.microsoft.com/en-us/library/ms185291(VS.80)... (by Bazzy)
Visual C++ 2008 Express Edition
 
I seem to be having a bizzare issue. I created a hangman game just to push myself and to learn more. I did this with Visual C++ 2008 Express Edition. The pro...
[8 replies] Last: That's not portability. That's... distributability. Good point, b... (by Fredbenz)
Passing anytype parameter to function?
 
I need a nice function which displays a message and then waits for input, setting the inputted value to a reference parameter passed or/and return it within the...
[4 replies] Last: The former passes a reference to the object that remains in the caller... (by helios)
by asmtom
Having users enter filenames in c++?
 
In my program I want the users to create their own files, so that they can come back and use the same data later instead of just entering the data everytime. I'...
[4 replies] Last: awesome! thanks it works perfectly! (by asmtom)
what is wrong here?
 
Can,t figure it out what is wrong with this code: #include <iostream.h> int main(){ int a,b,c=10; a=b=33; if a>c then b=b+c else b-=c; ...
[9 replies] Last: ... ... ... ... ...... ... .. ... (by Bazzy)
by tomzi
Problem No.xx
 
hay! I am beginner in programming, so please, if anyone could write me a program that displayed all whole numbers from a to b. Thank you
[2 replies] Last: I think I shoud do that. Thnx (by tomzi)
Not sure where to save file
 
Hey guys. When writing a program that reads from a file, where do I save the file so the program can read it? Thanks for your help in advance.
[4 replies] Last: It depends on the nature of the file you are going to save, and the OS... (by Duthomhas)
spaghetti code...
 
I understand that it is taboo to use the GOTO in modern programming as it can make a program hard to read. Well, with that said I just learned about the contin...
[3 replies] Last: talking about goto , http://www.cplusplus.com/doc/tutorial/control.ht... (by Bazzy)
[SOLVED] Various Problems with HANGMAN Program
 
SOLVED Thanks!
[10 replies] Last: SOLVED My final production - //Code source mostly based on HA... (by bluezor)
how to make a loop with menu
 
im trying to put a simple menu at the end of the program that gives the user the option to repeat the program, it a proyect for my class XDXDXDXD so it can only...
[3 replies] Last: thats a good idea, Y/N, by the way THE PROGRAM WORKED lol tanxz for th... (by matavaca)
by Duncan
using multiple source files
 
I'm experimenting using multiple source files. Here's a short example of what I think SHOULD work...: ///functions.h/// #ifndef FUNCTIONS_H #define FU...
[9 replies] Last: oh.. good call Mythios.. I guess i forgot that. Oh well, it was onl... (by Duncan)
December 2008 Pages: 1... 56789... 17
  Archived months: [nov2008] [jan2009]

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