4,439 Posted Topics
Re: Selectionsort looks more like a bubblesort to me. The swap? in your if-statement should be in braces{} I would declare my variables out of the for-loop. What is temp doing? | |
Re: Perhaps you should try [url]http://www.deitel.com/ResourceCenters/Programming/ProgrammingProjects/CProgrammingProjects/tabid/772/Default.aspx[/url] | |
Re: MOV AL, 2 ; AL = 2 ADD AL, 1 ; AL = 3 RET What is your problem with that? | |
Re: The same question is on the thread : [B]Report from two separate excels using c# [/B] How many of these same questions are you going to ask? I talked to the surgeon who gave me a new kidney a few months ago that he performed a miracle of some sort. … | |
Re: If you don't know it already, start a course in trigonometry. It might help. | |
Re: Thanks for the recipes! But [B]what [/B]do you really want to do? I don't understand your question very well. Have you tried something for yourself in C? I like to know. | |
Re: Line 14 : What do you think the value of [B]i[/B] is? If I where the compiler I would not know! | |
Re: Why not try this site : [url]http://www.factoring-polynomials.com/[/url] See how it's done and translate that to C++. | |
Re: Perhaps you should define a double variable like [B]double p;[/B], then do [B]p= pow(Ex,Ey)[/B] and [B]cout << p[/B]? | |
Re: I believe the syntax is [B]retVal=rdr.GetSqlInt64(column);[/B](column is zero based.) retVal is of type SqlInt64 and it should have a ToStringmethod(have not tested that) so it can be assigned to your textbox. | |
Re: Do you want to multiply numbers or do you want to replace the x in your inputfunction with a value? | |
| |
| |
Re: Refresh your knowledge about a for loop and how it actually works. | |
Re: I am not a specialist but you could find info on MSDN. Try for example [url]http://msdn.microsoft.com/en-us/library/ms839381.aspx[/url] | |
Re: What has [B]doing [/B]the constant e to do with your algorithm for calculating it? [B]Did [/B]you already [B]do [/B]factorials? It is always a good thing to split up a problem in a smaller one. So I should first make a function to calculate factorials and use that function to calculate … | |
Re: Look up the MSDN section in visual studio via the Help menu. | |
Re: Maybe the info on this site is helpfull : [url]http://it.toolbox.com/wiki/index.php/Automatically_detect_hardware_using_an_older_version_of_Windows[/url] | |
Re: I think it's more a matter of style. I prefer to use if always, but if you have a short condition, with short variable names, go ahead with the ?-syntax(see the example by Alex Edwards above) Internally I think both are translated to the same branch instructions, so it will … | |
Re: 1) find yourself a little project to program 2) program it 3) sooner than later you will understand [B]"the fundamentals of programming, the basic laws."[/B] | |
Re: You could try [url]http://www.codeproject.com/script/Jobs/List.aspx[/url] | |
Re: I would first write your function like this : [B]double celcius(double fahrenheit) { //do calculation return result }[/B] Now use the function in a for loop to make your table. | |
Re: No it's not the compilers that are so much different. But the [B]paths [/B]for the textfile will certainly not be the same when working at home or working at school. | |
Re: assing the binary values ??? would not do that if I where you... What you mean by binary values? Do you mean [B]true [/B]or [B]false[/B]? A checkbox has a property Checked which you can set true or false. For example : [B]Mycheckbox.Checked = true;[/B] | |
Re: mKashif what are you doing here? Start your own thread. ansari.wajid : A webbrowsercontrol has a Document property which is a htmlDocument which has a Back- and ForegroundColor property. Hope this helps. | |
Re: [QUOTE]<<"bitte lesen sie vier nummern ein[/QUOTE] a,b,c and what is the fourth number? | |
Re: Dear Thomas, From your post, it seems you are eager to learn C#. That's fine! But for the time being I think it's best to continue your learning proces. Let your imagination work! Start with simple projects on your own. A small game, a little DB with info from friends … | |
Re: Use the scanf function with a conversion specifier. [B]scanf("conversion specifier", variable);[/B] %d means integer %f means floating point munber %c means any character input Example : [B]scanf("%d",i);[/B] The variable i will contain only digits. | |
Re: What do you mean by Quality Centre? What are your hic-ups? | |
Re: [QUOTE] if ((n / 2) > (n % 2)) { //get rid of numbers divisible by 2[/QUOTE] ???? if ((n%2)=0) does it, why making it difficult when it isn't? | |
Re: You do not implement your interface indeed! interface says void show() and you do private void [COLOR="Red"]S[/COLOR]how() . That's not the same! | |
Re: maybe this site will help you out : [url]http://www.nrbook.com/a/bookcpdf/c4-2.pdf[/url] | |
Re: I don't know what your problem is, but I appreciate your efforts. Divide your decimal number by 2. Record the remainder(should be 0 or 1) divide again and record again until your decimal number becomes zero. The record of 0 and 1 digits is your binary number. Do the reverse … | |
Re: Your variable [B]real_root [/B]should be b*b - 4*a*c.(Notice the minus sign) Most of the time we call it a "Discriminant", but hey what's in a name. You might also want to check [url]http://www.daniweb.com/code/snippet980.html[/url] although that's in C#. | |
Re: You can also use a [B]switch case [/B]statement instead of multiple [B]if / else if[/B] Globals are to be avoided at all cost. They can get you in great trouble. In fact OO was partly invented to avoid globals! | |
Re: I have "THE C++ PROGRAMMING LANGUAGE" second edition by Bjarne Stroustrup.(1991) among others. The preface begins with a lovely quote : "The road goes ever on and on" - Bilbo Baggins I will never sell this book! | |
Re: [CODE]main() { int num, i; while(num>1) <----- {[/CODE] What do you think the value of num is where I put the arrow? Most likely it will be zero but you can never be certain about that. Put your scanf function before this while, that way you give num a value. | |
Re: Why do you put buildTrie in an endless while loop??? [B]while(1)[/B] will loop forever !! | |
Re: [QUOTE]You must use a post-test loop for this loop. [/QUOTE] OK use a post-test loop. Where in your question is mentioned that you may not use [B]for[/B], [B]if[/B], [B]break [/B]or whatever at the same time? | |
Re: Try this site, it's free! [url]http://users.ece.utexas.edu/~valvano/embed/toc1.htm[/url] | |
Re: [QUOTE]I have to write a program that would test the member function in a loop to show that the tick member function works correctly. [/QUOTE] Wich member function do you mean to test the tick member function? | |
Re: Wow! That's already quite an accomplishment! What does [B]ifstream [/B]do? What methods does it expose? (hint: look for get...) | |
Re: Why, why, why, would you like to know what someone else is typing and the name of the program he is typing it in???? If you're taking a course in assembly, believe me there are plenty interesting assignments to learn from... ;o) | |
Re: GORT! Why is the outStream opened every time? I may be wrong but I believe once is enough. | |
Re: I am searching for the topic all my life. I still haven't found what I was looking for... Please be more specific in what you really want. | |
Re: An error like [B]undeclared [/B][B]variable [/B]seems obvious to me. Unless you are from Mars and don't understand english, this means that a variable is not declared. What I normally do in such cases is [B]declare [/B]a variable, in your case [B]radius[/B]. Happy programming!!! | |
Re: Zeller counted sat=0, sun=1, mon=2 and so on. Your count is different. |
The End.