4,439 Posted Topics

Member Avatar for Filipe11

A SUPER-class normally inherits all the methods etc. of his SUB-class. Say you have a class [B]Car [/B]and class [B]Sportscar [/B]which inherits from [B]Car[/B]. If [B]Car [/B]has an engine so will have [B]Sportscar[/B].

Member Avatar for Filipe11
0
98
Member Avatar for Manutebecker

When you mark a method of your class as virtual you give the user of your class the possibility to override that method. If you don't, the metod can't be overridden.

Member Avatar for ddanbe
0
261
Member Avatar for it2051229

Make an array of non overlapping locations. Randomly select from this array.

Member Avatar for LizR
0
137
Member Avatar for shadowrun
Member Avatar for ddanbe
0
86
Member Avatar for bl@ck_d3ath-v2

What do you mean by date converter? Convert a Greorgian date to a Mayan date?Any other date? I don't know unless you would have asked a more specific question. Some code coming from your side would also be handy, don't be shy to send some in. We won't laugh at …

Member Avatar for Salem
0
403
Member Avatar for jeevsmyd

You declared your factorial function in a for loop in main. French people would say : Il faut le faire!

Member Avatar for StuXYZ
0
120
Member Avatar for sid78669

In C# there is no separate preprossesing step like in C or C++. #define looks like in C/C++ but it's not all the same. You can use it for conditional compilation like: #define DEBUG and then #if DEBUG bla bla #else blo blo

Member Avatar for sid78669
0
106
Member Avatar for sid78669

The beauty of C# is that you don't have to worry about that! Forget Deletes,Disposes and destructors! C# has something what is called garbage collection which does most of the work for you. You can not completly igore these things(heavy stuff by the way), but in most cases you can, …

Member Avatar for sid78669
0
5K
Member Avatar for Passiongamer25

Ever heard of Google? Type [B]Selection Sort in C++ [/B]. You'll be amazed what you'll find there.

Member Avatar for ddanbe
0
650
Member Avatar for anbuninja

You might also check [url]http://en.wikiversity.org/wiki/Loops_%28C%2B%2B%29[/url]

Member Avatar for Freaky_Chris
0
105
Member Avatar for lostincpp
Member Avatar for krymsyn

The first thing you did really wrong was not putting your code between tags. It is unreadable as it is now, so helping you becomes a bit difficult...

Member Avatar for krymsyn
0
138
Member Avatar for clb8372

What do you think a driving seat has to do with a close of the door, or a mirror check? You obviously have a car object. And it has a mirror, has that mirror something to do with driving? What about speed, tires,fuel amount,engine? Maybe you need a road object?It …

Member Avatar for ddanbe
0
968
Member Avatar for Ouais

Before you can draw anything on a form you need a Graphics object. In your code it is named [B]formGraphics[/B]. You can't define a Graphics object yourself (the class is sealed) but you can obtain one from the PaintEventArgs class you get from a Paint event handler. Once you have …

Member Avatar for ddanbe
0
240
Member Avatar for Duki

Another .cs file is definitly not the same as a .h file in C++. You don't have to include [B]using System;[/B] in your code, but then you have to write something like [B]System.Console.WriteLine [/B]instead of [B]Console.WriteLine[/B].

Member Avatar for ddanbe
0
119
Member Avatar for Duki
Re: MSIL

[B]more or less the same MSIL [/B]perhaps just means C# and VB can be processed by the same JIT-compiler, but because of differences in the MSIL code there may be differences in executing time.

Member Avatar for jbennet
0
127
Member Avatar for tori10

