Beginners - September 2012 (Page 6)

Using fstream inside a class and calling from/to main
 
Hi all, Iam trying to create a class,say, "example" and some function in it. the goal of the progra...
[8 replies] Last: oh ok. I understood little bit (because im a just a beginner). I try ... (by vichu8888)
If statement problem
 
hi, my code skeleton is like this: if ( cin.fail() ) {............} else { bool input_is_go...
[2 replies] Last: u only use qoutes in languages like shell and maybe batch (by Aramil of Elixia)
Understanding Functions
 
Hey there fellow coders, I'm having a little bit of a hard time understanding functions. What is a f...
[5 replies] Last: A function is basically like a program inside of a program.. you take... (by Steven Menzies)
by shaggy
When to use classes?
 
Hey everyone, I have been learning c++ for around 1 year, but i am still not very good. I programmin...
[8 replies] Last: Thanks alot man, you've been a great help. Thanks for replying. I'll j... (by shaggy)
Replacing an integer in a 2D array with -1
 
It should print out a 20x20 array and then replace the numbers evenly divisible by 3 with a -1, it i...
[1 reply] : You are not checking if the position in the array is equal to %3 ==0, ... (by pogrady)
C character arrays
 
Why is this character array 8 characters long: char CharArrayVar = {'J', 'o', 'h', 'n'}; But th...
[5 replies] Last: @ Athar You should explain that you are picking at his terminology. ... (by Duoas)
Bool Function Examples, Please!
 
So I'm working on a program for school and we need to make use of a bool function. The function ...
[14 replies] Last: 2. Bool Function: I seem to have no idea how to make this return valu... (by cire)
Boolean Variable to Quit Game?
 
Quick question... How can I use a boolean variable as a return at the end of a boolean function to ...
[1 reply] : @LadyDustBunny When you first declare bool IsGameOver; , you should ... (by whitenite1)
Class Box Logistics Assignment w/Coords
 
Hello everyone, So I am supposed to (1) declare an array of 5 objects of type Box, (2) call a fun...
[no replies]
Problem using for loops and if else statements to print patterns of *'s
 
EDIT: Discovered the solution with the help of experienced friend. Thanks anyway.
[no replies]
Sit IDD_UBU, sit
 
Where does the 'expression' Sit IDD_UBU, sit! come from? Just have to ask... Any idea?...
[1 reply] : http://www.youtube.com/watch?v=klG9G4BDLtA (by naraku9333)
inline function
 
Write a program which uses an inline function calculateStockValue. The function takes two parameters...
[1 reply] : inline void calculateStockValue( unsigned int shares, float price ) {... (by vlad from moscow)
help with c++ assignment
 
i need help in programming this assignment.yOUR HELP IS APPRECIATED. write a program that asks ...
[2 replies] Last: Here's how it works: you post the code you have now, and we assist you... (by closed account zb0S216C)
by math8
Preventing the program from entering an infinite loop when a character is input by mistake
 
I'd like to write a program that only accepts positive integer inputs. And if the character q is ...
[5 replies] Last: Read this: http://www.cplusplus.com/forum/articles/6046/ (by leftcoast)
Setw not displaying correctly.
 
This is my code for displaying an object by overloading the << operator: ostream& operator << (o...
[3 replies] Last: So use setw(22) instead of setw(26). (by Peter87)
by DouDou
Convert a String to an rvalue of Assignment Statement
 
Hello, What is the most efficient way to convert a string to the rvalue of an assignment statemen...
[1 reply] : There is no build in way to do that in C++. You could write a parser t... (by Peter87)
Error: expected primary...before ; token
 
Hey there, Brand spanking new programming student. Prepare to get a LOT of questions from me! ...
[2 replies] Last: It can mean many things. However, it's scoped to the parser. Somewhere... (by closed account zb0S216C)
What do I need to include to use IDC_STATIC?
 
Just like the title, what file do I need to include to use line 10 and 12 in this code? #include ...
[7 replies] Last: @Hashimatsu I think Aceix was suggesting that it might be better in t... (by andywestken)
standard deviation
 
im taking computer analysis and computations at ucf so im still a little new to c, im trying to figu...
[no replies]
information logging using arrays or switch
 
i have my prime number program that takes an input number and breaks that number down into the prime...
[no replies]
September 2012 Pages: 1... 45678... 62
  Archived months: [aug2012] [oct2012]

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