Beginners - August 2008 (Page 3)

C language basics
 
hi,im new to C++ programming and i was wonderin what command to use to display spaces in the output.i know about \t and \n but are those the only ones?
[1 reply] : In Unicode, the following code points are whitespaces: U+0009, U+000A,... (by helios)
Whats a "parameter"?
 
I didn't quite get the explanation in our book which was " In a car, there are pedals, a wheel..blah blah and an accelerator... In C++ a parameter is like an ac...
[3 replies] Last: According to Wikipedia: "Formal parameter", "formal argument" = "para... (by helios)
Multiple Definition Error
 
Hi, I am trying to make use of some inherited class & function (e.g. class X, function abc()) from other parent classes (e.g. class A,B), unfortunately, I ha...
[3 replies] Last: If they derive from different classes and have different functions, it... (by helios)
Fun (pshht) with exceptions
 
#include <iostream> #include <cctype> using namespace std; int square(int x) { if(!isdigit(x)) { throw " data type mismatch"; } ...
[1 reply] : You cannot use isdigit() on integral values (a number can't be anythin... (by helios)
Hello thar
 
Hey guys, new here. Im a year 11 student and im interested in creating games. Right now i have a good knowledge on how to model, animate and texture things in b...
[3 replies] Last: Thanks for the replies guys. Duoas; the world of programming, ... (by Trinity)
Whats wrong here !
 
Using VS2005 and c++ My compiler defaults to MessageBoxW so I have to use the following syntax: MessageBox(NULL, (LPCWSTR)L"Hello!", (LPCWSTR)L"Greetings"...
[6 replies] Last: There are a number of c runtime functions that take a user supplied p... (by guestgulkan)
by kaisin
Possible to convert ansistring to int? urgent! need assistance!!
 
okie basically i got this label which is to read the height of the image i used Label7->Caption= WindowsMediaPlayer1->ClientHeight; i would like to us...
[1 reply] : Aim your documentation at SysUtils::StrToInt (). Enjoy! (by Duthomhas)
Determining the string length of a command prompt input
 
I am currently writing a program for my C++ class that takes two numbers from the command prompt and performs arithmetic on them as specified by the last parame...
[3 replies] Last: I always just convert them to a std::vector of std::string and for... (by Duthomhas)
by paul23
Explaining source code
 
Hi everybody, I'm pretty "new" to C++ but I think I'm starting to get the hang of it. :) Well I was reading some books about C++ and stumbled accross somethi...
[1 reply] : 1) f.read( (char*)(&x), sizeof(x) ) The parameters to the r... (by jsmith)
Winsock tutorial
 
hello, im already messing around with a winsock tutorial i found on rohitab.com. on the server side i want to catch the incoming strings (which the client sends...
[2 replies] Last: thanks, ill check it out! (by alberto2000)
clearing stringstream
 
I want to empty a stringstream but I didnt find anything in the "Reference".
[1 reply] : That should do the trick: std::stringstream ss; // do sth with ss ... (by exception)
Try Catch
 
Problem with Try Catch In my program I output a list of names to log.txt with this. myfile << "\t"<< x << " Function name "<< FunctionName << "\n"; ...
[5 replies] Last: Great. will follow your advice (by PeterRod)
What exactly can I use C++ for? (1,2)
 
If I'm going to learn it, I need to know what it's for :O! And, are there any way a 12 year old can learn this? Thanks!
[29 replies] Last: Uhm I strongly recommend against the JASS thing of WC 3: it's full of... (by ShadowTek)
by paul23
OO - in need of examples/tutorials
 
Well I think I'm finally understanding the few books I read.... However having worked a lot with gamemaker (which is very limited in object-orientatedness). ...
[1 reply] : I've always liked cplusplus.com for their tutorials and documentation.... (by mahlerfive)
how to read hexadecimal data in C++
 
So I'm reading this book and so far I think its really good and it gaves you examples and then quizes you with review questions exercises the question is Usi...
[3 replies] Last: Calculator on Windows. Turn on the Scientific option and it can conver... (by Zaita)
by benbou
opening a my first program (how) ubuntu :) Eazy ey!
 
ok il re make it! the question.!: geany i.d.e(programing platform) linux ubuntu os, os ubuntume saving my first "hello" program and coming writings as? cc,...
[2 replies] Last: i think you are asking how to save this & open in an ubuntu(unix) term... (by j0n)
searching phonebook profile ?
 
#include <iostream> #include <conio.h> #include <fstream> #include <iomanip> #include <stdlib.h> int main() { char name ; double IC; const ...
[no replies]
by Reiyn
File IO - writes to out file, then errors...
 
Here is my code, it will read from in_file and write the out_file, then I get his error: http://i6.photobucket.com/albums/y240/fahkU/Errorimage.gif It didnt...
[2 replies] Last: O geez!! I've looked at this so many times and not seen that!! Thanks... (by Reiyn)
by Han
to draw diamond shape
 
I want to draw diamond shape by "*" please help me to draw it by for loops. * *** ***** ******* *...
[no replies]
by man156
function call
 
what wrong in this code cause appearance of numbers in funstion call instead hello world words & how to make good function call & how to use goto operator in ...
[2 replies] Last: What is this nonsense supposed to be ??? #include <iostream> using... (by guestgulkan)
August 2008 Pages: 12345... 14
  Archived months: [jul2008] [sep2008]

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