Beginners - August 2009 (Page 2)

What is the output of the following code?
 
#include<stdio.h> main() { printf("\nab"); printf("\bsi"); printf("\rha"); } Please also explain how the code is working? Help would be appreciated. ...
[3 replies] Last: I don't understand the question. (by helios)
Converting Emails Into .Dat Or .Fb
 
I Have A Few Emails On A .Txt File And I Was Wondering If Its Possible To Turn Them Into .Dat Or .Fb Files For A Program I Have That can Keeps A List Of Your Em...
[1 reply] : String manipulation? hahaa I don't think this belongs in the beginn... (by brokenbot)
by Delpee
C++ doesn't run my MENU?
 
Hey CPlusPlus Community, I'm back with another question. When I run the folowing code (which isn't by far finished!) it doesn't show my menu but immediately...
[5 replies] Last: hahaaa I didn't even see it... It gave me ideas though. (by brokenbot)
by joshky
function returns
 
Curious: Can a function return more than one argument?
[8 replies] Last: Here is an example void set_argument_to_5 ( int &number ) { ... (by Bazzy)
having trouble with fstream ifstream printing?
 
I used g++ compiler in linux. This is the error I got back: readtxt.cpp: In function ‘int main()’: readtxt.cpp:28: error: no matching function for ...
[5 replies] Last: Yes, but that version sucks. (by helios)
by Darkez
Identifying
 
Hello. I am trying to make a program that will start up iexplore and open facebook. But I am having trouble identifying! #include "stdafx.h" #include <i...
[2 replies] Last: Hmm... K. For do your code here I would put: system("start c:\\pro... (by Darkez)
Turbo ver 3 C++ compiler before usage some paths are to be added
 
Dear Sir, I had been using old Turbo Ver 3 C++ compiler. Recently I formatted my computer. I have forgotten of adding certain supplimentary information like pa...
[no replies]
by hunter
If's and Else's not working
 
HELP!! I have been at this for almost 2 hours. #include <cstdlib> #include <iostream> #ifdef WIN32 #include <windows.h> #endif #include <clearscreen.h...
[14 replies] Last: @sikac http://www.cplusplus.com/forum/beginner/13851/#msg67012 (by Bazzy)
Large Numbers
 
I have a program I am working on that will tell you the approximate time of a download based on the size of the file and the speed of your internet. This is jus...
[3 replies] Last: http://en.wikipedia.org/wiki/Integer_overflow (by R0mai)
while-test problem
 
#include <cctpye> ... cout << "Enter a negative number or non-numeric input to quit: "; int money = 0; int total = 0; while ( isdigit(money) && money...
[5 replies] Last: That is correct. (by firedraco)
any chronicles on definitive libraries
 
Any sites that list all the libraries and their functions in a definitive manner? also i plus, but not needed, would be examples that go with them....
[1 reply] : Are you talking about C++ standard libraries? If so, you can find w... (by Beibin)
by Alan
Most efficient code to clear screen
 
The only way I know to clear the console screen is system("cls"); ... This prooves very innefficient. (I assume it sets all the characters at every position t...
[2 replies] Last: THANKS :p (by Alan)
by joshky
Compiler differences
 
The following code compiles and runs perfectly on dev-cpp, but not VCC. Unfortunately, I need it to work with VCC. It doesn't seem to want ot let me use cin>> ...
[1 reply] : never mind, stupid me. included<cstring> instead of <string>. Sorry f... (by joshky)
thought my syntax was sound using ofstream
 
This code just prints some stuff to a file. This is what i get when i try to compile in bash g++ terminal read.cpp: In function ‘int main()’: read...
[7 replies] Last: thank you for replies; you've helped alot. (by brokenbot)
by Kuzco
Simple math problem (1,2)
 
I'm having trouble with this simple math problem and I feel really stupid... How come 1 * 10 + 2 * 10 + 3 is 123 and not 33? :/
[22 replies] Last: argue with everything in the background... then bring it to the foregr... (by brokenbot)
by Bv202
Integer + string = ... new string?
 
Hi, I just saw this piece of code: char alphabet ; for ( int i = 0; i < 26; ++i ) alphabet = i + 'a'; I don't really understand it. ...
[7 replies] Last: ahh i c... does this code print the alphabet? anyways, thanks for p... (by brokenbot)
A Very Noob Problem
 
Hi Guys I am extremely sorry for asking this question, but I really am stuck, all I want to do is just create a black screen and have some snowflakes (just p...
[9 replies] Last: puts("Snowfall - made December 1989 by Lars R. Clausen") ; So I ... (by R0mai)
by sikac
Interaction of classes
 
if I have two classes One and Two(which has an attribute called 'number'),can I (if its possible,then how) make a dynamically allocated set of 'number' pointers...
[4 replies] Last: you misunderstood me,but in the end i figured it out.i wanted a functi... (by sikac)
by sikac
Classes and Soccer :)
 
hello everyone :) My proffesor gave me this exercise to build a class called Team which represent a soccer team in some Soccer Championship :P with attribute...
[10 replies] Last: @kevin i did have to allocate memory for the pointer, since i was get... (by sikac)
Why this error with pointers?
 
Check this pic: http://img263.imageshack.us/img263/2273/cpppointererrorchar2int.jpg So, what's the real reason that this happen (types doesn't mind).
[5 replies] Last: your p variable is a pointer on a integer, so later on with p=&h y... (by sikac)
August 2009 Pages: 1234... 17
  Archived months: [jul2009] [sep2009]

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