Beginners - January 2009 (Page 3)

by Legion
trouble with array
 
Hello all, my problem is simple. I'm trying to fill Test with numbers starting at 0 and ending with 25(at test ). I can get the first row easy but when i i...
[3 replies] Last: int k is the number that is incrementing from 0 to 24. The ++ operato... (by psault)
by token
Allegro in VCPP 9.0
 
i went to tools>options>projects & solutions> vc++ directories> show directories for: library files> added the directory to the lib inside the AllegroFORVCPP9 f...
[5 replies] Last: I apologize, I had thought I'd received a similar error when I left EN... (by psault)
ATM?
 
I'm trying to help a friend out with a program he's working on, but we're getting weird errors-after typing "Return" it closes randomly instead of reiterating t...
[1 reply] : Don't use strcmp(). Just use ==. Using !strcmp() makes your code diffi... (by Zaita)
by Djky
rewrite switch structure to if...else structure
 
Hi. im doing assignment. there is a question ask us to rewrite a switch structure to if...else structure. Question: #include<iostream> using namespace...
[7 replies] Last: http://www.cplusplus.com/doc/tutorial/control.html (by Zaita)
command "cin.getline()" is ignored in some cases
 
Hi, I've just started programming in C++. I learned how to use the command cin.getline(), and mostly it works perfectly like in this case: #include <iostre...
[5 replies] Last: Read: http://www.cplusplus.com/forum/articles/6046/ It doesn't use... (by Zaita)
Problem with returning objects
 
Here's my code (console application): #include <iostream.h> class Me { private: int age; public: Me (Me & rhs) { cout << "Copy Constructo...
[7 replies] Last: Copy constructor: Me( const Me & me ) { cout << "Copy Constr... (by seymore15074)
Drawing a rectangle
 
I can't figure out how to draw a rectangle. I know it has two loops, one for counting cols and the other for counting rows. I just can't code it correctly. ...
[3 replies] Last: Ok, found out. #include <iostream.h> #include <string.h> void main()... (by closed account 42hU7k9E)
Hello World from tuts
 
Hi , I've read every post on this topic and I have some questions. Has anyone ever got this simple program to work? Ive tried to compile and run it (as a...
[3 replies] Last: Thanks..Your right.. I was using c# and not c++... it works now.. ... (by WhiteTouqueEh)
by Djky
how to output numbers in ascending orders..
 
Hi, im new to C++. Can anyone teach me how to output numbers in ascending order after input 3 numbers? Can i use the if statement to do it? how to do it? T...
[1 reply] : Sure, when you are processing only 3 numbers, thats no big problem. Bu... (by mordekai)
storing data from .ini file.
 
How do I store data that was read from a configuration .ini file?
[1 reply] : Where do you want to store the value? You might be looking for this ... (by elpis)
Parsing by char
 
I am trying to read a title in from a file... how would i parse by char to create the title or is there a way to make it read up to the delimiter?? ex. Th...
[2 replies] Last: Or you may tokenize the string, i.e. divide it into bits that are sepe... (by Corpus)
Project Decumentation
 
Hi I am working on a c++ final project . Everything went well but I could not do the documentation part which includes : 1.Functional specification 2.Tech...
[2 replies] Last: I have not done any of these but I have seen a couple of such docs. Do... (by rahulcrjk)
by dkaip
From utf-8 string to words(substrings)
 
Hello all. I have a utf-8 string(unicode), line string and strtok dont works with utf-8 stings. Is a way to take the words from utf-8 line? string line; g...
[8 replies] Last: Helps very much. I have many codes for reading. Then uploads all this ... (by dkaip)
by masiht
question about storing data
 
When we can store data in int type ,short int long int , flot etc Then why do we use strings ? what is it's advantage ?
[1 reply] : So you can store strings of text efficiently. (by firedraco)
by thokra
Lifetime of data in memory
 
Hi there! I'm not new to programming, but kind of new to C++. One of my biggest concerns, and probably most C++ devs major concern, is memory management. I'l...
[4 replies] Last: The actual push_back() does the copy constructor call on e . So on... (by Zaita)
compiler
 
what is the best compiler to use? i use visual c++.
[5 replies] Last: Nice Article (by Mythios)
Multiple source files
 
In Microsoft Visual Express you can have more than one source file in a project, but how can i make it so that I have functions spread between them. IE: mai...
[6 replies] Last: http://www.cplusplus.com/doc/tutorial/functions.html http://www.cplus... (by Zaita)
by Jyy
Undefinied function atof()
 
Hello, I'm new here, and also pretty new at C++. I've now made a kind of calculator how you can calculate your tax of your income in the Netherlands, where I co...
[10 replies] Last: okay, it works! Really thank you all! (by Jyy)
by jesusk
Easy task... no idea how to
 
I need help with a really simple file :S i used to program on visual basic and it was really easy but I'm having some trouble getting to know c++ so i had th...
[3 replies] Last: pff... syntax... noob problems thanks (by jesusk)
Use global Struct in other files
 
Hy guys, I have a struct defined in one file: struct.cpp #include <stdio.h> #include <stdio.h> typedef struct _ZONA { int preco; int numero;...
[4 replies] Last: Thanks Zaita, it works fine :) (by danielcsgomes)
January 2009 Pages: 12345... 16
  Archived months: [dec2008] [feb2009]

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