Beginners - April 2011 (Page 14)

Fetching filenames
 
Hello, I'm trying to read in multiple files. The problem is that the names don't follow a logical sequence, so I can't simply "create" the filename for the n...
[5 replies] Last: Fixed: Apparently windows.h includes a file called WinDef.h, which def... (by Gaminic)
not a class?
 
Hello, i'm trying to build a partial program i wrote. Error: request for member 'Move' in 'obj_bat', which is of non-class type 'cls_bat()' How can I get ...
[6 replies] Last: Ah, my program finally compiles! And it does what it's upposed to do! ... (by Werner2)
searching in link list
 
#include <iostream> using namespace std; const short unsigned int NUMVALS = 10; class linklist { private: struct ListNode { int value; Lis...
[9 replies] Last: ListNode* getHead() { return *head; } And regarding the second li... (by Zeillinger)
by mobat
CHECK spot for random monster
 
I have this code which I made: http://pastie.org/private/vb0jhlc8zmaiong0qzyogw I want to make it where when I step on a blank spot ' ', itll randomize ...
[5 replies] Last: Try to put the 'call monster function' after you've tested for all the... (by matsom)
Isosceles Triange
 
I need help on making an isosceles triangle 2sides with 5 asterisks, and a base with 9 asterisks, and has no asterisks inside the triangle. I've come up with...
[1 reply] : #include <iostream> using namespace std; int main() { int... (by blackcoder41)
Quick data type question
 
In the code below I am taking a double and turning it into a integer, is that correct or just dropping everythng after the decimal? And then multipling two diff...
[2 replies] Last: http://www.cplusplus.com/doc/tutorial/variables/ maybe it can help. (by firix)
DUE 15mins: Quick Tally Program Question
 
I have most of the program written, but I just can't seem to remember or know how to make the function add 1 each time for the tally counter. Help will be much ...
[10 replies] Last: anyone? (by BurgerTown)
by blaaa
need help with random writer
 
so i have a project due at 11:55 tonight and i am overwhelmed. this is my first semester programming and im not very experienced with c++. the program is called...
[2 replies] Last: yea guess thats the place to look thanks (by blaaa)
expected primary-expression before "float"
 
I am getting the following errors in line 101 and 103: expected primary-expression before "float". I am unsure as to what this means.. Any help would be appreci...
[2 replies] Last: I know. I have been having trouble understanding functions and paramet... (by llind212)
displaying linklist
 
#include <iostream> using namespace std; const short unsigned int NUMVALS = 10; class linklist { private: struct ListNode { int value; ...
[7 replies] Last: Yes, the list will display "backwards". That's how it's supposed to wo... (by closed account D80DSL3A)
Need help passing a struct to a function.
 
#include <iostream> #include <iomanip> #include <fstream> #include <cstdlib> //need this for my compiler to recognize exit. using namespace std; struct player...
[4 replies] Last: That did it. Thank you both for answering! (by phalanks)
Question:what's mean "undefined reference to "
 
None.
[4 replies] Last: Thank you guys. I am really fool. I forget that point. thanks. (by gongzhen)
Need Help with some simple code
 
I am going back through my textbook to get better and programming and I am getting this code error. 1>c:\documents and settings\acaughg\my documents\visual s...
[5 replies] Last: Final Program: #include<iostream> using namespace std; int ma... (by acaughg)
How do I compare strings correctly?
 
Hi all! Part of my program asks the user to input a number between 1 and 100. If the number is not between 1 and 100, the program displays an error and asks th...
[6 replies] Last: FWIW, you actually can compare two strings as numeric values, so long ... (by Duthomhas)
Code compiles, but doesn't work.
 
Here is where I am at. This code compiles and works fine except for two issues. First -1 does not terminate the program. Second, if you enter 7 characters witho...
[11 replies] Last: LMAO^ (by ascii)
by ascii
optimization
 
i spent the last 20 or so minutes writing a program to remove all the spaces from a string, and it works perfectly but i feel like the code could be cleaner/nea...
[no replies]
Clueless and freaking out!!
 
I'm trying to write a program to check stock exchange prices from a file with a menu similar to a bank's atm. So far all I can figure out is below. First off my...
[13 replies] Last: Oh good. If you get stumped for how to add your needed functionality, ... (by Moschops)
Help!
 
Can C++ be used to make website; or at least something on a website? Btw, If not what can C++ be used for besides creating 3D/2D games? Thanks in advanced!
[7 replies] Last: I didn't say anything about a virus... I hope that virus creators try ... (by Veltas)
by firix
database programming
 
Hi, which learn C++ programmer a database programming language? MYSQL ? SQL ? ORACLE and Which resources can use ???
[4 replies] Last: ok thanks. (by firix)
Day of the Year class
 
I am have to create a program for my class. The instructions are to allow a user to input an integer and display the month and day that corresponds to the ente...
[8 replies] Last: Well for starters... change your print function back to how it was. I... (by Disch)
April 2011 Pages: 1... 1213141516... 55
  Archived months: [mar2011] [may2011]

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