Beginners - November 2011 (Page 49)

Whats wrong with this program!!!!
 
I wrote this program but it is giving me error.Please review it and tell me whats wrong: //This program will calculate the total price of meat of a restu...
[1 reply] : You're missing a semicolon on line 60. Happy programming! -Albatross (by Albatross)
by nebula
The function rand().
 
Hello guys. I'm making a little progran in which i need to generate random numbers. I've heard of the function rand() , which is suposed to do what i need. But...
[1 reply] : Hi. rand() is a function that you'll need to seed with srand(unsigne... (by Albatross)
by zarzak
Classes
 
I'm just learning about classes and inheritance. I made a program that uses 3 classes: class a, class b, and class c, where each class inherits properties from...
[2 replies] Last: Oh duh! I feel silly now. :) Thank you! (by zarzak)
Mouse in CMD
 
Is it possible to make the mouse work in a CMD program? Like if you click on "exit" the program activates an exitprogram function?
[4 replies] Last: Okay, thanks. I guess I'll port my text based RPG to GUI D: (by Gonzalo)
setting up a class
 
hello everyone, I'm trying to set up a class in c++ visual studio 2010. So i got my class.h file and class.cpp file now the problem is i want several string var...
[1 reply] : Line 14 is a successful declaration of a public method. Read the C++ ... (by webJose)
function w/reference parameters
 
I am trying to write a function with four input parameters which displays an output but also accepts an input from main. I cannot figure out how to input variab...
[6 replies] Last: Thanks, i appreciate your help, now that I know what code tags are I'l... (by jesse1221)
binary tree : readPreoder
 
hello ! I have problem with readPreoder in binary tree I have strings {“cau”, “truc”, “du”, “”, “”, “lieu”, “va”, “”, “”...
[2 replies] Last: Thanks : but i want read strings to array with " readPreoder " in bin... (by tianversion)
by guppy
The program Heatwave quit working
 
The program Heatwave by Jasmio is a plug-in for win 7 media center. It gets it's rss feed from www.weather.com, but weather.com changed something and is no lon...
[4 replies] Last: I think you are pulling my leg, but to be honest I was all excited unt... (by guppy)
Producing the file
 
haha, I called it the file because I don't know what it's actually called. That bit of information would be good too :) say I have my class built, with funct...
[8 replies] Last: What kind of library would have to be created to achieve this protecte... (by InterFiction)
linked lists question
 
i'm having trouble inserting/printing data from my linked list, i'm not sure if the data is going into the list or there is a problem with my print function......
[2 replies] Last: thanks. (by smallmos)
Code Blocks class File Help
 
Hey, I'm trying to create a class within its own file, and then functions, and what not. I'm having a bit of trouble, and know I'm doing this horribly wrong. Ca...
[10 replies] Last: line 27 and 28 is wrong. I added comments to make it clearer what's ha... (by Dacster13)
Dungeon Crawler project
 
Below is a code, produced by no other than me. I'm a newbie, and this code is probably awfully arranged and thought out. But i'd love it if you would test it ou...
[2 replies] Last: I just kinda included everything i know. So i didn't have to add it la... (by ThomasL)
trouble with loop
 
Hey all I'm not sure whats wrong with my code but for some reason once the user enters the final exam grade it then loops back and asks the user for basal grade...
[1 reply] : That's happening because on line 68 you are calling all the functions ... (by closed account D80DSL3A)
Clarification on how member functions work when objects are passed as arguments?
 
Hello, I'm writing a little program to help myself get used to classes in c++. It's something like an accounting simulation. I think that I have a problem with...
[4 replies] Last: Destroyed as out of scope when the function terminated? Yes. I also... (by hamsterman)
Trouble With adding.
 
I'm wondering what's goin on in this code. It's relatively simple, but it's definitely not giving the right output. sum for some reason ends up being in the mil...
[12 replies] Last: ohh okay, that makes perfect sense. Thanks. (by InterFiction)
printing array
 
i am having trouble with a bubble sort program i am trying to write. i think i have found the way to enter integers into the array but i cannot ssem to get them...
[2 replies] Last: well first of all in this line of code for (x=0;x<=c;++x ) { // ente... (by Dacster13)
Learning Classes
 
Hey, I'm having a bit of trouble with my program. The issue isn't with the class I don't think, but rather the if statement. It's telling me that I have an else...
[4 replies] Last: Hey you should check out http://www.thenewboston.com/?p=2629&pOpen=tu... (by InterFiction)
Craps program help
 
Ok so here is the code i have, it builds fine but when i run it, it only goes through the code once. Is there something wrong with my loop? I need to the progra...
[5 replies] Last: @Alexpil That code needs to look like this. Without the braces, wins+... (by whitenite1)
Read a string from a text file into an array
 
I need to implement a priority queue and I'm trying to figure out how to read from a text file into an array. The text file will look something like (arule,...
[2 replies] Last: It's for a priority queue using a heap structure and my teacher wants ... (by sharkfan)
How to code templates????
 
How to code templates. Because all the implementation needs to be in one single file. If I code in .hpp I cannot do a printf and see where I am going wrong in i...
[2 replies] Last: wow..... never realized that..... thanks..... (by howtechstuffworks)
November 2011 Pages: 1... 4748495051... 65
  Archived months: [oct2011] [dec2011]

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