Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
71% Quality Score
Upvotes Received
4
Posts with Upvotes
4
Upvoting Members
4
Downvotes Received
2
Posts with Downvotes
1
Downvoting Members
2
2 Commented Posts
0 Endorsements
Ranked #1K
~33.4K People Reached
About Me

Software Engineer

Favorite Forums
Favorite Tags

54 Posted Topics

Member Avatar for rekhamanoj

Please refer to this link. It may be helpful. [url]http://www.codeproject.com/KB/database/cspreadsheet.aspx[/url]

Member Avatar for Prakash.sit
0
10K
Member Avatar for dineshcbe

I've found the following link helpful. [url]http://www.codeguru.com/forum/archive/index.php/t-269582.html[/url]

Member Avatar for kbshibukumar
0
635
Member Avatar for pankaj37marwal

Are you using Turbo C++? Make sure that the include directory (in the menu of turbo C++ IDE) contains the exact location where iostream.h resides.

Member Avatar for seanbp
0
102
Member Avatar for hajiakbar
Member Avatar for floatingDivs
-1
142
Member Avatar for dip7

A binary file may contain multiple eof characters. So take the size of the file and loop to the total size / till you find the required binary number.

Member Avatar for dip7
0
117
Member Avatar for RFBourquin

[QUOTE=RFBourquin;467664]I can't seem to find any function which will allow me to obtain the Windows screen resolution and/or set it in C++. I would like to be able to change it, then change it back. Thanx[/QUOTE] To get the screen resolution, you can use the function [B]GetWindowRect()[/B]. I've written an …

Member Avatar for 7sedam7
-1
2K
Member Avatar for shrutinr
Member Avatar for jonsca
0
169
Member Avatar for sksingh73
Member Avatar for rohitn

VC++ 2005 with TR1 extensions provide extensive support for regular expressions. On the other hand, there are some free libraries (say, boost) which provides regular expression libraries for VC++.

Member Avatar for kbshibukumar
0
46
Member Avatar for Sonali_86
Member Avatar for madhav_75
0
113
Member Avatar for karthik.c

The map as a whole can not displayed using cout. Try [QUOTE]cout << *mp0_iter.first() << *mp0_iter.second() << '\n';[/QUOTE]

Member Avatar for alvinyang
0
499
Member Avatar for rockstar8577

Why are you hesitant to use Visual C++? There you can use either MFC or .NET framework.

Member Avatar for rockstar8577
0
192
Member Avatar for turrence27

You are missing the loop termination conditions in the for loops in the lines where compilation errors occur.

Member Avatar for jonsca
0
2K
Member Avatar for maresma

[CODE]coordinate blah = place(b); double x = blah.getx(); double y = blah.gety(); [/CODE] I hope this is what you need. Also, make member variables x and y of class coordinate private or protected.

Member Avatar for kbshibukumar
0
111
Member Avatar for PcCopat

Instead of [CODE] NodeSmall *docNum = new NodeSmall;[/CODE] you have to use [CODE]head->docNum = new NodeSmall;[/CODE]

Member Avatar for kbshibukumar
0
126
Member Avatar for naveedmahar
Member Avatar for blainegeneral
Member Avatar for Salem
0
207
Member Avatar for dude1

This might be helpful. [url]http://www.devx.com/getHelpOn/10MinuteSolution/16972/0/page/3[/url]

Member Avatar for kbshibukumar
0
89
Member Avatar for farvahar_mr

Can you paste the scanf statement? Have you forgotten to use the & operator? [I]<<snip>>[/I]

Member Avatar for strmstn
0
125
Member Avatar for ravenrider

In fact I didn't understand what you mean using this program. I see that there is a statement [CODE]fin.open(filename);[/CODE] which tries to open a file with an uninitialized name. Then, [CODE]fin >> size;[/CODE] This will try to copy the value of fin, which is an ifstream variable to size. What …

Member Avatar for Salem
0
128
Member Avatar for Cristofor

Can u check if ur include directories are set properly? You can check it in Options- > Project and solutions -> VC++ directories. [I]<<snip>>[/I]

Member Avatar for Cristofor
0
120
Member Avatar for karthik chinta

To use find function, you have to implement operator < in the key struct. Then it will be ok. Once I had a similar problem in sorting a vector and I have written it in my blog. [url]http://cppkid.wordpress.com/2008/09/19/how-to-sort-a-vector-with-non-number-elements/[/url] Hope this will clear your issue.

Member Avatar for lyle017
0
10K
Member Avatar for Shabtai

