Beginners - December 2013 (Page 52)

Redefinition of class as a different kind of symbol
 
I have an issue where it says: Next to "class AStar{": Redefinition of "AStar" as a different kind ...
[1 reply] : on line 8 you're declaring class AStar again. I presume you've alrea... (by yulingo)
Pointers
 
is this how you dynamically allocate have 10 pointer to a single object of class *ptr =new c...
[4 replies] Last: YEs but its edited now no syntax error if this was dynamically allocat... (by Sharan123)
by leo255
Trying to input numbers from text file into array with Stringstream
 
I'm relatively new to stringstream, and to inputting numbers from a text file into an array. Right n...
[4 replies] Last: Ah I learned something too. interesting. (by yulingo)
Overloading ostream for vector class
 
Currently making a programme which allows the user to create vectors of size n, input the values and...
[3 replies] Last: Something like this, maybe... template <class T> ostream & operator <... (by Chervil)
Multidimensional array and pointer arithmetic
 
int a ; a = 1; Why must I use the deference operator twice to get the value at a (**a). ...
[2 replies] Last: Thanks for the help! (by MasterT)
Hii experts.. i want suggestions..
 
i am yet a beginner. i have an assignment in my oop class in which i have to make a social networkin...
[1 reply] : Social networking implies a online networking app. Thinking of Facebo... (by SamuelAdams)
Polymorphism in C++, couldn't find what's wrong
 
Hello! I just have a base class and two derived classes to calculate the area of Rectangle and Trian...
[5 replies] Last: Thank you, MikeyBoy . I'll look up the correct way. Sorry about the w... (by match88)
by Roua
I really need ur help!
 
I am a CE student and I am still learning the basics so far I am studying the array on c++ program...
[4 replies] Last: thanks (by Roua)
for loops within for loops
 
I've been having trouble with a project I've been working on. The program is supposed to allow the u...
[7 replies] Last: No problem! Cheers! :) (by Tresky)
Inheritance question
 
Hey Guys, I have two abstract base classes, one derives from the other. Then i Have 3 other classes ...
[7 replies] Last: You're welcome. :) Cheers! (by Tresky)
Loops
 
Write a to transpose the value by using while loop??? I can't understand this!!! any one can help...
[1 reply] : I can't understand you!!! (by Chriscpp)
Pointer to object
 
I can not paste the whole code cause problem is in my concept about making a pointer to an object th...
[2 replies] Last: Yes thank you its working now but there is still this one problem whic... (by Sharan123)
Not sure where I went wrong
 
This is what I am trying to accomplish...You need to implement a recursive function namely Apowerfun...
[4 replies] Last: There should only be 2 files: "Apower.h" and "Apower.cpp". An outline... (by Rbroke)
making a function
 
i have to write a function called scaleData that accepts an array of doubles and a double named scal...
[7 replies] Last: double scaleData( int scaleFactor, int arraySize) { double sum = 0; ... (by bowleruu16)
making a 2-d array
 
i have to write a function called transpose that accepts a two-dimensional array of doubles named ma...
[1 reply] : http://ideone.com/QYXhce (by Josue Molina)
making a array
 
I have to write a function called calcMean that accepts an array of doubles named data and returns t...
[2 replies] Last: Thanks for pointing out my mistakes. (by Nikko YL)
by mgehad
initializing 2d array in classes
 
Hello . This is the code. and I'm getting the following errors, Any tips please ? ./file.h:15:...
[2 replies] Last: Yes it makes :) , Thanks so Much (by mgehad)
Why we use function template?
 
like this one: template<class T> void nice(T a, T b){ cout << a + b<<endl; } the template can tak...
[1 reply] : While it's true that sometimes a set of overloads and a function templ... (by Cubbi)
start class and add class that adds to class
 
Ok If I have a class that is abase class and works how to have the base class by it sell and add all...
[no replies]
cmath, can I use floats with atan?
 
Can I use atan in <cmath> with floats or do I have to convert floats to doubles to get it working? ...
[1 reply] : Yes, atan in cmath has an overload that takes a float and returns a fl... (by Cubbi)
December 2013 Pages: 1... 5051525354... 69
  Archived months: [nov2013] [jan2014]

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