Beginners - November 2012 (Page 41)

ifstram::read won't work the second time
 
I'll just copy - paste my code so that is more clear: here's data.txt: Hello World! I'm a file. the code: #include<iostream> #include<fstream> #includ...
[3 replies] Last: I overlooked that there might be an " end of file " after the first ti... (by Chervil)
simple java program
 
class room { float l,b; void getdata(float a, float c) { l=a;b=c; } } class area { public s...
[3 replies] Last: In C++, you can append a f to the number to force it to being a float,... (by TheIdeasMan)
Helllpp!
 
Im in a beginners course of programming for engineers and I am so lost. My teacher doesn't explain properly and doesn't wait for us to understand. Im already a ...
[16 replies] Last: Regarding the problem I mentioned earlier, with this code: while(... (by Chervil)
by dioing
didn't find problem!!!
 
Hi , I'm a beggginer in c++ and i didn't find what a problem from this while (n < r] { cout << " The number " << n << " is less than " << ...
[4 replies] Last: #include <iostream> #include <string> using namespace std; string ... (by dioing)
Simplified Mastermind Game
 
I'm trying to mimic the Mastermind Game. This code generates 3 letters A-G and the objective is for you to guess the correct letters. This game gives hints: X...
[3 replies] Last: use a variable to check wether to quit or go on. read the users input ... (by Darkmaster)
Need to chop code into functions
 
So I wrote this code that prompts users to create a .txt file that includes an array for a city population, and that the program has a search function afterward...
[3 replies] Last: zhuge already said it, functions are used to do certain tasks. this g... (by Darkmaster)
Memory deallocation, am I doing it right?
 
Hello all, I've been in the programming world for just few years, and I've been using Java for the most part of it. I started studying c++ by my own just ...
[8 replies] Last: What I've learned is that it's better to always separate declaration ... (by Catfish2)
by su li
function in array...
 
.i got a problem in running this pgrm.supposely this coding is to print the output of random frequency and number according to the array size.but it is not work...
[2 replies] Last: thank you for your explaination...but sorry,,i don't really get your p... (by su li)
Help with arrays
 
Hello, this is my first time using a forum and I am very rusty with C++ so forgive any stupid questions. I am required to make a program that receives data form...
[4 replies] Last: How do I add tags? Follow the link above. When you post something yo... (by coder777)
inheritance problem
 
im asked to create a class and have it be publicly inherited by the string class. The way I have thought about this is that because my new class will inherit al...
[3 replies] Last: Do what I said: overwrite the constructor and the operator=(). For C s... (by coder777)
Dynamic Arrays
 
Hello, I'm working on a program to practice dynamic arrays. What I'm trying to do is have the user input numbers to fill an array that will double in size wh...
[2 replies] Last: You also don't delete Dynarray after you output it at 60-63. Also, th... (by Zhuge)
About keyboard being pressed
 
Umm. I don't really know how to explain this, but what is the function that enables a condition to be fulfilled if one of the keyboard buttons is pressed? E...
[1 reply] : @indojo Look here for a small program I showed someone on using the a... (by whitenite1)
Clarify rand()
 
I am using the rand() function, but I need to create a range. Can someone clarify ranges? #include <iostream> #include <cmath> #include <stdlib.h> #i...
[1 reply] : http://www.cplusplus.com/reference/clibrary/cstdlib/rand/ Firstly, yo... (by Episteme)
Can we make these 2 function shorter?
 
Difference between these 2 function is '>' for finding max value and '>' for finding min value. I want to make it shorter because there 2 function are very muc...
[7 replies] Last: Anybody? (by anchanfx)
infix and postfix homework, stumped
 
Hello! As the title suggests, I am attempting to write a program that takes a infix equation in string format, with each term in the equation occupying a separa...
[6 replies] Last: Looks like i'm trying to continue pulling terms from the input even wh... (by mistabob)
Isdigit
 
I need your help.. really.. please.. I want to create a class which allows only digits to be stored and other character uses will throw in Exceptions All e...
[4 replies] Last: class DigitString: public WCS_String { /* ... */ }; Assuming that ... (by JLBorges)
Midterm reviewin'
 
So, I hope this post topic will be active to help me prep for Thursday's midterm...I am fully aware that this does not require responses, but they would really ...
[15 replies] Last: OOOH i see...I should have had column a constant value and summed the ... (by ThirdAge)
About animation
 
Hello guys. I've just registered to this forum. And I need a bit of help, or at least some knowledge. I want to make simple (in fact the most simple) animati...
[2 replies] Last: Thanks for your reply. I appreciate it, and it seems I'm getting throu... (by indojo24)
Need help on some homework!
 
Hi there! I am in need of some assistance on a homework problem. I am writing some code that involves inheritance and polymorphism that asks the following ques...
[11 replies] Last: Well I followed your advice, added the virtual functions as you said a... (by Merriak)
expression must have bool type
 
I have this error that I cannot fix. I looked it up online but nothing is helping. go_on after the while had a line under it and it says expression must have bo...
[1 reply] : You are doing an assignment (=) inside the while loop condition. I sus... (by Zhuge)
November 2012 Pages: 1... 3940414243... 75
  Archived months: [oct2012] [dec2012]

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