Beginners - December 2010 (Page 2)

by Icenel
cout doesn't work
 
#include <iostream> using namespace std; int main() { int y; cout <<"Try cout !!\n\n"; cout <<"Input number : "; cin >> y; cout <<"\nYour numbe...
[1 reply] : The origional problem isn't exactly like yours but the solutions are: ... (by Computergeek01)
need explanation about this syntaxe
 
what's the diffrence between void verser(compte &c).... and void verser(compte c)...
[3 replies] Last: First one passes by reference, which will affect the original object, ... (by quirkyusername)
by ToniAz
sscanf() runtime error
 
Hello everyone! I am trying to read the string: Name: Toni, Age: 18, Weight: 80.5 using: sscanf(mystring, "Name: %s%[^,], Age: %d%[^,], Weight: %f,...
[2 replies] Last: Yes it was a typo but only here... I think it should be like this ... (by ToniAz)
variables
 
Hello i dont really know how to explain this but i have a variable called string place; and i got two .cpp files thaat are trying to use it how do i make it ...
[15 replies] Last: Here is the resulting code... template <class T> class LockAfte... (by closed account 3pj6b7Xj)
binary mode
 
can anyone help me? how can we use endl in binary mode for files? for expl. fstream myfile; myfile.open("test.txt",fstream::in|fstream::out|fstream::binary) ...
[7 replies] Last: C++ is broken in this regard. You cannot seek properly unless you a... (by Duthomhas)
by rogvid
C++ noob
 
Hi I'm new to programming and just wanted to see if someone could tell me what I'm doing wrong in this program. When the program loads back to the loop,it skips...
[3 replies] Last: @kbw Thanks for the pointers and the quick reply. btw, I know it isn... (by rogvid)
by ogward
exam studying and got stuck.
 
Hi there! I'm studying for my exam and I've done an old exam that covers everything we should know for our exam, but I've got a couple of errors and I really...
[8 replies] Last: hm.. in the header: public: void showTouch(); void showDesign... (by ogward)
by ToniAz
sscanf() return value
 
Hello everyone! I'm having trouble using the output of strtok() as an input to sscanf() . I know the first returns a char * and the second takes for ...
[1 reply] : Problem solved... (by ToniAz)
by Capris
Object of a "predefined" class...
 
Hi, I have a question ... Is it right that I can "pre-define" a class (don't know the correct term) such as below? class Test; class Test { Tes...
[1 reply] : That is called declaring. After declaring a class you can declare poi... (by hamsterman)
by Icenel
[Ask]C++ Combine 2 String Problem
 
Hi Guys, I want to ask something. This is my code and I don't know why it doesn't run. It can run at the first and second looping, but when I used strcat t...
[3 replies] Last: strcat(combine, first); strcat(combine, " "); strcat(combine, secon... (by hamsterman)
by yts
inheritance
 
i m studying the multiple level of inheritance.This is my code.but i have error in this line: subject(string facultlyname,string studentsname,string code) ...
[9 replies] Last: this is the criteria given to complete the assignment. 1.1. Style (... (by yts)
Textfile to textbox
 
Hi all i am using this code to read a textfile #include <fstream> using namespace std; ifstream inFile; inFile.open("C:/1.txt"); while (inFile...
[1 reply] : is that file a column of integers? anyway, a way to do this would be ... (by hamsterman)
by SK480
Dev-C++ Debugger
 
I have no idea how to use it. Simple as that. I've asked a friend of mine that was a programmer (actually, my dad) and he had no clue either, claiming it was di...
[2 replies] Last: Okay, I'll check out Code::Blocks, thanks. (by SK480)
by SK480
All answers are counted as correct on my trivia game
 
I'm currently working on my first game, a text-based trivia game about myself. However, no matter what the player enters, the game counts it as correct. I am us...
[3 replies] Last: Thanks for the help Zhuge! This piece of code here works like a charm:... (by SK480)
by vlad61
Rand() Stuff
 
Hello i have a question about the rand() function. when i cout<< rand(); it gives me some same number everytime program is run. however when i say int ...
[6 replies] Last: Right! okay thanks thats what i was starting to think. /lick (by vlad61)
Newbie
 
Hi im sorta new to this but i was wonder if someone could help me gather some resources to use. I am fairly to new to c++, i have some knowledge of php, but i w...
[2 replies] Last: http://www.youtube.com/watch?v=Fl0LRlYJwck You can follow his tutor... (by Engborg)
text based rpg crash
 
here is my void game() function it is supposed randomly pick an event it does that perfectly fine until it reaches the end of the code it crashes. i call this f...
[4 replies] Last: There we go its fixed :D thanks you helped alot (by levijgraham)
Linking Code/Objects Using DevC++ IDE (1,2)
 
I posed this question 7 months ago on this forum with no luck and no luck searching the entire internet and asking friends who've programmed. Simple Problem....
[30 replies] Last: yeah the PM bit was just a joke, ofcoarse ill ask public :D Thanks ... (by Sputnik)
DevC++ vs Code:Blocks
 
Hello guys I recently needed help on which compiler is the best for me. I wonder if Devc++ is good or Codeblocks better. I heard that DevC++ is not updating no...
[4 replies] Last: I loved Dev C++ when I first started learned C++. But, like some have ... (by borkus)
can anyone crack this?
 
can anyone tell whats happening here?! #include <iostream> using namespace std; int main() { unsigned long a = 100000; long b = -1; if(b>a) c...
[7 replies] Last: You're welcome :] (by chrisname)
December 2010 Pages: 1234... 35
  Archived months: [nov2010] [jan2011]

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