- Strength to Increase Rep
- +6
- Strength to Decrease Rep
- -1
- Upvotes Received
- 60
- Posts with Upvotes
- 55
- Upvoting Members
- 10
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
104 Posted Topics
Re: AJones Why can't you see what people are telling you? | |
Re: It's a pretty simple algorithm. Didn't you find anything about it in your algorithm's book? You can start from here http://en.wikipedia.org/wiki/Kruskal's_algorithm | |
Re: Anyone will be glad to give you hand if you show your efforts here. If you don't really know how to work with files then I would suggest you to read you book first or go through basic tutorial like [url=http://www.cprogramming.com/tutorial/cfileio.html]File I/O in C[/url] [url=http://www.cprogramming.com/tutorial/lesson10.html]File I/O in C++[/url] | |
Re: Try to append this to your code [code] } int main() { cout<<fibonacci(/*some number*/); } [/code] | |
Re: [URL="http://www.amazon.com/gp/product/0201715945/qid=1152945713/sr=2-2/ref=pd_bbs_b_2_2/002-7583998-3879210?s=books&v=glance&n=283155"]Design Patterns Explained: A New Perspective On Object-Oriented Design[/URL] by Alan Shalloway, James Trott | |
Re: [url=http://cimg.sourceforge.net/][B]C++ Template Image Processing Library.[/url][/B] | |
Re: Another useful link [url]http://sos.enix.org/en/MainPage[/url] | |
Re: [quote=~s.o.s~;258377]when you declare a char it is automatically taken as signed char [/quote] That's machine dependent. It could be signed or unsigned. | |
Re: You need to use for loops or strcpy function inside constructors. | |
Re: VC2005 is free to download and yes it's much better than VC2003. | |
Re: [COLOR=black]I totally agree to what [/COLOR][COLOR=black]Jerry Jongerius says: [/COLOR][COLOR=black][quote]Use a debugger only as last resort. Having to resort to a debugger means your programming methodologies have failed.[/COLOR][COLOR=black][/quote][/COLOR] [COLOR=black] [/COLOR] | |
Re: Get a good book like Accelerated C++ By Andrew koenig and Barbara Moo. | |
Re: I Want that beatle555 should first show some efforts before asking help in forums. Pls Help Yourself!! | |
Re: Inanna, you sound very familiar to someone. | |
Re: See this [code] #include <iostream> using namespace std; int main () { int counter=0; int largest=0; int number=0; largest=number; while ( counter < 10 ) { cin>>number; if(largest<number) largest = number; ++counter; } cout<<"Largest Number:"<<largest; return 0; }[/code] | |
Re: [url]http://www.daniweb.com/techtalkforums/announcement8-2.html[/url] | |
Re: [quote=sameer.mastek;255316] What is the ICE? Is it related to C++ and TCL communication somehow?[/quote] ICE is a Tcl compiler. The compiler translates Tcl code into C code, which can then be compiled together with a special Tcl library to produce a single executable. | |
Re: Search through this forum. You'll get number of such threads. | |
Re: [quote=n3st3d_l00p;255779]how to create from input? string folder; getline(cin, folder); mkdir(folder); ??? cannot compile![/quote] Through Command Line [code] #include <iostream> #include <direct.h> int main(int argc, char** argv) { if (argc < 2) { std::cerr << "Usage: " << argv[0] << " [new dir name]\n"; return(EXIT_FAILURE); } if (mkdir(argv[1]) == -1) { … | |
Re: [quote=isaacmacdonald;254410]If sum is declared as [B]double[/B][/quote] Why would you declare sum as double in first place? You can use long and it's variations. [quote=isaacmacdonald;254410]sum is declared as an [B]int, [/B]for the same range it reports -1270505460.[/quote] If int( or any other type) cannot accomodate the data then results are unpredictable. | |
Re: Look into [url=http://www.cplusplus.com/ref/cstdio/sscanf.html]sscanf()[/url] | |
Re: You can implement deadlock related algorithms. I think that'll be interesting. | |
Re: [quote=Ajay Raj;252911]Predict the output of the following code: #include < IOSTREAM > [/quote] After removing spaces the header will work as long as you are working on windows which has case-insensitive file system. But, with a cross-platform compiler, usually, case matters. | |
Re: Compile your code in strict mode. I guess it should be error. Anyways return value in C on x86 is generally [inlinecode]eax[/inlinecode], where the result of the last calculation often happens to be placed. Maybe that's why you are seeing this result. | |
Re: [quote=Anonymusius;253177]Try using an global variable instead of passing one[/quote] Ssshhhhh... | |
Re: Add this before switch [code]char letter; cin>>letter;[/code] | |
Re: This might help [url=http://www-db.stanford.edu/~ullman/fcdb/oracle/or-proc.html#overview]Pro*C[/url] | |
Re: fflush dosn't work for input streams and I think it's [inlinecode]system("cls");[/inlinecode] instead of [inlinecode]system("clear");[/inlinecode] | |
Re: The code is fine and should work. Try rebuilding solution. | |
Re: Look up [inlinecode]c_str()[/inlinecode] function. | |
Re: Look in [url=http://www.cplusplus.com/ref/iostream/iomanip/setprecision.html]setprecision manipulator[/url] | |
Re: Did you tried serching google first? [url]http://www.google.co.in/search?q=Null+Pointer+Assignment&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-US:official[/url] | |
Re: Why would compiller give an error? That's a valid program. | |
Re: I think you can use [inlinecode]shifting[/inlinecode] and [inlinecode]bitwise[/inlinecode] operators. | |
Re: dsraju, there's no such thing as far in ANSI C. I guess you are still using ancient compilers. It's time to move ahead. | |
Re: [quote=linq;251820]DO you really think I should use VC2005, I mean, compared to the VC++6.0 enterprise version, the free version seemed much less powerful[/quote] Check out the features in VC2005. If they suit your requirements then download it. If you are not so fussy about using only microsoft products only then … | |
Re: There's already one in code snippet [url]http://www.daniweb.com/code/snippet87.html[/url] Try to learn something from it. | |
Re: [url=http://en.wikipedia.org/wiki/NetBIOS]NetBIOS[/url] | |
Re: You can use istringstream [code]std::istringstream stm; stm.str("3.14159265"); double d; stm >>d;[/code] | |
Re: That depends on the code. | |
Re: Are you talking about [url=http://catb.org/jargon/html/B/bullschildt.html]Herbert Schildt's [I]C - The Complete Reference[/url]?[/I] | |
Re: The Order of Complexity is the measure of how efficient a program is. [url=http://www.daniweb.com/techtalkforums/thread13488.html]Good Link[/url] [URL="http://www.daniweb.com/techtalkforums/thread13488.html"][/URL] | |
Re: 1) You can not return arrays 2) Way you initiliase array was wrong 3) Pass all three arrays 4) You need only single for loop inside compare function. 5) Compare don't need to return anything. Address of array is passed so changes will be seen back. You should something like … | |
Re: Nice tutorial. I guess it's from one of the Mod's. [url]http://www.shobadobs.com/tuts/big_o.html[/url] | |
Re: Why do you think we will give you that? Read announcement of forum. | |
The End.