Beginners - January 2014 (Page 23)

Problem with Pauses and functions
 
Hello everyone! Next tuesday I'll have to do a programming examination at my university, so I've been exercising lately. Everything went fine, except for this...
[1 reply] : I shows the result before CRASHING if you pause in the right time, and... (by JockX)
by ryan01
Trouble calculating overtime hours worked, getting error
 
I'm creating a payroll program and one of the things I'm trying to do is determine whether or not the employee in question has worked any overtime hours, and if...
[8 replies] Last: Ok, I wasn't sure. Thanks LB for your help with this. (by ryan01)
Simple problem with formating text
 
When the showarray function is called and the numbers are displayed next to the months, the numbers are not in a column but scattered around. I tried to use se...
[3 replies] Last: [quote=JockX]IO manipulators you are trying to use only have to do wit... (by cire)
by clodi
inheritance quick question!
 
In this website there is a tutorial. On this page: http://www.cplusplus.com/doc/tutorial/polymorphism/ would the first example still work if the area() functio...
[1 reply] : No. (by LB)
by clodi
polymorphism..
 
Hello, I am trying to create polymorphic classes but with no luck. I have .h files and .cpp files. I am declaring my classes in .h files and defining each ...
[1 reply] : We have no way to know whether lines 12 to 20 are allowed, we need to ... (by LB)
by enemy
<iostream> vs <iostream.h>
 
Hello! Please, what are practical differences bewtween <iostream> and <iostream.h>, important for beginners? Many thanks!
[4 replies] Last: <iostream.h> is not supported by any modern compilers. (by LB)
by enemy
ios::scientific vs ios::fixed---SETPRECISION(1)
 
Hello! Please, if we have: cout<<setiosflags(ios::sicentific)<<setprecision(1); cout<<4358.24; we get : 4.4e+003 and with ios::fixed we get 4358.2...
[3 replies] Last: http://ideone.com/XIQLdr (by LB)
by enemy
"::" in, f.e., ios::scientific- meaning of it???
 
Hello! Please, what is operator"::" meaning (in human language) inexpressions like: ios::scientific ios::fixed In other words, what means the "word" ...
[5 replies] Last: The scope resolution operator is someone you would have learned about ... (by LB)
Best practices with 3D vectors
 
Hello everyone. Not long ago, I created a thread to help better understand the use of 2D vectors. With that out of the way, I took it to the next step and popul...
[2 replies] Last: Ok, I figured it out. In the end the answer was pretty simple; I neede... (by CplusplusAcolyte)
by JohnJH
Array of an class??
 
Why is this incorrect?? class rubiks { rubiks Dice ; public: rubiks(); int y; int z; int upside; int front; void Setv...
[5 replies] Last: I seem to get an error which doen't not make sense.. The reason why i... (by JohnJH)
Expected expression for else
 
I get "Expected expression" errors for else. How do I fix this? #include <iostream> #include <string> using namespace std; int main() { float n...
[8 replies] Last: I think so. Started learning arrays today but have made this type of c... (by closed account iAk3T05o)
Problem with classes
 
Hello i just started learning classes and i encoutered a problem. The program below is supposed to initialize each friut with a random color. However it initi...
[2 replies] Last: thanks a lot i forgot to put break ! (by SorinAlex)
by Isprog
phone number
 
What funcion to use to make a program like this converting a telphone number with prefix to phone number without prefix [url=http://postimg.org/image/6ols...
[no replies]
by JohnJH
The easiest way to program a virtual rubixs cube.
 
I am trying to write a program which uses a certain algorithm to solve a rubiks cube. The problem is though, i can't see which way would be the most intuitive...
[2 replies] Last: But then again... each piece is also different, each side has 4 corner... (by JohnJH)
by enemy
cout.write meaning of sizeof
 
Hello! Please, what is the meanign of "sizeof) in there? p.s. I tried to write the smae program without that, but got a millions of errrors I could not under...
[5 replies] Last: Thanks! I think I got it!!! (by enemy)
file handling
 
I wrote a new type of program using a file handling.My idea was to write something to file "pokemon" using a simple program and trying to access it from another...
[18 replies] Last: That's ok, code::blocks is a good choice. (by Chervil)
Reading from file and converting first letter of words
 
Hello! I wrote this program which is supposed to read a file character by character,and replace each letter of each word with it's uppercase version.However, it...
[no replies]
HELP PLEASE
 
Using selection criteria method, construct a program to output the following total cost in each case. i. If vitamins sold <=20 and cost is 0.05 pence per vita...
[6 replies] Last: Yes solution is helpful for me also. but i stuck in .net i used else ... (by alizacarvor)
Unable to fully understand application
 
Hello there. I have started learning C++ rather recently and I'm using the book 'C++ without fear' by Brian Overland. I have been able to do Exercise 4.3.1: ...
[12 replies] Last: [quote=Chervil]There are a couple of points to note. One is that those... (by Generic Entity)
struct && list
 
am calling on function insert to load some numbers, but display is giving me only the first number..can someone explain why? thank you #include <iostrea...
[2 replies] Last: thanks (by donvigor)
January 2014 Pages: 1... 2122232425... 44
  Archived months: [dec2013] [feb2014]

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