Forum: C++ Oct 9th, 2009 |
| Replies: 2 Views: 190 Don't look for code here. Spoonfeeding is strictly avoided here. Let us know what you have done so far. |
Forum: C++ Aug 17th, 2009 |
| Replies: 8 Views: 959 In this scenario binary search will not do the job, simple go for linear search. Here is algorithm:
1. take pattern as patternString.
2. take one string from string array as strToCompare
3. If... |
Forum: C++ Aug 10th, 2009 |
| Replies: 6 Views: 221 1. Why you created two different threads for the same problem.
@ moderators : please delete new one.
2. What you have done so far? i don't think any one will provide you source code here. |
Forum: C++ Aug 10th, 2009 |
| Replies: 3 Views: 177 What you have done so far? Don't expect someone to do all work for you? First try yourself and if you face any problem, just post here. |
Forum: C++ Aug 7th, 2009 |
| Replies: 7 Views: 375 when you want a operator to show other then default behavior you should use operator overloading.
for example you have created a class ComplexNumber.
by default + operator doesn't add two ... |
Forum: C++ Aug 5th, 2009 |
| Replies: 3 Views: 210 see,
after first pass of for look, file reading pointer will be at the end. so during next for loop passes it wont go inside while loop as (! inFile.eof() ) will be false.
You have to reset the... |
Forum: C++ Jan 30th, 2009 |
| Replies: 5 Views: 295 write a small web server or chat engine.
you can also write with very little capability. |
Forum: C++ Jan 29th, 2009 |
| Replies: 22 Views: 1,039 do you want to create tool for this? if yes then try using regular expression. |
Forum: C++ Feb 25th, 2008 |
| Replies: 9 Views: 901 can you explain your question bit more... |
Forum: C++ Feb 22nd, 2008 |
| Replies: 7 Views: 3,273 use fscanf() function and some logic,,,,i did same thing using this only |
Forum: C++ Feb 21st, 2008 |
| Replies: 3 Views: 688 swap finrst and last member increase count for first , decrease count for last do the same......repeat........... |
Forum: C++ Feb 19th, 2008 |
| Replies: 6 Views: 1,620 get "The C++ Programming Language", by Bjarne Stroustrup. Solve It. |
Forum: C++ Feb 18th, 2008 |
| Replies: 4 Views: 1,698 i think in your problem random function will help |
Forum: C++ Feb 18th, 2008 |
| Replies: 21 Views: 2,751 |
Forum: C++ Feb 18th, 2008 |
| Replies: 21 Views: 2,751 use header #include <windows.h> [edit]
and syntax example:
DeleteFile(TEXT("datafile.txt"));
its for vc++; |
Forum: C++ Feb 18th, 2008 |
| Replies: 4 Views: 1,698 can you post your program. |
Forum: C++ Feb 18th, 2008 |
| Replies: 17 Views: 1,416 see following example it may help you:
char chStr[10][10];
//populate array with strings
for(int i=0;i<10;i++)
{
strcpy(chStr[i],"hi");
}
//print the strings |
Forum: C++ Feb 18th, 2008 |
| Replies: 21 Views: 2,751 use
DeleteFile (http://msdn2.microsoft.com/en-us/library/aa363915.aspx) |
Forum: C++ Feb 18th, 2008 |
| Replies: 3 Views: 3,682 try this (http://www.ipv6style.jp/en/apps/20030829/index.shtml)
hope it helps |
Forum: C++ Feb 18th, 2008 |
| Replies: 8 Views: 1,234 as VernonDozier suggested make a structure of rational no. and then in another structure if needed make array of rational structure. |
Forum: C++ Feb 16th, 2008 |
| Replies: 2 Views: 660 try this (http://www.codeproject.com/KB/system/Open_Close_CD_DVD_Drawer.aspx) |
Forum: C++ Feb 15th, 2008 |
| Replies: 5 Views: 4,662 along with findfrst and findnext method suggested by Niek use recursion to get list of all files from harddisk |
Forum: C++ Feb 15th, 2008 |
| Replies: 4 Views: 786 after getting all the filename along with path u need to use String object's (search pattern to get) subString method to get file name. |
Forum: C++ Feb 14th, 2008 |
| Replies: 7 Views: 822 use:
for (int myHeight =1;myHeight <width; myHeight++)
{
for (int myBase=1;myBase<length;myBase++)
{
if(myBase==1 || myBase==length-1 )
printf(c);
else if(myHeight==1 ||... |
Forum: C++ Feb 14th, 2008 |
| Replies: 1 Views: 389 can u explain u'r problem. i think:
for changing parameters u can provide a config class which will take parameter from a config file, hence upon changing on parameter u can make change only on... |
Forum: C++ Feb 1st, 2008 |
| Replies: 3 Views: 2,183 make two dimension array say arr[m,2] , in first dimension u store all empId, like arr[n][0]=empid
and in second dim u store pointer to corresponding structure. like arr[n][1]=ptr , then write a... |
Forum: C++ Feb 1st, 2008 |
| Replies: 3 Views: 2,183 u make a hash table where empId will be key and it will return pointer to particular structure. this will make u'r job easy. |