3,892 Posted Topics
Re: Please try to search the forum with the required keyword and then post if your query here. Maybe you should look here for solution [URL]http://www.daniweb.com/techtalkforums/thread56763.html[/URL] Just integrate the sleep funtion given there below the display stmt in the while loop and thigs will work out fine for you. | |
Re: Our entire life is a continuous learning process, so be it Miss Dani or you, everyone is a student here. And btw, Welcome to DaniWeb. | |
Re: [quote=Barefootsanders;259430] [code]#include <iostream> #include <cstdlib> #include <cmath> #define pi 3.14159265 using namespace std; template <class T> class circle { public: circle(); circle(T,T,T,T); void populate_classobj(T a1, T b1, T a2, T b2); T radius(); T circumference(); T area(); private: T x1,x2,y1,y2; protected: T distance(); }; //End of class //Function definitions template … | |
Re: [quote=Ancient Dragon;260339]I did not suggest he write to the same file that he's reading. read the sudo-code again please -- "write to [COLOR=red]new[/COLOR] file"[/quote] Actually Mr. WaltP did not direct his comment to you. If you will read the OP recent post: [quote] if i want to write to a … | |
Re: Why not try to get your doubts clarified at the forum specifically meant for QT design: [URL]http://www.qtforum.org/[/URL] | |
Re: You are getting one character as output since you using a container or a variable which can only store a single character (i.e. the char datatype) Use a character array to take in user input and output it using [code] printf ("My string is %s " , my_char_array ) ; … | |
Re: [quote=Inanna;260451]0 doesn't represent a digit.[/quote] Well thats news to me :cheesy: (maybe you wanted to say that 0 doesnt represent true condition ) The description of the function: [quote] The function isdigit() returns non-zero if its argument is a digit between 0 and 9. Otherwise, zero is returned. [/quote] So … | |
Re: Try out this simple code snippet: [code] int main (void) { const int LIMIT = 4 ; int counter_I = 0, counter_J = 0, counter_K = 0 ; int i, j, k ; for ( i = 0; i < LIMIT; ++ i ) { ++ counter_I ; for ( … | |
Re: Welcome to the forum. And i am sure you will get here all the help you need. Just keep posting and keep rockin... | |
Re: [quote=iamthwee;260371]The mind plays tricks on you when you get to your age.[/quote] Uncalled for and in no way relevant to the topic. Please refrain from personal comments Mr. Iamthwee. ![]() | |
Re: Please refrain from ressurecting dead threads. Look at the date of teh previous post before replying. Thread is now closed. | |
Re: Try looking here: [URL]http://www.dspguide.com/ch12.htm[/URL] [URL]http://www.mathtools.net/C_C__/FFT/[/URL] | |
Re: .X files are basically 3d model files which are used in game development. THey store the information about the object or characters polygons and the bones and joints present along with the animation sequences. To open .X files you can use a free tool Blender which is used for manipulating … | |
Re: Maybe something like these: [URL]http://www.microsoft.com/technet/prodtechnol/windows2000serv/technologies/iis/maintain/optimize/c12iis.mspx[/URL] [URL]http://www.codeproject.com/isapi/isapixml.asp[/URL] [URL]http://support.microsoft.com/kb/305313/EN-US/[/URL] Hope it helped bye. | |
Re: Why not use some free web hosting services? [url]www.122mb.com[/url] [url]www.275mb.com[/url] NO hassles good storage capacity. What else can one ask for ? | |
Re: [quote=WaltP;260311]Yeah, where were you guys when I was learning to code? I could have partied more and let [I]you [/I]do my home work for me, too! :rolleyes:[/quote] Bang on target my friend. | |
Re: Hmm too much of these things makes me uneasy. We should pray to god that we are thankful as we are on the brighter side. Whats the point of the technology which doesnt benefit one and all ( i just wanted to post the image of famine in Sudan but... … | |
Re: [quote=mikeallen;259548]I tried to fix the problem by changing the arrays to I tried to call the sort method to sort the array by doing this, [code] sortHand( char const *faceValue ); // Sort the array [/code] but there is still a problem.[/quote] I dont if if its just me but … | |
Wow Miss Dani, now animated avatars for MODS too ( i dont know if this feature was from the start or has been introduced recently since i saw it in Mr Salems avatar for the first time). Maybe DaniWeb will become really really really famous some day so that we … | |
Re: If i were being paid by you then it would have made sense to post such thing, since your questions look very similar to the customer requirement phase of software development. So how much you paying Miss Dani for the project ??? | |
Re: Two points about ur program: 1. Dont flush the input stream because it has got undefined behaviour. 2. YOu are assigning the char array "okay" to char pointer stuff but till that point okay has not been defined. Swap the two stmts to avoid the syntax error. | |
Re: 1. X & 1 stands for bitwise AND ing of the unsigned variable X with 1. 2. b++ stands for post incrementing b which means that the value of b is incremented afer it has been used in teh expression. | |
Re: Try something like: [code] int main() { string name = "here is the code" ; char* tmp_name = (char*) malloc ( name.size() ) ; strcpy ( tmp_name,name.c_str() ) ; for (int i = 0; i < strlen (tmp_name); ++i ) { printf ( " \ncharacter %d is %c ", i … | |
Re: [quote=shermaine;259006]Hi, What should i add on so that user can enter the four weights from the keyboard. The program should print an error message is the weights are out of range?[/quote] Try something like: [code] int counter = 1 ; while (counter <= 4 ) { printf ("Enter the weight … | |
Re: Maybe you should start looking at the mobile specific forums of microsoft for moreinformation [URL]http://msdn.microsoft.com/windowsmobile/[/URL] [URL]http://www.windowsdevcenter.com/pub/a/windows/2006/01/24/windows-mobile5-emulators-in-visual-studio-2005.html[/URL] Hope it helped, bye. | |
Re: Application development just appears natural to you when you gain enough knowledge to code an application all by your own accord. So if you still fuzzy on how applications are made then you havent quite reached the mark. Application developement in C++ is no different from the simple programs you … | |
Re: Better not call the "system" functions like [inlinecode] system ("pause")[/inlinecode]. Your job can be very well done using the function [inlinecode]cin.get()[/inlinecode] which does the same function without invoking the system procedures which incur heavy overheads. | |
Re: Yes if your OS is 32 bit windows OS and if it is 64 bit OS then just call it Win64 API :) | |
Re: Why not modify the game in a way that the user posts the word and explains its importance or its disadvantages in life? [B]relentless [/B] Its only after your relentless efforts you gain something in life. | |
Re: For a full blown implementation of Binary trees in OO C++ see here: [URL]http://library.thinkquest.org/C005618/text/binarytrees.htm[/URL] A good way of approaching the problem will be to jot down all the details (like variables, class design, usage etc) which though may seem as a waste of time to you will definately help you … | |
Re: Try looking here: [URL]http://www.coding-zone.co.uk/cpp/cgi/170401cgicpp.shtml[/URL] [URL]http://library.thinkquest.org/16728/content/cgi/cplusplus.html[/URL] [URL]http://www.arachnoid.com/lutusp/cgi.html[/URL] [URL]http://cgi.resourceindex.com/[/URL] Hope it helped, bye. | |
Re: Try using [inlinecode] fgets () [/inlinecode] for reading the contents line by line and try using [inlinecode] strtok () [/inlinecode] for tokenising the c style string. You can find the function prototypes and short examples here: [URL]http://www.cplusplus.com/ref/#libs[/URL] [URL]http://www.cplusplus.com/ref/#libs[/URL] Hope it helped,bye. | |
Re: [quote=nanodano;258760] [code] for (int a = 0; a [COLOR=Red]<=[/COLOR] numbers.size(); a++) cout << numbers[a] << ", "; [/code] [/quote] I think you are in for a bit of surprise ;) | |
Re: Your syntax seems to be incorrect. Visit this link for the correct usage of push_back of vector; [URL]http://www.cppreference.com/cppvector/push_back.html[/URL] | |
Re: Why dont you take the help of the excellent tutorial provided by Mr. Ancient Dragon as an aid in developing your program? If you are expecting someone to give you entire code then that would be err... a wrong assumption. [URL]http://www.crasseux.com/books/ctutorial/Masks.html#Masks[/URL] Anyways try to convert the follwing algo to code: … | |
Re: Try looking here: [URL]http://planetmath.org/encyclopedia/EulerCircuit.html[/URL] [URL]http://www.cut-the-knot.org/Curriculum/Combinatorics/GraphPractice.shtml[/URL] | |
I see a new feature has been added called member certificates, is it just for fun or does it have some purpose or use ? Just curious (programmer need to be curious, dont they :mrgreen:) Waiting for your explanation, thanks. | |
Re: OpenGL is just an API (application programming interface) which is used for plotting points, lines and doing much more complicated 2d and 3d stuff. If you know C and C++ coding in OpenGL should be a piece of cake. You just need to use the inbuilt OpenGL funtions. IF you … | |
Re: Yeah post your effort here and then maybe we would be able to help you out, just asking for code here would not fetch much help. | |
Re: Look at the sticky at the top of the forums "Starting C" which will be enough to get you strted with. | |
Re: [quote=CurtisBridges;258423][COLOR=#008000] [/COLOR][code] void BubbleSort(char arrNames[ARRAY_SIZE][25], char Size) { char Hold[25]; for(int Pass = 1; Pass < Size; Pass++) { for(int i = 0; i < Size - 1; i++) { if(strcmp(arrNames[i], arrNames[i + 1]) < 0) { strcpy(Hold, arrNames[i]); strcpy(arrNames[i], arrNames [i + 1]); strcpy(arrNames[i + 1], Hold); } } … | |
Re: [quote=ajinzo;258424]:!: I'm very new to programing, been trying to write this coke machine program. Can anybody help me. [code] [COLOR=blue]#include[/COLOR][COLOR=maroon]<iostream>[/COLOR] [COLOR=blue]using[/COLOR][COLOR=#000000] std::cout;[/COLOR] [COLOR=blue]using[/COLOR][COLOR=#000000] std::cin;[/COLOR] [COLOR=blue]using[/COLOR][COLOR=#000000] std::endl;[/COLOR] [COLOR=blue]int[/COLOR][COLOR=#000000] getcoins ()[/COLOR] [COLOR=#000000]{[/COLOR] [COLOR=blue]int[/COLOR][COLOR=#000000] total = 0, number;[/COLOR] [COLOR=#000000] cout << [/COLOR][COLOR=maroon]"put in coins: "[/COLOR][COLOR=#000000]; // put in while loop[/COLOR] [COLOR=blue]while[/COLOR][COLOR=#000000] (total < … | |
Re: Try something like: [code] int main() { int continue_session = 1 ; do { // your entire code goes here printf ("do you want to continue (0 if not) ? ") ; scanf ("%d", &continue_session) ; } while ( continue_session != 0 ) ; return 0; } [/code] Just make … | |
Re: No such thing here, only normal notifications. | |
Re: How about looking here and trying to understand the given snippet: [URL="http://www.daniweb.com/techtalkforums/../code/snippet445.html"]http://www.daniweb.com/code/snippet445.html[/URL] Hope it helped, bye. | |
Re: This is the wrong forum for this kind of question and we dont give readymade answers in this forum. Post your effort in correct forum and then maybe you can get the answer to your question. | |
Re: Try out something like: [code] #ifndef SAVINGSACCOUNT1_H #define SAVINGSACCOUNT1_H class SavingsAccount { private: float annualInterestRate; float savingsBalance; public: SavingsAccount() { annualInterestRate = 0; savingsBalance= 0; } SavingsAccount (float my_interest_rate, float my_savings_balance) { annualInterestRate = my_interest_rate ; savingsBalance = my_savings_balance ; } float calculateMonthlyInterest() { float subtotal = 0; float monthlyint … | |
Re: If you want the program to recover the files which you deleted by mistake then you are posting in the wrong forum but still can take a look here: [URL]http://www.pcworld.com/downloads/file/fid,23069-order,1-page,1-c,utilities/description.html[/URL] [URL]http://www.diskinternals.com/[/URL] Hope it helped, bye. | |
Re: What do you exactly mean by reverse postorder? In postorder the value is accessed after accessign all the left and the right children or branches. So if you want reverse then it must mean preorder traversal. [quote] Preorder: 1. Print out the value and save the node or value to … |
The End.