4,439 Posted Topics

Member Avatar for yinfu89

PLEASE! Use CODE tags when you send us code. A while statement is quite simple : [CODE]while (condition) { /*do something*/ }[/CODE] A condition is something you see in an if-statement also. Example : [CODE]/*counting to three*/ int i = 0; while (i<3) { i = i + 1; printf(" …

Member Avatar for ddanbe
0
133
Member Avatar for mina1984

Hey UrClothesRBlue I think mina1984 has left us and gone to Mars so why bother any further...

Member Avatar for ddanbe
0
195
Member Avatar for Alex Edwards

You could write a strlen function in any language but assembly is the fastest you can get, perhaps thats why. The only problem is the way the fastest is implemented on a microprocessor. It makes it less portable. How can you be sure the listing is how the C++ compiler …

Member Avatar for ddanbe
0
1K
Member Avatar for polo_coins

[QUOTE]that reached from two others[/QUOTE] What do you mean by that? C# doesn't support multiple inheritance like C++. And I really don't understand your problem with "sealed". Sealed is as it says : "sealed". Even me, as a non native english speaker can understand the word.

Member Avatar for Jugortha
0
111
Member Avatar for SQ89

Don't mess with the loop variable in a for loop. Copy it and mess with the copy.

Member Avatar for ddanbe
0
155
Member Avatar for gangsta1903

In C# this would be easy. Use jagged arrays! But yeah if you're sticking to C++ you might want to read [url]http://blog.voidnish.com/?p=16[/url]

Member Avatar for ddanbe
0
224
Member Avatar for bahr_alhalak

Hey Baaaaaaaaaaaaaaaaaaaarhhh aaaaaaaaaaaaallaaaaaaaakkaka IIIIIIIIIIIIIIIIIII WWWWWWWWWWWWWWant to beeeeeeeeeeeeeeee YYYYYYYYYYYYoooouur frIIIend What is your problem? Have you any code? Is it working? If it isn't what are the errors you are getting? Tell us we and will help you.

Member Avatar for dickersonka
0
268
Member Avatar for NinjaLink

[CODE=C++]void addFriends (friendType friends[]) { string name; cout<<"Enter 5 friends names (First and Last)"<<endl; for (int i = 0; i<FRIENDS; i++) { cin>>name; } }[/CODE] You got to fill up your [B]friends [/B]array with your [B]name [/B]variable. Btw what if you have less then 5 friends, what if you have …

Member Avatar for ddanbe
0
97
Member Avatar for kalou
Member Avatar for ddanbe
0
51
Member Avatar for gouki2005

I agree with LizR. C# is a C-like language, in C you have only functions, no subroutines. When you want to "simulate" a subroutine in C, C# or C++ you use something like [CODE]void MyStuff() { //do my stuff }[/CODE] When you use functions in a class you call them …

Member Avatar for dickersonka
0
81
Member Avatar for Se7Olutionyg
Member Avatar for ddanbe
0
168
Member Avatar for gp04lch

protected means just that: protected. Only FormParent can use "Modified", nobody else.

Member Avatar for gp04lch
0
71
Member Avatar for mrjoli021

I think you're a bit confused with files here. (Oh man if you knew how confused I still am, somethimes...) A StreamReader is just that, a reader of a stream of bytes. It does not delete something, it has no Delete method. In your case it reads a [B]line [/B]from …

Member Avatar for ddanbe
0
90
Member Avatar for just11

[QUOTE]Q) [B]Draw [/B]an inheritance hierarchy... [/QUOTE] Take a pencil and a piece of paper and DRAW, DRAW, DRAW! By the way, this is an initial phase in any serious programming endeavor : put something on paper first. Don't start to run before you can walk.

Member Avatar for seanhunt
-1
320
Member Avatar for luvingmana

Here is code [CODE] // // previousBtn // this.previousBtn.Location = new System.Drawing.Point(73, 52); this.previousBtn.Name = "previousBtn"; this.previousBtn.Size = new System.Drawing.Size(75, 23); this.previousBtn.TabIndex = 0; this.previousBtn.Text = "Previous"; this.previousBtn.UseVisualStyleBackColor = true; // // nextBtn // this.nextBtn.Location = new System.Drawing.Point(73, 126); this.nextBtn.Name = "nextBtn"; this.nextBtn.Size = new System.Drawing.Size(75, 23); this.nextBtn.TabIndex = 1; …

Member Avatar for Jugortha
0
94
Member Avatar for Tank50

Does your path variable has a value? Normally you do something like this : [CODE]if (dlg.ShowDialog() == DialogResult.OK) { //get your path here } dlg.Dispose();[/CODE]

Member Avatar for LizR
0
118
Member Avatar for deraj8

Try something like: [QUOTE]string query ="INSERT INTO emptable(Name,Sal) VALUES(aname,asalary)"; SqlCommand cmd = new SqlCommand(query, connection);[/QUOTE] I don't see why you should format your string.

Member Avatar for dickersonka
0
88
Member Avatar for sarriss2
Re: DWM

Show us "the stuff" that's different in C# and C++ and where you seem to have problems with.

Member Avatar for sarriss2
0
223
Member Avatar for cam875

[ICODE]&[/ICODE] is a bitwise AND operator while [ICODE]&&[/ICODE] is a logical AND operator

Member Avatar for cam875
0
110
Member Avatar for StephanJos

You can work with a single file but it has to be in a project. Why is that? You probably ask. Well you might add some other files later(resources, databasefiles, etc.) if you stay with one file OK, but it's handy if you have more files to keep them in …

Member Avatar for tonief
0
163
Member Avatar for jase728

Set n=0. Read your file per character xor it with your key(n). Increment n. If your key is k chars long(n=k) start again with n=0.

Member Avatar for dumparun
0
164
Member Avatar for FaTMollY

You are not smoking some of those funny sigarettes, are you? Please restate your question so that a simple mind like mine can understand what you are trying to say.

Member Avatar for FaTMollY
0
112
Member Avatar for jianna

Could it be that your return statement in the sum-function is in the for-loop? It is indented that way.

Member Avatar for jianna
0
461
Member Avatar for goodmuyis

Maybe try the following: [url]http://www.amazon.com/All-One-Desk-Reference-Dummies/dp/0764517953/ref=sr_1_2?ie=UTF8&s=books&qid=1225027816&sr=8-2[/url]

Member Avatar for ddanbe
0
246
Member Avatar for saidrjdh

I suggest you draw a flow-chart of the things you have to do, distill the variables and actions(functions) from it and start programming. Run your program, if you encounter errors, come back and w'll help you further.

Member Avatar for ddanbe
-1
105
Member Avatar for narayananec1987
Member Avatar for Liszt

You can get a Fontsize property you can not set it. If you want to set it make a new font instead.

Member Avatar for Liszt
0
114
Member Avatar for Barefootsanders

Has nothing to do with whether you start with 0 or 1 in array addressing. In Pascal you could start from 100 if you wanted to do that. Look at your code: [CODE]array[2] = array[1]; array[3] = array[2]; array[1] = result;[/CODE] Now look at this code: [CODE]array[3] = array[2]; array[2] …

Member Avatar for ddanbe
0
115
Member Avatar for bemo55

In your while loop, you never change the choice variable to something else then 1. It is testing for choice==1 or choice==2 so it will keep looping forever.

Member Avatar for ddanbe
0
99
Member Avatar for panpanf

Look at Devin Jenson's Weblog [url]http://blogs.msdn.com/devinj/archive/2005/07/12/438323.aspx[/url] for a discussion on the subject in C#

Member Avatar for ddanbe
0
134
Member Avatar for matejkralik

What version of express are you using? ConfigurationManager should be in the System.Configuration.dll.

Member Avatar for ddanbe
0
141
Member Avatar for sfrider0

[ICODE]while (connectionRead.Peek() > 0)[/ICODE] should be [ICODE]while (connectionRead.Peek() >= 0)[/ICODE] This will probably not help but it's a start. I assume "textOutput" is a textbox. Why don't you rename it to something more usefull like you should do for the "sendText" textbox? Find & Replace is a build in utility …

Member Avatar for sfrider0
0
118
Member Avatar for sfrider0

I think the same. Don't call your textboxes "sendText". Use something like "sendTextTxb" that way you will get less confused.

Member Avatar for ddanbe
0
168
Member Avatar for polo_coins

The only thing you can change for a font in a Consolewindow are colors. For example like this : [ICODE]Console.BackgroundColor = ConsoleColor.DarkCyan; Console.ForegroundColor = ConsoleColor.Red;[/ICODE] Which will give you red letters on a blue background when you use a WriteLine after those calls. (uugheeK!?!) If you really want to get …

Member Avatar for polo_coins
0
166
Member Avatar for sfrider0

Design view is just, well, design. It's making programming a little bit easier. It relieves you of all the boring things like initialising the color, position etc. of a button for instance. The code for that is automatically generated for you during the design process. When your program has got …

Member Avatar for sfrider0
0
110
Member Avatar for rapture
Member Avatar for ddanbe

I started programming in 1980 and I still do, because I love the trills of it:icon_smile: I programmed in BASIC, C, Pascal, Modula-2, C++, etc. Now I am particularly fond of C#, you should also! Check it out!

Member Avatar for ddanbe
0
57
Member Avatar for panpanf

Visit this site : [url]http://oreilly.com/catalog/progcsharp/chapter/ch18.html[/url] It gives you a whole chapter of the book "Programming C#" from O'Reilly books. Hope this helps.

Member Avatar for LizR
0
131
Member Avatar for polo_coins
Member Avatar for ddanbe
0
505

The End.