Search Results

Showing results 1 to 27 of 27
Search took 0.01 seconds.
Search: Posts Made By: DangerDev ; Forum: C++ and child forums
Forum: C++ Oct 9th, 2009
Replies: 2
Views: 190
Posted By DangerDev
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
Posted By DangerDev
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
Posted By DangerDev
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
Posted By DangerDev
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
Posted By DangerDev
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
Posted By DangerDev
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
Posted By DangerDev
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
Posted By DangerDev
do you want to create tool for this? if yes then try using regular expression.
Forum: C++ Feb 25th, 2008
Replies: 9
Views: 901
Posted By DangerDev
can you explain your question bit more...
Forum: C++ Feb 22nd, 2008
Replies: 7
Views: 3,273
Posted By DangerDev
use fscanf() function and some logic,,,,i did same thing using this only
Forum: C++ Feb 21st, 2008
Replies: 3
Views: 688
Posted By DangerDev
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
Posted By DangerDev
get "The C++ Programming Language", by Bjarne Stroustrup. Solve It.
Forum: C++ Feb 18th, 2008
Replies: 4
Views: 1,698
Posted By DangerDev
i think in your problem random function will help
Forum: C++ Feb 18th, 2008
Replies: 21
Views: 2,751
Posted By DangerDev
Forum: C++ Feb 18th, 2008
Replies: 21
Views: 2,751
Posted By DangerDev
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
Posted By DangerDev
Forum: C++ Feb 18th, 2008
Replies: 17
Views: 1,416
Posted By DangerDev
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
Posted By DangerDev
use
DeleteFile (http://msdn2.microsoft.com/en-us/library/aa363915.aspx)
Forum: C++ Feb 18th, 2008
Replies: 3
Views: 3,682
Posted By DangerDev
try this (http://www.ipv6style.jp/en/apps/20030829/index.shtml)
hope it helps
Forum: C++ Feb 18th, 2008
Replies: 8
Views: 1,234
Posted By DangerDev
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
Posted By DangerDev
try this (http://www.codeproject.com/KB/system/Open_Close_CD_DVD_Drawer.aspx)
Forum: C++ Feb 15th, 2008
Replies: 5
Views: 4,662
Posted By DangerDev
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
Solved: Text.txt
Views: 786
Posted By DangerDev
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
Posted By DangerDev
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
Posted By DangerDev
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
Posted By DangerDev
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
Posted By DangerDev
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.
Showing results 1 to 27 of 27

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC