Previous 1
Topic: c
rahul00759's photo
Thu 02/28/08 09:50 PM
what is the most important concept in C ?
is it pointers , functions or arrays

pennyg281's photo
Thu 02/28/08 09:52 PM


huh

erowid1's photo
Thu 02/28/08 09:53 PM

what is the most important concept in C ?
is it pointers , functions or arrays
noway wtf!! the answer is ..yes!!drinker

shoes4rhon's photo
Thu 02/28/08 09:54 PM
c is what you mark when you aren't sure there is a high percentage chance the answer will be C

Wonderbread's photo
Thu 02/28/08 09:55 PM
Definately Functions.
You don't want all your code to be in the main part, because its a ***** to find when you've gotta change something.
put each thing that does something different into a different function so when you need to change the part that calculates tax and don't want to mess up the part that calculates the sales price, you don't screw up.
Easy.

erowid1's photo
Thu 02/28/08 09:55 PM

c is what you mark when you aren't sure there is a high percentage chance the answer will be C
so where does x come in?

rahul00759's photo
Thu 02/28/08 10:02 PM

Definately Functions.
You don't want all your code to be in the main part, because its a ***** to find when you've gotta change something.
put each thing that does something different into a different function so when you need to change the part that calculates tax and don't want to mess up the part that calculates the sales price, you don't screw up.
Easy.


iam just a beginner . i have learned till looping. so suppose i have to get this output

A B C D E F
A B C D E
A B C D
A B C
A B
A
HOW CAN I GET THIS OUPUT USING LOOP STATEMENTS

Wonderbread's photo
Thu 02/28/08 10:06 PM
Its been forever since i've programmed man, all i can suggest is using a counter, and many many many lines of code.

rahul00759's photo
Thu 02/28/08 10:08 PM

Its been forever since i've programmed man, all i can suggest is using a counter, and many many many lines of code.


OK I WILL TRY

curios789's photo
Thu 02/28/08 10:38 PM
Couldn't you use an array/loop?

no photo
Fri 02/29/08 10:49 PM
I'm not a C programmer, but I can give you the concept.

Character array with values A,B,C,D,E,F as cArray

Then you create a for loop as below

nLoop INT

nLoop = 6
while nLoop > 0
For y = 1 to nLoop
print cArray(y)
next y
print CRLF
nLoop -= nLoop
loop

Lozer's photo
Sat 03/01/08 06:30 AM
Mayn,
I wish I was that smart..
xD

All I can do is HTML
and BBCode. lawlz.
...those A R E different,
right? xD

no photo
Sat 03/01/08 12:16 PM

Mayn,
I wish I was that smart..
xD

All I can do is HTML
and BBCode. lawlz.
...those A R E different,
right? xD


HTML and BBCode aren't really programming languages. Computer programming is mostly a way of thinking. If you can think the right way, you can program. When I started my classes for programming, one of the first questions I was asked was "How do you put a puzzle together". It's not what you know, it's all in how you think. So if you can't program, it's not a sign of you being less intelligent, it's a factor of how you think. You never know, if you haven't tried, you might have the necessary thought patterns to make a good programmer.

rahul00759's photo
Sat 03/01/08 09:35 PM

Couldn't you use an array/loop?


ya i can use arrays but i wnat to make it using loop statments

rahul00759's photo
Sat 03/01/08 09:37 PM

Mayn,
I wish I was that smart..
xD

All I can do is HTML
and BBCode. lawlz.
...those A R E different,
right? xD



what are these?
i have to get this output using C language (with compiler as C turbo)

curios789's photo
Sun 03/02/08 01:25 AM


Couldn't you use an array/loop?


ya i can use arrays but i wnat to make it using loop statments


I'm saying you could use an array, and then cycle through it using loop statements.

rahul00759's photo
Sun 03/02/08 05:17 AM



Couldn't you use an array/loop?


ya i can use arrays but i wnat to make it using loop statments


I'm saying you could use an array, and then cycle through it using loop statements.


ok

no photo
Mon 03/03/08 10:30 AM
Here is the code in C#, this should get you started.

tbTest is a text box on Form1.

string sString = "ABCDEF";

int nLoop = 6;

while (nLoop > 0)
{
tbTest.Text = tbTest.Text + sString.Substring(0, nLoop) + "\r\n";
nLoop -= 1;
}

blueeyedbarbie's photo
Mon 03/03/08 10:31 AM


c is what you mark when you aren't sure there is a high percentage chance the answer will be C
so where does x come in?


sex

AllenAqua's photo
Mon 03/03/08 10:33 AM
uhhh...does this have something to do with ionic pulse warp drive?huh

Previous 1