I find your for-statement a little weird :[B]for (int s=0; s<t, ++s;){[/B] I would write this as [B]for (int s=0; s<t; s++){[/B] Notice the comma has dissappeared and I changed preincrement to postincrement without a ;

Member Avatar for ddanbe
0
127
Member Avatar for DrLod

You could use a PictureBox for that and not load any picture in it. Handle the click event of the PictureBox.

Member Avatar for ddanbe
0
35
Member Avatar for shankhs

The books mentioned by hieuuk are very good, you could also check out [url]http://www.functionx.com/csharp/index.htm[/url]

Member Avatar for Ved_TheOne
0
144
Member Avatar for Nina 4 Ever

You could start to look at [url]http://www.daniweb.com/code/snippet999.html[/url] which is a calculator(with symbol table) I translated and modified from the C++ book by B. Stroustrup!

Member Avatar for Nina 4 Ever
0
360
Member Avatar for mybluehair
Member Avatar for cleber
Member Avatar for schmidty169
Member Avatar for Filipe11
Member Avatar for asifjavaid

I dunno for C++ but when I open an older VC# 2003 application I fall automatically in a conversion wizzard, wich converts to 2005 if it can and wich it usually does. I expect it's the same for C++.

Member Avatar for ddanbe
0
239
Member Avatar for karthi_selva
Member Avatar for karthi_selva
0
175
Member Avatar for sierrasoft

It will cost you more time converting then rebuilding it from scratch, believe me.

Member Avatar for mjuras
0
505
Member Avatar for spanigrahi_situ
Member Avatar for Ian90

You can encrypt any way you like, just as you did is fine. It might give trouble if the ascii code is 254 or 255. Find out some information about an XOR function

Member Avatar for andy_aphale
0
1K
Member Avatar for arulbell

A Datagrid is a form control like a textbox is a form control, so what do you mean? A farpoint is far above my knowledge...

Member Avatar for Salem
0
88
Member Avatar for Filipe11
Member Avatar for GT2010

[QUOTE]if ((dlg.nameText.Length > 5) || (dlg.nameText.Length < 8))[/QUOTE] This is always true!

Member Avatar for LizR
0
154
Member Avatar for Now Then

Perhaps you could look at a code snippet I made : [url]http://www.daniweb.com/code/snippet1015.html[/url]. In the click handler of your add button you could add simular code.

Member Avatar for ddanbe
0
96
Member Avatar for gamer12223

for (int j=0;[COLOR="Red"] j<1[/COLOR]; j++) { cout << "You have tdollars," << " twons," << " tpennies." << endl; [COLOR="Red"]cin >> money[size].outputdata[/COLOR]; } Why j<1? Why cin when there is output? size?

Member Avatar for gamer12223
0
137
Member Avatar for vikashkumar051

x_coord[i] = [COLOR="Red"]x_coord[i[/COLOR]] + side_length * angle + side_length ; y_coord[i] = [COLOR="Red"]y_coord[i] [/COLOR]+ side_length * angle + side_length ; The red vars are used without initialisation, this is not always a good thing to do. Polyhexes have all their points where they should be, so what do you mean …

Member Avatar for StuXYZ
0
144
Member Avatar for FlamingBlade

Perhaps you could try webBrowser1.Navigate(urlstring) instead of webBrowser1.Url.

Member Avatar for FlamingBlade
0
165
Member Avatar for Lardmeister
Member Avatar for sumitk538
Member Avatar for wann100

[QUOTE=wann100]Your sort routine must implement the selection sort algorithm discussed in class. [/QUOTE] This looks like an assignment to test if you paid enough attention in class. For the rest: I couldn't agree more with the advice of Ancient Dragon!

Member Avatar for ddanbe
0
108
Member Avatar for emilio
Member Avatar for cherryteresa

You might observe that each row in the triangle is equal to [B]2[/B] raised to [B]n[/B]. Where n starts at zero. Your example : 2^0+2^1+2^2+2^3=15 I wonder why those binaries always pop up when we talk computer and why Pascal is also a computerlanguage.?.?.?

Member Avatar for cherryteresa
0
293
Member Avatar for benji_k

A quadratic equation has two roots so put them in a [B]struct [/B]and go from there like I did in this code snippet [url]http://www.daniweb.com/code/snippet980.html[/url] ok it's C# but you will be surprised how much C++ is in there. [B]SubfunctionResult [/B]is what mathematicians call a discriminant. Check if it's > 0 …

Member Avatar for benji_k
0
144
Member Avatar for sfrider0

Did you read [url]http://msdn.microsoft.com/en-us/library/system.windows.forms.listviewitem(VS.85).aspx[/url] which I found by typing [B]ListViewItem [/B]into the Search item of the Help menu?

Member Avatar for ddanbe
0
116
Member Avatar for java.netproject
Member Avatar for chortlehoort

If your application is a Windows Forms Application, you could use the Load eventhandler and do whatever you want to do in it.

Member Avatar for LizR
0
73
Member Avatar for ddanbe

I want to open IE from a forms application. A bit like daniweb does it btw.! I have the following in a button click eventhandler: [CODE=csharp]Process MyProcess = new Process(); //string MyPath = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles); MyProcess.StartInfo.Domain = ""; MyProcess.StartInfo.FileName = "iexplore.exe"; //MyPath + "\\iexplore.exe"; MyProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal; MyProcess.StartInfo.CreateNoWindow = false; MyProcess.Start();[/CODE] …

Member Avatar for LizR
0
187
Member Avatar for sivak

Tis is no string reverse, this is a word reverse. Extract the words from the sentence in an array and reverse the array.

Member Avatar for ddanbe
0
56
Member Avatar for richasr1

There is an excellent discussion on an elevator algorithm in D.E.Knuth "The Art of Computer Programming" Vol 1 Fundamental Algorithms. You may also view a short note on [url]http://en.wikiversity.org/wiki/TAoCP:Algorithms[/url]

Member Avatar for ddanbe
0
599
Member Avatar for karthi_selva

You can get the text of the node with the following, but I am not shure if it is that what you want: [CODE=csharp]private void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) { TreeNode selectedNode = e.Node; if (selectedNode.Nodes.Count == 0) //we have no children { Console.WriteLine(selectedNode.Text); } }[/CODE]

Member Avatar for LizR
0
96
Member Avatar for bit-streamer

[QUOTE=bit-streamer]The whole design on this page imposes the need of buying at least a wider 20'' or 21'' display to see everything.[/QUOTE] Hi bit-streamer, I don't know what system you are using, but I have a MacBook Pro 15'' with Vista installed(besides OS X) and I have no problems what …

Member Avatar for ddanbe
0
383

The End.