3,892 Posted Topics

Member Avatar for jan1024188

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.

Member Avatar for ~s.o.s~
0
119
Member Avatar for arun_kumar_c

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.

Member Avatar for ~s.o.s~
0
2K
Member Avatar for Barefootsanders

[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 …

Member Avatar for Barefootsanders
0
132
Member Avatar for rowly

[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 …

Member Avatar for rowly
0
355
Member Avatar for jan1024188

Why not try to get your doubts clarified at the forum specifically meant for QT design: [URL]http://www.qtforum.org/[/URL]

Member Avatar for jan1024188
0
101
Member Avatar for jan1024188

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 ) ; …

Member Avatar for jan1024188
0
126
Member Avatar for amishosh

[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 …

Member Avatar for ~s.o.s~
0
303
Member Avatar for Laiq Ahmed

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 ( …

Member Avatar for Infarction
0
96
Member Avatar for bryan110

Welcome to the forum. And i am sure you will get here all the help you need. Just keep posting and keep rockin...

Member Avatar for ~s.o.s~
0
35
Member Avatar for sugantha

[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.

Member Avatar for iamthwee
0
95
Member Avatar for TJW

Please refrain from ressurecting dead threads. Look at the date of teh previous post before replying. Thread is now closed.

Member Avatar for ~s.o.s~
1
410
Member Avatar for kaka_shi
Member Avatar for ~s.o.s~
0
75
Member Avatar for Gigs_

.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 …

Member Avatar for ~s.o.s~
0
119
Member Avatar for dev.cplusplus

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.

Member Avatar for dev.cplusplus
0
90
Member Avatar for tefflox

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 ?

Member Avatar for 'Stein
0
70
Member Avatar for phuduz

[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.

Member Avatar for ~s.o.s~
0
102
Member Avatar for Scottg1989
Member Avatar for UrbanKhoja
0
172
Member Avatar for cadmansdafm

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... …

Member Avatar for UrbanKhoja
0
171
Member Avatar for mikeallen

[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 …

Member Avatar for bumsfeld
0
115
Member Avatar for ~s.o.s~

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 …

Member Avatar for ~s.o.s~
0
76
Member Avatar for computerages

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 ???

Member Avatar for Salem
0
274
Member Avatar for kenjutsuka

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.

Member Avatar for Ancient Dragon
0
112
Member Avatar for shermaine

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.

Member Avatar for Grunt
0
76
Member Avatar for tlly

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 …

Member Avatar for WaltP
0
107
Member Avatar for shermaine

[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 …

Member Avatar for vegaseat
0
173
Member Avatar for theUnNown1

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.

Member Avatar for ~s.o.s~
0
91
Member Avatar for Barefootsanders

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 …

Member Avatar for ~s.o.s~
0
113
Member Avatar for LieAfterLie

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.

Member Avatar for LieAfterLie
0
553
Member Avatar for LieAfterLie

Yes if your OS is 32 bit windows OS and if it is 64 bit OS then just call it Win64 API :)

Member Avatar for LieAfterLie
0
106
Member Avatar for UrbanKhoja

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.

Member Avatar for ~s.o.s~
0
91
Member Avatar for zith7400

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 …

Member Avatar for ~s.o.s~
0
269
Member Avatar for nanodano

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.

Member Avatar for ~s.o.s~
0
91
Member Avatar for oRg

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.

Member Avatar for oRg
1
752
Member Avatar for nanodano

[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 ;)

Member Avatar for nanodano
0
130
Member Avatar for tlly

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]

Member Avatar for ~s.o.s~
1
363
Member Avatar for shermaine

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: …

Member Avatar for shermaine
0
98
Member Avatar for shailesh1064

Try looking here: [URL]http://planetmath.org/encyclopedia/EulerCircuit.html[/URL] [URL]http://www.cut-the-knot.org/Curriculum/Combinatorics/GraphPractice.shtml[/URL]

Member Avatar for ~s.o.s~
0
115
Member Avatar for ~s.o.s~

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.

Member Avatar for happygeek
0
117
Member Avatar for jc23

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 …

Member Avatar for jc23
1
622
Member Avatar for saqib

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.

Member Avatar for saqib
0
282
Member Avatar for jan1024188

Look at the sticky at the top of the forums "Starting C" which will be enough to get you strted with.

Member Avatar for andor
0
115
Member Avatar for CurtisBridges

[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); } } …

Member Avatar for ~s.o.s~
0
118
Member Avatar for ajinzo

[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 < …

Member Avatar for ~s.o.s~
0
113
Member Avatar for TravisC555

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 …

Member Avatar for TravisC555
1
181
Member Avatar for Dani
Member Avatar for meriem

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.

Member Avatar for ~s.o.s~
1
352
Member Avatar for scootersays

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.

Member Avatar for ~s.o.s~
0
120
Member Avatar for hoosier23

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 …

Member Avatar for Salem
1
189
Member Avatar for Fatshadow

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.

Member Avatar for Salem
0
1K
Member Avatar for bajanstar

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 …

Member Avatar for Rashakil Fol
1
96

The End.