4,439 Posted Topics

Member Avatar for bogdanAR

I see a modest effort on your side. That's already something. Why not try it like this : Make a list of primes Print the n first numbers from the list. This is the code to start with, you should be able to complete it. [CODE=csharp]using System; using System.Collections.Generic; using …

Member Avatar for ddanbe
0
126
Member Avatar for papuccino1

Many things could be wrong here. Without some code, I feel like a blind man trying to break an egg with a stick... Btw how is the wife? All well?

Member Avatar for LizR
0
195
Member Avatar for papuccino1

StreamWriter is in essence file IO. So that should not cause that much of a problem. And a VERY BASIC GUIDE to SQL Database? If I had one I would give it. But you alwyas have to set up a connection, sqlcommands(insert,delete,update). It is helpfull if you know what a …

Member Avatar for Shuco
0
136
Member Avatar for it2051229

To find all the combinations of say words of 3 letters from a word of 4 cannot be that difficult. To exclude the "identicals" I would sum their ASCII-char values of a word and test if they are the same.

Member Avatar for ddanbe
0
77
Member Avatar for laki234

The last line <factor> -> <number> | "(" <exp> ")" says that a <factor> is a <number> or a <exp> enclosed in brackets. The line <term> -> <factor> { "*" <factor> | "/" <factor>} means that a <term> is a <factor> followed by zero or more <factor> things which are …

Member Avatar for gbertoli3
0
121
Member Avatar for Basma.A

Do you want to read file or folder names from the C:drive and store them in the TreeNodes of a TreeView control? What have you already coded yourself?

Member Avatar for serkan sendur
0
143
Member Avatar for csharplearner

[QUOTE]why is control in set property executing base class code? [/QUOTE] You told it to do so by calling [B]base[/B] When a method or indexer in this case is marked virtual it [B]can [/B]be overridden it doesn't [B]have [/B]to be overridden. Hope this helps.

Member Avatar for ddanbe
0
80
Member Avatar for Nighthawkspt

If it's a smulation, why use 2 programs? And why not using events? Could you provide a bit of code on what you got so far?

Member Avatar for Nighthawkspt
0
163
Member Avatar for CollegeKid101

