581 Posted Topics

Member Avatar for anXieTy

When you download and unpack the library. Its not ready to be used. Most of the librarys need to be compiled before being used. Maybe its the same case with this too .. [url]http://www.cplusplus.com/forum/windows/5259/[/url] This thread gives u a basic explanation on how to install.. If you have any more …

Member Avatar for Stefano Mtangoo
0
2K
Member Avatar for alex55

[code] char inputFile; [/code] You have declared inputFile as a single character. So unless an until you only want to open a file which is a single character long, You can leave it the way it is and go ahead on changing your function. Or I guess you could change …

Member Avatar for jonsca
0
109
Member Avatar for night2night3

It has to mainly do with the way you have declared the class [B]EmployeeData[/B] in [B]EmployeeDataList[/B]. [code] class EmployeeDataList { private: class EmployeeData; //Class data type for nodes. EmployeeData *head; //------- [/code] Since you have declared [B]EmployeeData[/B] inside [B]EmployeeDataList[/B] you should be defining the class like this [CODE]class EmployeeDataList::EmployeeData { …

Member Avatar for Sky Diploma
0
288
Member Avatar for plang007
Member Avatar for Sky Diploma
0
333
Member Avatar for TheLittleEngine

Hello, I have just looked at your thread and have come up with a rather simple solution to part 'b' of your question. What you could do is. 1) Check if (denominator < 0 ) //this would determine if the value of the denominator is negative. 2)If (denominator < 0 …

Member Avatar for TheLittleEngine
0
725
Member Avatar for ManCard67

I would like to point to you one basic thing that you might have going bad right now. It basically is the place where you are collecting the data. [B]The getdata() [/B] is collecting all the data from the file into a local variable. This is bad, as the local …

Member Avatar for Sky Diploma
0
336
Member Avatar for gregorynoob
Member Avatar for serkan sendur

There are many things in history that people want to forget. I think that all of us will agree on this, Lets not go that deep into hatred among people as its mostly an assumption (Though there might be truth in it. ) So people, Lets just stick to the …

Member Avatar for ronnieaka
0
1K
Member Avatar for xyzt

[url]http://www.chris-lott.org/resources/cmetrics/[/url] Maybe that will help. I never used it , but found it in the search results of google.

Member Avatar for IssamLahlali
0
156
Member Avatar for spoinkgeek

as FirstPerson has told you . You should provide an interface for editing the variables but must not provide direct access to its members. Well if there is the question of Deleting records, or Adding New Records, I wonder if you are given a bound, For example the Max number …

Member Avatar for Amanuel Negash
-1
121
Member Avatar for jalenamichelle

Please use code tags so that you'll get people interested in reading your code and faster answers

Member Avatar for WaltP
0
98
Member Avatar for cclausen7

[CODE]string convertWord(string word) { for(int counter=0; counter < word.size(); counter++) { for(int i; i < 26; i++) { if (word[counter] == alphabet[i]) { word[counter] = leet[i]; } } } return word; }[/CODE] You are trying to put in a string in-place of a character. That cannot be done. And secondly …

Member Avatar for cclausen7
0
3K
Member Avatar for minnie19
Member Avatar for mitrious

You should create a pointer to function, and then pass the functions address with a reference.

Member Avatar for mitrious
0
141
Member Avatar for noneta
Member Avatar for bob200707
Member Avatar for bob200707
0
103
Member Avatar for waway

Hi Waway, Welcome to Daniweb. Here we follow a rule stating that every problem that we address must provide proof that they have really made an attempt to solve their problem. So could you please post the code that you have come up with till now and then ask for …

Member Avatar for waway
0
89
Member Avatar for lradske

The Problem with the above code is that [code] std::cout<<"MAX " << *max_element(list.begin(),list.end())<<std::endl; [/code] in this line, the function max_element doesn't know how to compare between 2 elements of type Student. If we send it an extra parameter [code] std::cout<<"MAX " << *max_element(list.begin(),list.end(),my_comp_func)<<std::endl; [/code] and if [code] bool my_comp_func(Student,Student); [/code] …

Member Avatar for Ancient Dragon
0
117
Member Avatar for racoon8995
Member Avatar for vijayan121
0
173
Member Avatar for viv0411

Or get through it with a recursive function, End cases would be if either you finish all available values with you or total > required total.

Member Avatar for sundip
0
116
Member Avatar for WASDted

[QUOTE=jonsca;1220549]I'm trying really hard to come up with something but he has such an extensive website ([url]http://www2.research.att.com/~bs/[/url] if anyone doesn't know it) where he has answered so many questions already. I might ask him if he's going to come out with a new edition of his book covering C++0x in …

Member Avatar for AuburnMathTutor
2
715
Member Avatar for spring sun

[code] for(int i=2;i<x,i>x;i++) [/code] (i<x,i>x) doesnt make sense to the compiler. i guess you should use the (||) meaning "OR".

Member Avatar for technology
0
221
Member Avatar for vmanes
Member Avatar for eXceed69
Member Avatar for maryam ahmad
Re: pow

