4,439 Posted Topics

Member Avatar for needhelpincplus

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?

Member Avatar for Freaky_Chris
0
106
Member Avatar for itsmeabhi_01

Perhaps you should try [url]http://www.deitel.com/ResourceCenters/Programming/ProgrammingProjects/CProgrammingProjects/tabid/772/Default.aspx[/url]

Member Avatar for ddanbe
0
103
Member Avatar for zafirah_bashir

MOV AL, 2 ; AL = 2 ADD AL, 1 ; AL = 3 RET What is your problem with that?

Member Avatar for NotNull
0
127
Member Avatar for Arvinder Sharma

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

Member Avatar for LizR
0
134
Member Avatar for LizR
Member Avatar for extrov

If you don't know it already, start a course in trigonometry. It might help.

Member Avatar for extrov
0
172
Member Avatar for desiman

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.

Member Avatar for ddanbe
0
112
Member Avatar for benda001

Line 14 : What do you think the value of [B]i[/B] is? If I where the compiler I would not know!

Member Avatar for ddanbe
0
85
Member Avatar for AutoC

Why not try this site : [url]http://www.factoring-polynomials.com/[/url] See how it's done and translate that to C++.

Member Avatar for ddanbe
0
111
Member Avatar for gangsta gama

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

Member Avatar for ArkM
0
170
Member Avatar for kapil.tandon

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.

Member Avatar for ddanbe
0
151
Member Avatar for swbuko

Do you want to multiply numbers or do you want to replace the x in your inputfunction with a value?

Member Avatar for skatamatic
0
239
Member Avatar for Rocket452
Member Avatar for paynegm
Member Avatar for ddanbe
0
111
Member Avatar for FallenPaladin
Member Avatar for schmidty169
Member Avatar for LizR
0
109
Member Avatar for Chambox

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]

Member Avatar for jbennet
0
41
Member Avatar for SQ89

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 …

Member Avatar for ddanbe
0
161
Member Avatar for songkok
Member Avatar for ddanbe
0
74
Member Avatar for murderotica

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]

Member Avatar for selvaganapathy
0
180
Member Avatar for Richy321

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 …

Member Avatar for Richy321
0
132
Member Avatar for Levio91

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]

Member Avatar for freudian_slip
0
140
Member Avatar for Jugortha

You could try [url]http://www.codeproject.com/script/Jobs/List.aspx[/url]

Member Avatar for dickersonka
0
75
Member Avatar for Foe89

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.

Member Avatar for DemonGal711
0
393
Member Avatar for DemonGal711

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.

Member Avatar for DemonGal711
0
104
Member Avatar for abbineni

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]

Member Avatar for ddanbe
0
42
Member Avatar for mKashif

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.

Member Avatar for LizR
0
76
Member Avatar for muya08

[QUOTE]<<"bitte lesen sie vier nummern ein[/QUOTE] a,b,c and what is the fourth number?

Member Avatar for Ancient Dragon
0
72
Member Avatar for ThomasBF

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 …

Member Avatar for ThomasBF
0
192
Member Avatar for afromong

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.

Member Avatar for afromong
0
86
Member Avatar for ukTutor
Member Avatar for comrad3

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

Member Avatar for ddanbe
0
156
Member Avatar for polo_coins

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!

Member Avatar for LizR
0
72
Member Avatar for aksshe10
Member Avatar for IrishUpstart

maybe this site will help you out : [url]http://www.nrbook.com/a/bookcpdf/c4-2.pdf[/url]

Member Avatar for devnar
0
104
Member Avatar for henks

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 …

Member Avatar for henks
0
145
Member Avatar for slimjimmer

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

Member Avatar for slimjimmer
0
435
Member Avatar for cam875

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!

Member Avatar for ddanbe
0
163
Member Avatar for chococrack

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!

Member Avatar for jbennet
0
147
Member Avatar for atman

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

Member Avatar for Aia
0
170
Member Avatar for thanatosys

Why do you put buildTrie in an endless while loop??? [B]while(1)[/B] will loop forever !!

Member Avatar for Aia
0
289
Member Avatar for atman

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

Member Avatar for Aia
0
237
Member Avatar for yuvaraj.tr

Try this site, it's free! [url]http://users.ece.utexas.edu/~valvano/embed/toc1.htm[/url]

Member Avatar for yuvaraj.tr
0
64
Member Avatar for andrewama

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

Member Avatar for andrewama
0
285
Member Avatar for biggulps

Wow! That's already quite an accomplishment! What does [B]ifstream [/B]do? What methods does it expose? (hint: look for get...)

Member Avatar for biggulps
0
122
Member Avatar for serkan sendur

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)

Member Avatar for Jugortha
0
155
Member Avatar for kotkata
Member Avatar for ddanbe
0
116
Member Avatar for Kevinle

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.

Member Avatar for Lerner
0
92
Member Avatar for m18

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

Member Avatar for m18
0
147
Member Avatar for kyserthehun
Member Avatar for ddanbe
0
787

The End.