Beginners - November 2010 (Page 39)

(Y/N)?
 
Hi again :) As you may have read, I'm working on a text-based C++ game for the console (is that what its called?), and I have points where the user chooses an ...
[8 replies] Last: Thank you both. (by Armageddon)
optional function parameters
 
i have done some research and i've found explanations of how to make a parameter in a function options: int function(int optional=3){return 0;} BUT, I ...
[4 replies] Last: There are several ways to do this, but what you may find most useful i... (by Duthomhas)
Resetting a Do While loop
 
First time on this site and a noob to cpp, so forgive me if my question seems stupid to some. Im writing a File I/O program that takes the input file, reads it...
[no replies]
variable problem
 
#include "stdafx.h" #include <iostream> using namespace std; int _tmain(int argc, _TCHAR* argv ) { double a,b,c,d,e; cout << "a: "; cin >> a; ...
[11 replies] Last: thank you man, u helped me a lot ! (by borneo555)
How to divert file input to standard input?
 
I've been working on c++ for some time and I know the basics. I know how to input from files with FILE and ifstream but my friend told me that there is a way to...
[3 replies] Last: That wasn't what I was looking for but never mind I found out that wha... (by airman9519)
save lines in a vector
 
Hello again! I am working on a project for a few days,and it seems i've ended up in a dead end just when i was about to finish it.Here's is the code so i can e...
[2 replies] Last: It's not what i exactly needed,but you help a lot!I changed the while(... (by rotundjere)
How to read and write binary files
 
Hi, C++ newbie here. I need to read and write certain bytes in binary files. After searching here and on google, I tried this to read: string path = "/hom...
[6 replies] Last: Hi, You were right about ios::in (forgot that). But something went... (by Infante)
by Kness
Function program gives no errors.
 
I have typed up this entire program which should give users a menu option that allows them to determine loan eligibility. It displays 3 options at the menu, wit...
[8 replies] Last: Your prototypes don't match the definitions. If the prototype says boo... (by Browni3141)
Multthreading
 
Hi, I am new to c++ and multithreading in c++. I have implemented an API to get the market live data. I want to make that application multithreaded. SO far m...
[12 replies] Last: Hi Raggers, Thanks for your help. It seems working now. Get back he... (by chaudhry)
ld: fatal: Symbol referencing errors.
 
I'm getting an error that I can't seem to resolve when attempting to implement the Boost Program Options code. I'm basically using the example from their websi...
[3 replies] Last: Yes, after further investigation I found the linking problem you suspe... (by ricomoss)
Need serious assistance...
 
OK, so I am a first-year university student, currently in Computer Science I, an Introduction to Linux and C++. This is also my first time using these forums, s...
[4 replies] Last: Hi again, cnoeval is right about the tuts, plus they're always ther... (by kooth)
Formatting
 
Hi. I was just wondering if there was any way to format the text in a C++ program (i.e. bold, italic, underline, blinking, color), that is also non-OS spe...
[3 replies] Last: oh okay, thank you anyway :) I guess ill just stick to ASCII Art for ... (by Armageddon)
Local class question
 
Hello everyone ,i found the following code in ibm's side #include<iostream> using namespace std; int x; // global variable vo...
[4 replies] Last: That snippet just demonstrates name resolution. Read the line directl... (by moorecm)
Constructor & Destructor
 
Please, I don't understand how to implement a constructor, a copy constructor et and destructor. I've seen some examples but they are so easy, I would really l...
[2 replies] Last: A constructor is nothing more than a "function" that gets called when ... (by jsmith)
by anzki4
Function+String
 
Ok... after struggling a while trying to figure it out I decided to as my question here; didn't find anything related on search. Question is; I'm trying to mak...
[6 replies] Last: Thanks! Got it working :D And thanks again for the tips. (by anzki4)
for loop
 
Hi..plz guide me how write this code.....! n also tell its starting code/iostream The program should display like; Please Enter Grade (‘A’ OR ‘B’ )...
[2 replies] Last: Thank you sooooooooooo much Airman..thnx :) (by student302)
Array of strings
 
Hi, I could create an array of strings (C++ strings) and fill each index with lines from a file, something like this: #include <iostream> #include <fstre...
[11 replies] Last: Unless you can only use C, there is no reason not to use vectors. And... (by Raggers)
by Snhr
Clearing the Screen
 
So, I was wondering about how I would go about clearing the screen in the terminal. I've read that using system("cls") isn't the best way of doing it, so is the...
[7 replies] Last: as Disch said, you probably shouldnt want to clear the screen anyway, ... (by kaduuk)
Making loops and writing functions
 
Hello everyone, this is my first time here on this website and forum, and after reading through some of it, I think it's very helpful, so I would like to say t...
[7 replies] Last: I haven't done c, but I think it might work similar to c++ so have a ... (by kaduuk)
Link list
 
Dear all, I am working on a link list classwork that my teacher wrote the code for, however this code is not working, I believe there might be some syntax err...
[2 replies] Last: Thank you computerquip. Your explanations have been very helpful. Our ... (by rjain02)
November 2010 Pages: 1... 373839404142
  Archived months: [oct2010] [dec2010]

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