Beginners - October 2011 (Page 34)

noob - I can't run program by clicking icon
 
using linux mint 11 just started C++ and the book I'm using assumes I'm using windows and not the g++ compiler. anyway it says I should be able to execute my ne...
[6 replies] Last: I got an answer over on the linux mint forum so if anyone else wants t... (by minty33)
Declaring/Defining Class Functions?
 
So you know how it's best to always try to Declare your regular functions before int main(), then define the functions at the very end of the program like: ...
[2 replies] Last: Thanks Disch! Now I remember that from my book, except that my book di... (by hellohellomoon)
Pointer's and thing's i don't understand about them
 
hey I am currently a "Beginner" in C++ and in general coding . I have a question regarding Pointer's #include <iostream> #include <cmath> using namespace std;...
[7 replies] Last: At first pointers seem pretty useless and just confusing, but the deep... (by freddy92)
by K Nev
C++ Inheritance
 
Okay so I have an Inheritance hierarchy and I need help with one of my classes. I have a class called LINKED_LIST and a class called STACK. STACK's functions ne...
[no replies]
Console Programs
 
I was just curious to know that are there any major uses of console apps now a days? I have only used one as far as I can remember, which was to ping the inte...
[5 replies] Last: alot of console aps are used in linux to varying degrees. besides file... (by minty33)
The member access about template derivation
 
There are two templates. One is base, another is child //Base.h template<typename T> class Base { protected: int x; char c; }; ...
[no replies]
by gh24
Operator Matching Operand Confusion...
 
Hi All, I am in way over my head writing recursive code and was hoping for some help. Here's the line of code where the error comes in: B * repeated_squari...
[3 replies] Last: help please! (by gh24)
error LNK2005: "public: void __thiscall tree::make_tree(int,int)" (?make_tree@tree@@QAEXHH@Z) already defined in main.obj
 
Hi, I believe I am defining the tree structure multiple times and this is causing problems. I have tried to correct for this but not with any success. Was won...
[2 replies] Last: Thanks! (by duggarm)
by Floeps
Value changes when calling different constructor
 
Hi, I've got a bit of an odd problem, I initialize an object, and when I call a different empty constructor, the value of the object changes. What could be...
[7 replies] Last: Thank you Disch, that was indeed the problem. I had expected this to ... (by Floeps)
by bxdin
Please help with creating 2 different parallel arrays
 
The instructions state I must use a 1 dimensional array to read the 1st column of data from a text file. Then i must use a 2-dimensional array to read the numbe...
[2 replies] Last: The following was able to execute successfully #include <iostream> ... (by bxdin)
by shehio
split function for strings!
 
#include <iostream> #include <string> using namespace std; string split (string str, char c) { string ret; for(int i=0 ; i <= str.length...
[2 replies] Last: Also your for loop should use less-than (<) instead of less-than-... (by alhypo)
end of input
 
how to write when i type 0 ,it is end of input?pleasee help
[1 reply] : while( cin>>input and input not_eq 0 ){ //... } (by ne555)
handle several files
 
Guys I'm rather desperate cause i cant think of a way to solve my current homework: I have to handle a message system: when it recive a message it shall creat...
[no replies]
Help why program won't do what I have programmed
 
I am trying to get the program to draw is something that looks like this: http://www.portmain.com/intro/hw/hw05-field.html instead of the program drawing ...
[no replies]
[win32 API] Show Images from Resource
 
Hi, I want to create "loading" animation, I have 4 icons(.ico) in resource, how can I show one of them on selected 'point' and then delete it? Thanks!
[no replies]
simple program using pythagorean theorum
 
using: Dev-C++ OS: WinXP 32bit //A simple interactive program that computes the missing length of a //right triangle using the Pythagorean Theorum #...
[3 replies] Last: Thank you guys so much that really worked :) oh and by the way Eric, ... (by tatater56)
.
 
...
[1 reply] : We don't provide full homework solutions on this site. However, we wil... (by shacktar)
Undeclared use this function
 
Getting the following errors: Line 62 REGULAR_PRICE_PER_SHIRT undeclared [first use this function] Line 67 Expected '.'expected "cout" I have checked ever...
[4 replies] Last: Actually just want it to show that REGULAR_PRICE_PER_SHIRT is $12.00 ... (by alhypo)
by Taino
statements to make choices
 
Hi, I am working on a program that will allow the user to make a choice. The program is based on the principles of finding the area of a Rectangle, Circle a...
[5 replies] Last: got ya! thanks a lot, back to the keyboard. Happy Programming! (by Taino)
Quick question about rand()
 
All tutorials taught me how to specify max number generated by rand(), but how specify min number generated? For example, I do not want it to generate number 1.
[3 replies] Last: probability says so, but practically it varies. (by nims11)
October 2011 Pages: 1... 3233343536... 59
  Archived months: [sep2011] [nov2011]

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