Beginners - April 2011 (Page 40)

by pooshi
C2061 Identifier Error
 
Hey Gent's. I am getting a C2061 in VS and I don't know why and was looking for some help. I am working on load and saving images from a file // hear is th...
[4 replies] Last: That's a good question and the answer quite obvious. Thanks. (by pooshi)
Error: a nonstatic member reference must be relative to a specific object
 
#include <iostream> #include <string> #include "order.h" #include "date.h" #include "room_list.h" #include "room_node.h" #include "room.h" #include "hot...
[1 reply] : Room_List is a class and get_first is a method. method is a function t... (by hamsterman)
by tgckpg
My program crashes, but not in debug mode.
 
My source code: http://www.text-upload.com/read.php?id=69316&c=7096036 datebase.txt : **Current Stock info Foldable bicycle: 10 Microwave oven: 10 Port...
[11 replies] Last: That's ok, and your English is pretty good :) (by chrisname)
Need help with a loop program
 
The object here is to allow a user to enter a measurement, then tell us whether it is feet or inches. The program should convert feet to inches or vice versa a...
[1 reply] : I do believe that your first if statement is wrong. It should be. ... (by king214)
How would I write a definition of the function?
 
This is what I have so far. //----------------------------------------------------------------------------------------- // // Function: tempAvg () // // Param...
[6 replies] Last: You might have learned more if you had been told how to do it rather t... (by chrisname)
C++ as a starting point? (1,2)
 
So I want to get into programming. I made a question post on Yahoo! Answers about this but I figured this would also be an appropriate place to ask as well as a...
[28 replies] Last: I would not recommend learning Python first; I think C++ makes a fairl... (by chrisname)
Saving highscore
 
I'm wondering how to save a highscore in a c++ console program. Like, if you get 1000 points, it will save that to a file, so it can be viewed the next time you...
[2 replies] Last: http://www.cplusplus.com/doc/tutorial/files/ (by Bazzy)
Couple of errors in my code
 
I'm constructing a basic Battleships game, and I keep receiving errors. Here is my code (it's not very long) #include <iostream> #include <cstdio> #incl...
[2 replies] Last: Thank you very much for your help :) I see now that the errors don't s... (by Jonnyisonfire)
Need help with single string variable + substring getting
 
I'm trying to write a C++ program that does: mame input in single string variable first space middle space last Locate first name + store it in a separat...
[4 replies] Last: cin >> fullName; //only reads to the first whitespace character (' ',... (by Mathhead200)
Constructor/Destructor
 
I'm just learning about classes and I get it for the most part (only about halfway done the class chapter at the moment.) However I do have a question about con...
[12 replies] Last: Thanks for all the advice/help everyone. For those talking bad about m... (by TheNoobie)
by CoopDH
Scope problems
 
Im having a problem with scope errors. Im trying to use a function from my class and even with including the class file it isnt working. proj1.cc #include ...
[3 replies] Last: Thanks guys, After getting this bug solved now im getting another one ... (by CoopDH)
by exca
infinite loop- help needed, urgent
 
Hi all, I am writing a program in which there is a part that computes all the possible values for two vectors of string patterns, one like 1XX78X9X32X (11 di...
[13 replies] Last: I don't know if you could implement your code with my method easily e... (by Mathhead200)
Checking User Input
 
I'm trying to create a simple calculator, and I want the user's input to be of the form: one or more digits (0-9) optionally followed by a decimal point and one...
[1 reply] : #include <iostream> #include <climits> using namespace std; int mai... (by sasanet)
Help for battleship game
 
I'm kinda noobish in what programming is. I have all the files for a battleships game, someone helped me to translate it from portuguese and now when I try to b...
[1 reply] : Don't post a download link of a program you claim is what you are work... (by Codefreak101)
Help on correcting this code on Dev C++
 
Ok first of all heres the question Write a C++ function isPrimeNumber prototyped by bool isPrimeNumber (long num); that return true if num is a prime numb...
[3 replies] Last: 4 isn't prime because it is divisible by 2. Since for the loop goes f... (by firedraco)
Understanding variables scope and function calling
 
Hi all, look at this code: File A.h: #ifndef A_H_ #define A_H_ #include <string> using namespace std; class A { public: A(); virtual ~A(); ...
[2 replies] Last: Yes, but strings are objects, and thus the copy constructor is called.... (by firedraco)
reading any file
 
hi,all I'm new to c++ and I want to read any file byte byte and then get the ASCII code fore each file. I searched in Google and also search this forum bu...
[4 replies] Last: no ya (by eman ahmed)
Check if x is not an integer
 
I need my program to shut down if x does not equal a number but i cant figure out how to check for it.
[12 replies] Last: [quote=packetpirate]Grey Wolf, your method does not allow for other da... (by closed account z05DSL3A)
Delay after cout
 
Hi I want to make a (fake) loading screen before my program i would like it to look like L(1sec delay)o(1 sec delay) a (1sec delay) and so on here is my c...
[5 replies] Last: Oh that's awesome I thought there would be something like that I just ... (by Codefreak101)
reading 2 integers from a file and then characters
 
I'm having one devil of a time with an easy concept :(. See, I've got a text file like this: (sample data) 5 6 A B C D E A B B C C D I want to save both inte...
[1 reply] : Just use file >> number1 , etc. (by kooth)
April 2011 Pages: 1... 3839404142... 55
  Archived months: [mar2011] [may2011]

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