> The following is a statement from a program on linked lists given to us in class. I do not understand why I have to add & for address when what is passed is a pointer which means it is passed by reference.: void CharNode::headInsert(CharNode* &head, char *d) { head …

Member Avatar for siddhant3s
0
389
Member Avatar for everydaybh

Other than that, in function assign , you are using local variables, which make it meaningless.

Member Avatar for tux4life
0
179
Member Avatar for Danny_501

I think it is because of buffering of cout. A call cout.flush() may help. (I didn't try it. So pls excuse if it is wrong)

Member Avatar for Danny_501
0
173
Member Avatar for Sallad

I'm not sure if C++ permits that. Better you can try Animal* a1 = new Animal(); Animal* d1 = new Dog() Then you can use dynamic_cast, if needed

Member Avatar for kbshibukumar
0
145
Member Avatar for Vallnerik25
Member Avatar for Vallnerik25
0
241
Member Avatar for crewxp
Member Avatar for siddhant3s
0
295
Member Avatar for serkan sendur

However, having multiple exit points for a function makes it difficult to maintain. There is a greater chance that you'll forget to do the clean ups (which will be usually at the end of the function).

Member Avatar for Narue
0
1K
Member Avatar for azwraith69

Is the value of [B]result != NULL[/B] when you invoke the function? I don't see you do a [B]new [/B]operation on result anywhere in the function. As you stated, if it is really non-null, the program would crash because you are accessing the member functions of result in a number …

Member Avatar for kbshibukumar
0
145
Member Avatar for crewxp
Member Avatar for crewxp
0
145
Member Avatar for tpetsovi

You don't have to go upto sqrt(num). The loop may be like this. [QUOTE]for(int i = 2; i < sqrt(num); i++)[/QUOTE]

Member Avatar for kbshibukumar
0
185
Member Avatar for songweaver

Try this. [url]http://cppkid.wordpress.com/2009/02/18/how-to-round-off-a-number/[/url]

Member Avatar for kbshibukumar
0
141
Member Avatar for mimita

To sort an array, see the following article. It is simpler than you writing your own algorithm. [url]http://cppkid.wordpress.com/?s=how+to+sort+an+array[/url]

Member Avatar for kbshibukumar
1
100
Member Avatar for halfnode

The problem is that when your function is returning a string, it first makes a copy of the string to be returned (in your case, it is NULL). For making copy, it has to take the length of the original string. Of course, strlen(NULL) fails. You can make your string …

Member Avatar for ArkM
1
198
Member Avatar for M3rcury

This may be helpful to round off a number. [url]http://cppkid.wordpress.com/2009/02/18/how-to-round-off-a-number/[/url]

Member Avatar for Ancient Dragon
1
110
Member Avatar for blerina12

The problem seems to be in [ICODE]while(isalpha(ch)) { text[i] = ch; i++; }[/ICODE] If the first character is an alphabet, it will go on filling the array text with that character and this is almost an infinite loop as isalpha(ch) never fails. As the max. size of text[] is only …

Member Avatar for blerina12
0
97
Member Avatar for viki0077

[QUOTE=viki0077;806645]Does anyone now answer to this: Suppose class X includes a data elements common declared as public. How can it be accessed by all functions in the same name space ?[/QUOTE] The question is not much clear to me. I assume that you have a class with a public member, …

Member Avatar for kbshibukumar
0
161
Member Avatar for Marcel91

[QUOTE=jencas;800976][code] found = (*point).find("test"); [/code][/QUOTE] Exactly........ Have a better practice to initialize [B]Point [/B]at the time of declaration.

Member Avatar for kbshibukumar
0
104
Member Avatar for Mike Savino

I'm not sure what type of a vector stuAns is. If it is a vector of char*, you have to use strcmp() instead of checking with the operator !=.

Member Avatar for kbshibukumar
0
70
Member Avatar for massivefermion
Member Avatar for jraven1
Member Avatar for CPPRULZ

only the first example invokes copy constructor. If the second one needs to work in the same manner as copy constructor does, you have to overload the assignment operator.

Member Avatar for CPPRULZ
0
168
Member Avatar for daviddoria

isn't it possible to use a map rather than using two separate vectors? Then, I think, the entire problem will be solved.

Member Avatar for kbshibukumar
0
133
Member Avatar for lrnzsmok1

Sorting the stack is easy. I have written in my blog how to sort an array in simple steps. [url]http://cppkid.wordpress.com/2008/09/18/how-to-sort-an-array/[/url] Hope this will clear your problem.

Member Avatar for kbshibukumar
0
135
Member Avatar for shadowfire36

Instead of the line Foo* f = new Foo[2]("Hello"); you have to use [CODE]Foo* f[] = {new Foo("Hello"), new Foo("Hello"));[/CODE] Then for deleting, you have to iterate throgh each element of the array. [CODE]for (int i = 0; i < 2; ++i) { delete f[i]; }[/CODE] A better method is …

Member Avatar for kbshibukumar
0
623
Member Avatar for smithss

p is the object itself (just another name for *obj, not obj). References are internally treated as pointers. However, it is hidden from the programmer.

Member Avatar for smithss
0
91
Member Avatar for 72246

[QUOTE=72246;778739]calculate the value of pi from in finite series pi=4-(4/3)+(4/5)-(4/7)+(4/9)-(4/11).... print a table that shows the approximate value of pi 1,000 terms series[/QUOTE] How the value of PI can be printed as a table?

Member Avatar for StuXYZ
0
253
Member Avatar for smithss

[QUOTE=smithss;778651]Hi, so i wrote a few of the programs on my own after all the help previosuly but i've got stuck in this one here. The point is the make the string alteast 'n' characters long by padding spaces to its right. [code=c++] #include <iostream> using namespace std; void padRight(char …

Member Avatar for smithss
0
138
Member Avatar for a10m84

[] operator is the best to add values to an array, I think. Applicable only if you know the index in advance. If you have to search in runtime for the position to which we can add a value, it will have a complexity of O(n). In that situation, if …

Member Avatar for Salem
0
144

The End.