Beginners - March 2009 (Page 3)

Saving to a Text File
 
Yes, I realize, this is a nooby question. Yes, I realize that I myself am a noob. I haven't been at this particular language very long. I've been designing a...
[2 replies] Last: Ahh, that was why, I hadn't included that library. Thank you very much... (by The Luvvah)
by blankk
txt and arrays
 
i have the following exercise A txt file which has in each line a name of an athlete and his 10 best scores for this year. Every athlete's name is no more ...
[2 replies] Last: Why don't you use a vector ? (by Bazzy)
ASCII file as input
 
I need to use ASCII files as input to my program, and haven't got a clue about how can i do that (the program should read the file's location from keyboard). So...
[2 replies] Last: Here is a tutorial on input/output with files: http://www.cplusplus.co... (by Bazzy)
by Umz
mkdir() mode_t arguments
 
I'm dealing with directories, so far I've read the contents and I wanted to move on to creating directories. When I use mkdir() with just a pathname I get ...
[2 replies] Last: Much appreciated. I'll look that up and use it. (by Umz)
playing around with functions
 
hi folks, i am currently playing with functions and trying to figure out how they work. in my piece of code i am looking at taking a users input and then cal...
[2 replies] Last: thanks bazzy i'll try this when i get home . ............ i got t... (by winggeek)
by Sabal
int main()
 
Hello, Ive seen int main() written like this, int main(int argc, char *argv ) or in this fashion a lot, and i was curious what the purpose of writing it...
[3 replies] Last: Also in Windows program arguments are important, an example could be w... (by Bazzy)
by zokho
sorting vector!
 
Hi! i am new in C++ and i faced to a problem in my first project! it is the story: i have a class named "Student" which has 2 properties: StudentName and p...
[1 reply] : Overload the < operator for Student class if the name is a string ... (by Bazzy)
Difference between char* and char[]
 
Recently I came across something that puzzled me, an array had been declared using char *sent = "This is a sentence"; . I know that arrays are very similar to ...
[7 replies] Last: Heh, I know I can be a little arrogant at times too... and even a litt... (by Duthomhas)
by zydeoN
How to full screen
 
Hi, how do i make the program running in full screen? My screen is 12800x800, is it necessary ?
[3 replies] Last: still cant do it. Im using vista too. they say that in vista you cant ... (by zydeoN)
problem with my first C++ program
 
I am new to C++. I did the Hello World code in MS visual C++ 2008 ...when I select execute..the compiler execute the program..it supposes to appear a window..i...
[7 replies] Last: meant || didn't notice i didn't include the second | (by jaydr)
Vector issues with storing class instances
 
Hello again! Well, same old school, and same old issues. I have made a program to get: name test scores average of test scores highest test score ...
[4 replies] Last: Ok, gotcha. But here is what i am looking for. I have ONE vector, stor... (by William McHugh)
Memset Question
 
Hi Guys, I have a quick question. I am sorry in advance if it sounds little too stupid. But in the code below, I am hoping that it will NULL the allocate...
[4 replies] Last: Thanks jsmith ! (by kevinchkin)
couldnt work out!!!!
 
Hi i been trying to write program to write like this 1 2 3 4 5 6 1 1 2 3 4 5 6 2 2 4 6 8 10 12 3 3 6 9 12 1...
[2 replies] Last: thanks eker676 i fixed that already like this #include <iostr... (by pczafer)
by jzackt
problem with arrays and my minimum function
 
Im trying to learn how to use arrays in C and I'm having some trouble. I think my main problem is understanding the use of pointers. I'm just trying to take t...
[4 replies] Last: thanks...hopefully this will help (by jzackt)
Validation problem
 
hi, i'm making a database system for my module project. my database system is about a gaming store where records can be stored if there is any games rental i...
[9 replies] Last: thank you, i just made it return to 0 and it's all right. (by kronoxz)
by newb17
no idea what this compiler error means
 
im trying to compile my assignment and im getting this error /usr/include/c++/4.0.0/i686-apple-darwin9/bits/c++config.h:64: error: expected constructor, dest...
[3 replies] Last: Make sure you aren't defining any of the same symbols that the C++ lib... (by jsmith)
String reserve to maxsize
 
Hello, For some reason I get an exception when I try to reserve to a string to its max size. Why is this? string str; str.reserve(str.max_size()); ...
[10 replies] Last: @eker676. I'll get there one day :p (by CPlusplusdna)
Batch Conversion
 
I am a Beginner in C++ Programming and use SYSTEM() Function to execute external Programmes from within C++ compiled EXE. 1. How can I handle batch ERRORLE...
[1 reply] : the system function returns the error level as an int, so if (syst... (by Gumbercules)
by jaydr
making console app full screen
 
i want to make my console app full screen but i can't seemed to do it. i was directed to the following site http://www.associatedcontent.com/article/1167948...
[5 replies] Last: Vista doesn't do fullscreen consoles. You can get close, though... Se... (by Duthomhas)
by sedain
newbie
 
i have an aim to create a program to link to a database so i will need the help of all you pros out there just tell me wat do i need to begin and how to sta...
[1 reply] : http://lmgtfy.com/?q=C%2B%2B+link+to+database Google is your friend... (by eker676)
March 2009 Pages: 12345... 29
  Archived months: [feb2009] [apr2009]

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