Its probably finding the first argument ambigious as the compiler is considering -1 to be an integer. maybe try, [code] long double neg1=-1; cout<< pow(neg1,i+k); [/code] However i'm not sure whether this would work.

Member Avatar for Fbody
0
155
Member Avatar for anuragcoder

strcmp is defined in <string.h> or <cstring> . Even if you include it. the function only takes const char* as arguments. So if you wish to use it. you can do this [code] if (strcmp(x.c_str(), need.c_str() ) == 0){ [/code] at your if loop . Or if you are checking …

Member Avatar for anuragcoder
0
655
Member Avatar for theABCasian
Member Avatar for Ketsuekiame
0
268
Member Avatar for hatzi8

You might consider some algorithms such as Breadth first search and Depth first search. and tweak them a bit :)

Member Avatar for Sodabread
0
92
Member Avatar for sami alzahrani

[URL="http://www.daniweb.com/forums/thread573.html"]the answer to your question.[/URL]

Member Avatar for Sky Diploma
-1
61
Member Avatar for Donnovan

I think a copy constructor as it name suggests creates a copy of the class-variable that is passed to it as a parameter/argument. Unless the variable being passed has incremented the value.. I'm pretty unsure about it.

Member Avatar for Sky Diploma
0
110
Member Avatar for Mikhailvs
Member Avatar for merse

I dont understand whats wrong with the above piece of code. Considering that there is a number for sure after the '=' . it should work.

Member Avatar for Narue
0
800
Member Avatar for BLKelsey

the mechanism of calling the wait () function is faulty. [code] cout<<"Loading \n" ; for(int i=0;i<4;i++) { cout<<"." ; wait(1); } [/code] would do what you are expected of. You seemed to have understood the concept of function calling /basic syntax wrongly.

Member Avatar for BLKelsey
0
107
Member Avatar for gunbuster363
Member Avatar for Sky Diploma
0
349
Member Avatar for The Dude
Member Avatar for kaninelupus
-1
3K
Member Avatar for Violet_82

interesting question. Array: An array is kinda like a collection of variables of the same data type. Each variable that is pointed out by an index value. [B][U]Creation of an array: [/U][/B] Consider the following code: [code] int arr[10]; [/code] Here we declare/define an array of '10' [COLOR="red"][B][COLOR="Red"][B]int[/B][/COLOR][/B][/COLOR]eger elements. of …

Member Avatar for Violet_82
0
253
Member Avatar for Dinglish

Just like a normal variable :p This is an example code. if you need more help just ask . [code] const int size=10; int value[size]; for (int i=0; i < size; i++) { cout<<"Enter value - " << i << "- : " ; cin >> value[i]; //Assigning from input …

Member Avatar for caut_baia
0
105
Member Avatar for The Dude
Member Avatar for The Dude
Member Avatar for maydhyam
1
2K
Member Avatar for red999

Could you explain what you meant by >>solve this recursively by going through the maze manually?

Member Avatar for red999
0
105
Member Avatar for doolsta111

i think [code] list::clear(); [/code] is what you're searching for. Read about it here [URL="http://www.cplusplus.com/reference/stl/list/clear/"]Click Me[/URL]

Member Avatar for Sky Diploma
0
89
Member Avatar for rcmango
Member Avatar for mrs.lala

[B]Recursive Function [/B]: [U][B]By definition :[/B][/U] A[B] recursive function[/B] is a function that either calls itself , or calls another function which in-turn calls itself. In rather simple words it means a function that performs [U]repetitive action until a goal is reached. [/U] Recursive Functions basically have 2 cases: 1. …

Member Avatar for Sky Diploma
0
162
Member Avatar for doolsta111

I would prefer you post down the code that you've written till now.. Maybe then, we can help you out. Its pretty raw without understanding your exact problem

Member Avatar for Sky Diploma
0
86
Member Avatar for Kevin_160
Member Avatar for mrnutty
0
2K
Member Avatar for pok.kys90

[B]Add Record:[/B] Go to the end of the file. Add in a new record with the same format. [B]Delete Record:[/B] You could read in all the data, then omit the element that has to be deleted And Write back all the data. Just be sure that you dont open the …

Member Avatar for Sky Diploma
0
235
Member Avatar for collinisaac

You can maybe convert double into String. and then display it. there are loads of ways to convert from int to string. using stringstreams etc. :)

Member Avatar for jonsca
0
113
Member Avatar for Avatar99

In Line 49, 53 you seem to be using [icode] = [/icode] in the place of [icode] == [/icode] the same case again in 73. Apart from those. The code in line 51 is always true and will be executed. I think you should think on what you are trying …

Member Avatar for Sky Diploma
0
111
Member Avatar for summey

Haven't gone through the code yet. But I think you will need to set the precision of cout .to attain that result. [code] cout.precision(2); cout << "Base Pay .................. = " << basepay << endl; [/code]

Member Avatar for summey
0
132
Member Avatar for miskeen

Well, looking at the code you produced. the pointer struct1 is a local variable to myFunc1( ). So by the time the function call ends. the scope of struct1 ends. creating 2 problems 1) the dynamic array created remains unused. 2) The dynamic array is not deallocated with the delete …

Member Avatar for miskeen
0
162

The End.