Beginners - March 2010 (Page 25)

by ARWA
function argument >.<
 
hi there : i dont know if this a big mistake to give afunction atype and put another type in it argumen but i want to pass astring to function and return float...
[5 replies] Last: ok thank you verey much know i understood how things are working out ... (by ARWA)
Stumped already!
 
Hello, I've just begun my first tutorial. I've writtin out a piece of code identical to the one in the tutorial but when I try to compile and run it it gives me...
[10 replies] Last: means new line (by ARWA)
I am having a hard time with loops and nested if statements.
 
I'm working on an assignment thats been driving me crazy for a couple of days now, I don't want anyone to finish it for me I just hope someone will help me unde...
[9 replies] Last: and the triangle prints fine if i run in a program by itself.... i was... (by flyraf821)
Failure of cin.getline()
 
I have the following code as a part of a struct: void menu(){ hasMovie = false; money = getMoney(); cout << "Welcome to the v...
[11 replies] Last: Ohhhh, I thought I only had to replace the ones in the erring function... (by closed account jwC5fSEw)
by Mozie
sieve's Prime numbers
 
I have a problem that I am frustrated with. I have to allocate an array of size 1000, with all values set to 1. The values in this array are used to determ...
[8 replies] Last: Hi jsmith - just wanted to say thanks for the help. I felt like a mil... (by Mozie)
by xeyide
++( x + 5 ) vs ++(x)
 
Hello! the syntax : int x = 2; ++( x + 5 ); will not compile because "there is no l-value." I think I understand this. When it tries to evalu...
[3 replies] Last: Thank you for you help!! :D (by xeyide)
Operator[] function use in Strings
 
I know this may make me look stupid, (aren't we all) but I was attempting to use the operator function to find a character in a string by it's position, and I ...
[7 replies] Last: if your ever in doubt about how to use something, you can simply check... (by gcampton)
Comparison between integers and pointers?
 
This is just supposed to see if what the second character of what the user enters is "x". string c; cout << ""; cin >> c; if (c =="x") //error here O...
[6 replies] Last: NP, it's also worth noting that the compiler converts both character l... (by mulpro)
interesting to try.......Asist me!
 
/*program to gauge the rate of inflation for the past year. The program asks for the price of an item (such as a hot dog or a one-carat diamond)/ both one y...
[5 replies] Last: Are you sure you wrote the code correctly?. It looks like you are pass... (by orejano)
Need code for this math problem.
 
Oh nevermind I think I figured it out.
[1 reply] : What do you have so far? (by firedraco)
Passing dynamic array of structs to functions
 
Hello all, I have a programming assignment that is driving me up the wall. I need to change a program that uses parallel dynamic arrays to one that uses a sing...
[2 replies] Last: Thank You, Thank You, Thank You! I sincerely had no idea about how exa... (by Guitaroomasta)
Clear other than "system('cls')"?
 
is there any other way to clear the screen other than system("cls") (I'm using Dev C++)?
[7 replies] Last: Thanks for the advice, I already learned my lesson. (by TheBeginner)
Where to put the 'static' modifier ?
 
Hi there! I'm a little confused about the 'static' modifier. Where I have to put this word ? These tree codes are correct: static void f(); void f();...
[5 replies] Last: It's just about probably. (by tummychow)
by cmccmc
whats wrong with this switch?
 
what exactly is wrong with this switch? the program always goes to the default double a; double b; int Format; std::cout<<"What Format...
[3 replies] Last: whoops I didn't think about that, thanks (by cmccmc)
trouble with classes...
 
hey guys im trying to make a few inheritance classes for aircrafts for an assignment and it was working seemlessly until tried adding more classes and stori...
[3 replies] Last: yeah i changed it again so that my 2nd tier inherits from my first ... (by L E G I O N)
for loop problem
 
Hello everyone! I wrote a program that asks the user to enter a number. Then it asks the user if they would like to enter another number. If yes, press y. If th...
[3 replies] Last: You are asking one time before the loop and then again within the loop... (by orejano)
generic programming and template meta class programming
 
What is the difference between generic programming and template meta class programming ?
[2 replies] Last: http://en.wikipedia.org/wiki/Template_metaprogramming#Benefits_and_dra... (by Computergeek01)
code understanding
 
#include "stdafx.h" #include <iostream> class T { public: T() { std::cout<<"T()"<<std::endl; } T(int) { std::cout<<"T(int)"<<std::endl; } }; int...
[6 replies] Last: actually 1) lacks an identifier doesn't appear to be quite the whol... (by mulpro)
by ToniAz
get file path using "cin" (string or other)
 
Hello, I'm supposed to read data from a file on my disk and manipulate it. The thing is, that the file location is predetermined on my hard disk. How can I ...
[3 replies] Last: excuse me guys i've been away... well yes i used filepath+".txt"... (by ToniAz)
Console output
 
i'm trying to output an ansi graphic in cosole. But there're two problems. How can i set console borders wider and how can i manipulate with text/background col...
[8 replies] Last: thanks, it was what i needed exactly (by Sergius)
March 2010 Pages: 1... 2324252627... 34
  Archived months: [feb2010] [apr2010]

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