Beginners - January 2011 (Page 8)

Problem with operator<<
 
Hey guys im just writing a program that works like cout. Instead of typing; cout << "abc"; I have to write; spy << "abc"; and make it work the same way...
[9 replies] Last: The idea is to continue working with the same object. spy << "oh " <... (by ne555)
Segmentation fault while running command line arguments
 
Doing a "guessing game" where the user can edit the difficulty and guessing range at the command line: Essentially, the user can run the program and then typ...
[9 replies] Last: I think the overall problem is that you need to first test for the num... (by sadavied)
argv switch checking
 
Hi everyone, I am writing a program which plays morse code, using the system speaker, for linux. I have the program almost working, however I have one problem,...
[2 replies] Last: Thanks. Apologies for not searching the forum first. (by haggismn)
I don't understand EOF.
 
I'm not getting the EOF stuff very good, is there an article or something that you guys could point me to? I know that it signifies the end of file, and that af...
[1 reply] : You can try the tutorial and the reference pages: http://www.cplusplu... (by Bazzy)
Opening a url with the default browser
 
Hi, I want to know if there is a way that I can open urls through the program. I have the urls saved in a stack as strings. I tried the function ShellExecut...
[1 reply] : I think the url needs to be a cstring, not a std::string... try url.c... (by cran)
by Mortum
linker error: undefined reference - error in easy class
 
Hey guys, i'm using Dev-C++, and everytime i try to make some classes, it's one and the same error. Here is an example of my Code - its pretty easy, but the...
[2 replies] Last: Thanks a lot. It works fine now. Can't believe such a mistake happen... (by Mortum)
Global objects in seperate file
 
I'm trying to make a simple program that uses global class objects. The only problem is that I can't seem to define them in a separate file. eg: "classA.h" ...
[3 replies] Last: Thanks to both of you! Great help! (by Icarus247)
a simple task
 
Guys please give me a hint. The task is how to divide a variable into parts. For example an user inputs number 34559. I have to print it as:3 4 5 5 9...
[4 replies] Last: You can first convert this integer into a string and store it in a ch... (by sajithshn)
by helpme
I don't understand pointers, templates, polymorphism...... (1,2,3)
 
I have learned and mastered every other tutorial up to pointers(except a few before about struct that didn't appeal at all and made little sense to me). But ...
[40 replies] Last: Pointers are simple to understand. I took me a while to get the hang o... (by closed account zb0S216C)
[please] About Classes I
 
please give me some advice what should I make with this coding. I have a question below Design and implement a class dayType that implements the day o...
[1 reply] : you need code indent tag to write your code here. you will get more he... (by hasula)
I need some serious trouble here,.
 
Hey guys, im new to c++ language,ive been reading things like for 4 hours everytime im free and do coding as much is i have free time,. but seriously, it feels...
[3 replies] Last: hi friend, i'm new too, i learn c++ form tutorial in this website , re... (by hasula)
Using user inputed date later in code
 
So I Have a code int nName int nYear cout << "Please enter your last name: "; cin >> nName cout << "Please enter a year: " cin >> nYear Then w...
[2 replies] Last: sorry... friend..., im beginer too, but this is what can i do to solve... (by hasula)
Problem with Standard library (istream)
 
I have a problem with only this function, no idea why. istream& Student_info::read(istream& is) { delete cp; char ch; cout << "Type U for undergr...
[4 replies] Last: Damn, I'm impressed. Thanks alot Albatross. (by eNergizer)
exit() and reading text file
 
I'm learning about reading text files, and it says to use the exit() function to check and make sure the file was opened. Similar to this: cin.getline(filenam...
[2 replies] Last: True. That said, you should try to avoid structuring your program to n... (by Duthomhas)
Program updates
 
I have been trying to wrap my head around ways to create a program where I can make updates on the fly, without having to recompile the entire program. How is...
[2 replies] Last: Ideally only I or some other authorized programmer's would add the fun... (by SgtPooki)
beginner lottery
 
I have been assigned to make a 2 number lottery game. The numbers can be the same, but not everytime. I have no idea what i'm doing. any advice would be great. ...
[17 replies] Last: Thank you all so much, I finally figured it out. I needed extra parent... (by VvKevin80)
by Zeikko
Why should I use function prototypes?
 
C# really pissed me off so I decided to return to learn C++. However, I really don't get why I should use function prototypes. Is there any real reason, or is o...
[3 replies] Last: Function a calls function b Function b calls function a You woul... (by Intrexa)
Graphical lib
 
nevermind
[8 replies] Last: Yeah its a file created by the school. nevermind anyways. (by I Need Help)
Linux, Unix, Windows programming
 
What's the difference between programming in Linux, Unix, or Windows? I Googled it and most of the responses explained it as having not much difference. Is ther...
[3 replies] Last: As fafner said, the language's structure does not change from one OS t... (by closed account zb0S216C)
by Aetal
Proper way to make a calculation
 
Hello, I should start off by saying I am new to C++ and recently started my first semester in it. I think my question is simple, but I am not sure how to really...
[3 replies] Last: Thank you both for you responses. I really do appreciate the input on ... (by Aetal)
January 2011 Pages: 1... 678910... 42
  Archived months: [dec2010] [feb2011]

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