[CODE=csharp]public int STR { get { return str; } set { str = strBox.Text; } } [/CODE] This looks like a property to me, but your syntax is not correct do it this way: [CODE=csharp] private string str; public string STR { get { return str; } set { str …

Member Avatar for CollegeKid101
0
89
Member Avatar for pavanbandi

You could start to read [url]http://www.mactech.com/articles/mactech/Vol.15/15.09/PDFIntro/[/url]

Member Avatar for Jugortha
0
132
Member Avatar for DemonGal711

Maybe you get some ideas from Prim's algorithm. Read [url]http://en.wikipedia.org/wiki/Prim%27s_algorithm[/url]

Member Avatar for DemonGal711
0
149
Member Avatar for haven_u

Always tree for loops for this to work: [CODE]for (int i = 0; i < N; i++) for (int j = 0; j < N; j++) for (int k = 0; k < N; k++) C[i][k] += A[i][j] * B[j][k];[/CODE] and I should read very carefull what MozaicFuneral has to …

Member Avatar for ddanbe
0
113
Member Avatar for Csipesz

Do you want to test for inequality or do you want a method to solve it? Testing is easy : use an [B]if [/B]statement For solving I would suggest that you translate in code, how you solve it by hand.

Member Avatar for LizR
0
71
Member Avatar for nidhi89

[QUOTE=Ezzaral]Typed pages or hand-written pages? [/QUOTE] lol Anyone in for a goose feather?

Member Avatar for ddanbe
0
230
Member Avatar for emilio

This might help, although I would not suggest it to the faint of heart... [url]http://www.arstdesign.com/articles/office2007bin.html[/url]

Member Avatar for emilio
0
125
Member Avatar for mr_scooby

case 3: // output = " \tWithdraw"; //UnderConstruction(output); WithDraw(); break; [B]WithDraw [/B]should return something to a "global" variable. I know the compiler should give you an error here, but it doesn't...

Member Avatar for mr_scooby
0
173
Member Avatar for GT2010

You can always use the form load event if you want to do something beforehand `:private void Form1_Load(object sender, EventArgs e)` { //do something before other actions }

Member Avatar for ddanbe
0
101
Member Avatar for ddanbe

Busy writing an infix to postfix converter.(I'm a strange guy. I like to do those things from time to time...) I have a class Expression which is in essence : [CODE=csharp] [StructLayout(LayoutKind.Explicit)] //in c/c++ this is a union public struct Valoper { [FieldOffset(0)] public int Value; [FieldOffset(0)] public Oper Operand; …

Member Avatar for ddanbe
0
249
Member Avatar for andrew13d

I know there are specialized library book applications out there. Maybe you should find out and buy one of those?

Member Avatar for ddanbe
0
70
Member Avatar for Indianblues

You first have to connect to your database, use something like : SqlConnection con = new SqlConnection("<connectionstring>");

Member Avatar for ddanbe
0
308
Member Avatar for BobLewiston

In the pro version you can have a command window with all the needed paths preinstalled in the PATH variable. In the express version you can use the "Create your first application" on the startpage. It opens a window wich contains a link to creating a console application as well. …

Member Avatar for bondo
0
240
Member Avatar for Foe89

Leave out the equal sign in [B]<=[/B] ! Else you are counting from 0 to 25 inclusive, which is 26, not 25.

Member Avatar for ddanbe
0
124
Member Avatar for nlblnx

Check out this site: [url]http://www.dreamincode.net/forums/showtopic33396.htm[/url]

Member Avatar for ddanbe
0
148
Member Avatar for patel_29june

If your DataGrid is bound to a DataTable of a DataSet, you could use the DataTable to get the data. You could also use the CurrentCell structure of the DataGrid control.

Member Avatar for ddanbe
0
31
Member Avatar for Zach101man
Member Avatar for ddanbe
0
104
Member Avatar for f.ben.isaac

Question 2: I am using C#.NET under the same conditions you are using C++.NET. I can write unmanaged code if I want to(why should I do that?), but it is not "native" it is translated into IL an intermediate language. This IL is compiled by the JIT (Just In Time …

Member Avatar for ArkM
0
125
Member Avatar for lich

[QUOTE=Antenka]The || - is short version of |. [/QUOTE] That is not quite true, but I realize at first it was fuzzy for myself also. || is a [B]conditional [/B]OR, it works with booleans : [B]Abool || Bbool[/B], if [B]Abool [/B]is [B]true [/B]it won't look at [B]Bbool[/B]. | is a …

Member Avatar for ddanbe
0
194
Member Avatar for sivak

Let's say you tell me : "I have a boat." The first thing I would ask : "What kind of a boat?" All boats have things in common, so if I wanted a boat class I would make it abstract so that I cannot do [B]boat myboat = new boat();[/B] …

Member Avatar for sivak
0
207
Member Avatar for Batol

I'm just a simple guy trying to solve some questions. I don't know what KNN or ID3 is, could you please refrase your question?

Member Avatar for Batol
0
181
Member Avatar for thangarajforyou

Hey, hey, hey,tangaraforyou, Did you notice? In my signature it states [B]Make love, no war.[/B] The make love part does not mean that is is needed that you have to behave like most rabbits do. It really maens to make love, to be friend. Why do you think you have …

Member Avatar for stultuske
0
397
Member Avatar for papuccino1

Something like : [B]picturebox1.image = imagelist1.Images[currentIndex];[/B] might do the trick. imaglist must contain images of course.

Member Avatar for LizR
0
116
Member Avatar for skatamatic

Also try to read and understand a recursive descent parser : [url]http://en.wikipedia.org/wiki/Recursive_descent_parser[/url]

Member Avatar for skatamatic
0
198
Member Avatar for mjfall01

[QUOTE]i try to read my errors, but no success[/QUOTE] Does this mean you have become blind? If not, consult at least an ophthalmologist. Maybe he/she can help you(with a pair of glasses) so you can read your error messages again.

Member Avatar for William Hemsworth
0
269
Member Avatar for ddanbe

Anyone out there any ideas why this compiles and runs? I'm using Visual C# 2008. [CODE=csharp]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { public enum fluf_value { thegood, thebad, theugly, }; static fluf_value MyFunc() { return fluf_value.theugly; } static void Main(string[] args) { MyFunc(); …

Member Avatar for ddanbe
0
193
Member Avatar for papuccino1

Try this : [url]http://www.codeproject.com/KB/cs/moemeka4.aspx[/url] btw congratulations with your son you must already feel like a proud father!

Member Avatar for vckicks
0
215
Member Avatar for sivak
Re: hi

Put a timestamp field in your table and use a query to get the record with the most recent timestamp.

Member Avatar for dickersonka
0
116
Member Avatar for bcodrin

I assume you can read? Well read : [url]http://www.daniweb.com/forums/announcement8-2.html[/url]

Member Avatar for Denniz
0
93
Member Avatar for saneeha

I don't know if this function exists, but you can always make your own like this: Something like a dir-command in DOS [CODE] using System; using System.IO; class MyProg { static void Main(string[] args) { DirectoryInfo dir = new DirectoryInfo(@"c:\"); FileInfo[] files = dir.GetFiles(); //return files of the c dir …

Member Avatar for bmdeveloper
0
2K
Member Avatar for evilsithgirl

What is the problem? Write a function! int userselection() { cout... cin ... return an int } Do the same with the computerselection...

Member Avatar for ddanbe
0
2K
Member Avatar for ddanbe

I thought it was a simple task at first. Don't ask me why, but I wanted to display a number in it's binary form. Manipulating bits in C# seems a bit(no pun...) harsh. The best I could come up with was : [CODE=csharp]static void Displaybinary( uint i) { const byte …

Member Avatar for ddanbe
0
339
Member Avatar for mathrules

Makefiles have nothing to do with the kind of editor you are using. I gave up makefiles 20 years ago. I suggest you do the same, unless your a diehard then I wish you all the luck. Today there are enough systems where you can do without them.

Member Avatar for mathrules
0
77
Member Avatar for CPPRULZ

| is the bitwise OR operator it means you are performing an OR on 1 bit(0 and 1). This is in contrast with the logical OR operator || which performs his actions on true and false values(booleans) >> is a bitwise right shift operator. In your case the hex value …

Member Avatar for ddanbe
0
329
Member Avatar for jugnu

The 5 digits before have nothing to do with it. When your system is rounding to tenths then xxxx.47.. is rounded to xxxx.5 just as xxxxxx.79.. is rounded to xxxxxx+1. Read also : [url]http://en.wikipedia.org/wiki/Rounding[/url]

Member Avatar for ArkM
0
177
Member Avatar for minas1

[QUOTE]Array indexing has a cleaner syntax[/QUOTE] You said it yourself! So why bother and make your life difficult. When you come back later to your code it will be more easy to understand then if you used pointer arithmetic. If you have a good C++ compiler he would translate both …

Member Avatar for ArkM
0
1K
Member Avatar for Srynx
Member Avatar for Sauron911

This site might help : [url]http://www.cs.plattsburgh.edu/~salvador/csc453/projects/project1/html/dec2bin_demo1.html[/url] Happy programming!

Member Avatar for WaltP
0
90
Member Avatar for shankhs

Have you read : [url]http://en.wikipedia.org/wiki/Knapsack_problem[/url] ? [QUOTE]so i need to sort) I am not able to do so.Please help me out.[/QUOTE] Why are you not able to do so? Please explain.

Member Avatar for ArkM
0
164
Member Avatar for smart_pc

C and assembly can make it easier to implement an OS, but in the end it's all machine code :0000101010100000100010100101010101010000011111010101001....

Member Avatar for ArkM
0
108
Member Avatar for lilnedy

Why 5 classes? Think about how you would structure your assignment. Draw something on paper. And you must look harder on internet, it took me 2 secs to find this [url]http://www.bloodshed.net/c/index.html[/url] and ther is more! Just make the effort of doing it. Happy programming!

Member Avatar for VernonDozier
0
109
Member Avatar for dtaylor01

I assume the numbers are x and y? You set them to zero and then you do an if saying if(0<0) then... Do you think this can work? First cin x and cin y then call a function say int GCD(x,y) to compute your gcd and cout that. And btw …

Member Avatar for mrboolf
0
79

The End.