Beginners - August 2013 (Page 40)

File I/O semantic error
 
Hello Here's my code: #include <iostream> #include <fstream> using namespace std; int main() { ofstream FileOut("Student.txt", ios::out); ...
[6 replies] Last: @The Illusionist mirage Incidentally, unless you invented that yoursel... (by Cubbi)
Making own exception out of std::logic_error
 
Hi, I am trying to define my own exceptions derived from logic_error. I am trying to make two exceptions underflow and overflow. Underflow will be th...
[3 replies] Last: To quote the standard, the exception hierarchy in stdexcept is: excep... (by kbw)
Silo Cylinder
 
Make a silo cylinder and fill with color red between 0 to 100 % level and manipulate the level with a selectable % value beside the silo by a simple drop down a...
[1 reply] : [quote=ervinako]Make a silo cylinder and fill with color red between 0... (by closed account z05DSL3A)
declaration of 2 dimensional array having different type (one column float, anothe int)
 
Is there any way to declare 2 dim array that one column data type is int and the other is float in one line without using structure?
[4 replies] Last: then The only way is using structure definition? There are other wa... (by MikeyBoy)
by knn9
When to use class constructor Vs. Create() method
 
Could someone explain which situations it is better to use the constructor vs. a Create() method? I always see code that uses different methods to achieve the s...
[1 reply] : The first one is just your regular object creation. The second one is... (by Cubbi)
C++ Classes and Arrays
 
Is the statement below legal. Can I implement an array like this when working with a derived class Memorandum. If so how? If not Why? Memorandum memoA...
[11 replies] Last: It's very time-of-day dependent I think. (by S G H)
Issue with dereferencing pointers
 
Greetings, I'm having an issue with dereferencing pointers: main.cpp: #include <iostream> #include "pointer_class.h" using namespace std; void pr...
[2 replies] Last: Thank you for your fast response. I changed my code as you suggested a... (by Constipator)
Game Test
 
There is an error that says "undefined reference to WinMain@16. What does this mean? If anyone can find any more errors to fix plz help! // game test number ...
[3 replies] Last: Also, WinMain belongs in a windows application. An ordinary console ... (by Chervil)
How do I iterate through clustered switches?
 
Hi there, first post. I am having a huge issue wrapping my mind around a problem in a program I am currently writing. I need to be able to parse through multip...
[17 replies] Last: InnerState is the integer that will hold the flags. (by Rechard3)
Overloading Functions
 
Hi There I have a Code that I wrote to calculate Salaries for weekly and hourly paid employess. The Code works perfectly but the question said I should use a ov...
[3 replies] Last: on line 19: double annualSalary is declaring a variable. For passing... (by coder777)
by xhxh00
Need help for my project.
 
1 part of my programme was to check if the booking time is occupied. anyone can help me with this? what should i do at the end to check if the booking time is ...
[no replies]
by mkahn2
C++ project with online database
 
I am looking to develop a c++ application that interacts with an online sql database. Could someone point me in the right direction on creating a database and ...
[2 replies] Last: Qt is a cross platform development tool that includes lots of differen... (by TheIdeasMan)
Need Help with this mini game
 
I need help with this program it wont work and I don't know how to fix it can anyone help please? // minigame #include <iostream> #include <ctime> usi...
[7 replies] Last: Thx I got it cire. I'm gonna try and make this into a simple text base... (by Jarbear)
by Codeez
Using string::size_type to direct init. another string
 
I can't seem to figure this. For a Hangman game, I have a string for the objective word and I want to get the length of it to make the corresponding underscore ...
[3 replies] Last: Oh my oh my! How did I forget to use single quotes? Thanks guys! :) (by Codeez)
by fx11
Using goto is OK? (1,2)
 
Previously: Strange list - how to start? http://www.cplusplus.com/forum/beginner/102439/ I tried to solve this question again using only simple stateme...
[36 replies] Last: With the nested loop problem, there are 2 things I can see: Consider ... (by TheIdeasMan)
Tic Tac Toe- help and advice
 
I am making a tic tac toe game with competitive AI and having quite a bit of trouble. I can't figure out exactly where the problem is coming from and I have be...
[2 replies] Last: Yeah I have noticed that. I messed around with it for a while because ... (by PoBurly)
C++ program that inputs two integers then calls a function subtract.
 
"Write a C++ program that inputs two integers then calls a function subtract, use pass by reference and allow the user to change his/her input values, then subt...
[10 replies] Last: Yes you're right, it's just in Code::Blocks I only see the warnings in... (by Codeez)
Tic Tac toe game: issue with random number generator function which is generating number as player inputs.
 
I am writing a tic tac toe game for 1 player vs computer. While placing the random numbers from generating from RandomNumber function which I have created. I kn...
[no replies]
starting C++ and intimadated
 
hey so im finally starting a C++ class next semester and im wondering what do i need for the class?? I mean should i buy a laptop or just get a desktop because ...
[12 replies] Last: @Chervil : true, some of my posts may be inaccurate and i don't know ... (by Rechard3)
Employee Loop Problem
 
#include <iostream> #include<cstdlib> using namespace std; int main () { float payrate,hours,grosspay,OT; for (int x=1 ; x<=3; x++) { cout << "...
[4 replies] Last: that is what my teacher had said but he wants us to hold off on using... (by cnoeval)
August 2013 Pages: 1... 3839404142... 51
  Archived months: [jul2013] [sep2013]

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