Beginners - September 2009 (Page 14)

Text doesnt wrap round
 
Well basically when I cout << to the terminal (mac equivelant of cmd), the text doesnt wrap around and so I was wondering how I can solve this? Is the only way ...
[5 replies] Last: Ah ok thanks everyone. (by arcadiu)
by audit
I do not understand inheritence
 
...
[5 replies] Last: Duoas, thank you, this is what I expected and what I wanted. (by audit)
Arithmetic
 
How come the answer is 0 3 2? #include <iostream> #include <cstring> using namespace std; int main() { int x = 3; int y = 2; int z = 1; x -= 5 - ...
[3 replies] Last: Now I know that order of precedence is impt. Tks. (by makan007)
pattern number with looping
 
hey... could anyone tell me how to make some pattern like this 1 22 333 4444 55555 thx before... i've make a code like this #include <iostream.h> ...
[3 replies] Last: wow... ok... thz for the help....^^ (by devaeron)
Better way to combine strings than "+="?
 
I've been writing a lot of programs lately that have to put together a lot of strings, an it's kind of a pain to have to write them like string output = "My n...
[7 replies] Last: If all you want is to concatenate strings, stick with Chewbob 's exam... (by Duthomhas)
by mar11
macro
 
Hi all, i have the following example #include <iostream> #define ADD(a,b) for(int i=0;i<100;i++) (a= b+i) int main{ int a(0),b(0),c; c= ADD(a...
[2 replies] Last: Why is there suddenly a slew of people posting silly macro questions? ... (by Duthomhas)
How do you do it?
 
My program asks a user to input any number of gallons to be converted into liters. Now how do you tell the user that he/she is stupid when the users enters s...
[6 replies] Last: Got it. Thanks (by metalheadrenzo)
brute force algorithm
 
I'd recently made an text encryption program. i need a brute force program that attempts all possible ASCII character combinations from char(32) till char(12...
[7 replies] Last: You can help people do it; I just mean don't do it for them. (by chrisname)
by Bv202
List problem
 
Hi, I'm now learning the principes of a list, but it doesn't work :( A tutorial tells me to use this code: list<int>::iterator i = 0; But it gives the...
[2 replies] Last: Thank you, that seems to work :) (by Bv202)
print a particular part of string
 
i want print a particular part of string for eg: char ss ="i am the only bosss"; i want to print ss to ss how can do this ? help me please thanks in a...
[1 reply] : for (int i = 3; i <= 7; ++i) std::cout << ss ; There may... (by Chewbob)
Problem with comparing
 
Hey everyone! For learning purposes, im trying to imitate Dharma's computer terminal from "lost" in c++ heres the code: #include <cstdlib> #include...
[5 replies] Last: Thanks guys for your help ! i feel so stupid now :D i mean i have no l... (by award982)
by Claymz
Line count directory input problem
 
hi, this code works fine, it counts lines as it should, but here i have the path already specified and what i want is that user could do that - so how can i ...
[5 replies] Last: ...maybe this helps char z; int linecount = 0; ifstream inData... (by loveless)
im confused...
 
ive been programming in the command prompt, but i was wondering how do you program with graphics and stuff like that.
[7 replies] Last: Alright, then. (by helios)
classes and objects
 
hi- I will be using wxWidgets soon. I'd like to write an accounting application. In Java I could use pojo's with hibernate and map the object to the db with ...
[1 reply] : hi- I don't think with the database layer in wxWidgets I need user ... (by mtdew3q)
req modification to my pog
 
// progtam to input some integer values and get their sum. // I want the program to exit and show result once return key is pressed #include <iostream> u...
[3 replies] Last: This is just laziness though. He is asking someone to do modify some c... (by chrisname)
Volume of Cone
 
Note - This IS a homework question, so just hints. Problem - Write a C++ program that computes and outputs the volume of a cone, given the diameter of its ba...
[10 replies] Last: Alright, thank you both. : ) I put this as solved. (by SeeSayLeki)
by mar11
macro function
 
Hi all, look at this function... #include <string> #include <iostream> string TEST1(string str){ str.append("my string"); return str; ...
[3 replies] Last: A macro is just a text-replacement. Given the source code: ... (by Duthomhas)
If statement not working
 
Right so I am doing one of the programs which test your C++ skills on the forum and I have to have 5 different drinks and let the user pick one of them by enter...
[3 replies] Last: heres an example of what you want it too look like. You need to get... (by MYST)
Newb - Intro - Bloodshed
 
HELLO FORUM!! So every couple years I get an itch to take up programming again. I did some BASIC in the 80's The research I have done tells me C++ is one...
[4 replies] Last: Yep! I'm about halfway thru. (by Triryche)
by MYST
Counting calculation program (sort of )
 
Hiya, I'm basically wanting to write a prog, that calculates the number of combinations of a number of numbers. Ie - between 1 and 9, how many 4 digit number...
[5 replies] Last: See wikipedia: http://en.wikipedia.org/wiki/Combination (by Bazzy)
September 2009 Pages: 1... 1213141516... 23
  Archived months: [aug2009] [oct2009]

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