|
-
The Medieval Mod
i forgot to progam C in Visual Studio 6
been a year i used VS6 for a class (that i failed )
i'm taking C again but now it's in borland 3.1 (the DOS version does not want to run in my machine) so i have to run the windows version.
3 reasons i want to use VS6
1-.copy/paste the good old way (ctrl+C, ctrl+V)
2-. i need a bigger window whent the program executes, the borland is to small
3-. very cool when using dual monitor
IIRC you need a 'project'
"Est Solarus Oth Mithas"
My Honor is My Life
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination
-
AMD AthlonXP 2600+ Thoroughbred B @ 200x10.5
Shuttle AN35N nForce2 Ultra 400
2x512MB Kingston PC3200 (3-3-3)
ATI Radeon 9600 Pro
40GB WD ATA-100 8MB cache
Creative 12X DVD Drive
Memorex 52X CD-RW
Running Windows XP Pro
-
The Medieval Mod
Originally posted by Malone
Do you have a question?
how to do something with C, then no
but how to use VS6 C++/C
at school we're using borland, if i take my code to VS6 and run it, it causes errors, and i remember that you need a 'proyect' or something to make it run
"Est Solarus Oth Mithas"
My Honor is My Life
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination
-
Catfish
I would like to make one point: Don't get to attached to one IDE or another. IN the long run you will find that they restrict you more than allowing you to do more things faster. In the short run...VS sure as hell makes using objects easier then a simple text editor.
Create a project...import a source file into it...compile, build, run.
I've never used bordland before....and it's been a while since I've used VS...but isn't there a few things that will work in bordland (code wise) that will not work in VS and vise versa?
-
The Medieval Mod
Originally posted by NitricEster
Create a project...import a source file into it...compile, build, run.
I've never used bordland before....and it's been a while since I've used VS...but isn't there a few things that will work in bordland (code wise) that will not work in VS and vise versa?
yeah that worked, thanks!
today at class, the teacher told use that goto(xy) only works with borland
"Est Solarus Oth Mithas"
My Honor is My Life
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination
-
Hammerhead Shark
Stupid teacher teaching non-standard stuff and with an IDE.
Stay cool
and be somebody's fool this year
-
The Medieval Mod
ok.. what is IDE (beside ide cable)
"Est Solarus Oth Mithas"
My Honor is My Life
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination
-
Hammerhead Shark
IDE = Integrated Development Environment
Basically programs like Visual Studio and Borland. They make it easier to program, but at the expense of actual learning since they sometimes handle some of the work for you.
Stay cool
and be somebody's fool this year
-
The Medieval Mod
so a good way to learn the 'hard way' is to learn the theory how code actually works?
"Est Solarus Oth Mithas"
My Honor is My Life
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination
-
Hammerhead Shark
IMO...
You should learn w/o being dependant on a certain program (just like you probably learned basic math w/o a calculator). If the IDE isn't generating code for you (you are just using it as your text editor), it's ok. If it's writing code for you, you're not gaining experience/knowledge from the work it would have taken to write the code yourself. Also, you waste time learning the program which you may not always use (for example, your transition between VS and Borland).
Stay cool
and be somebody's fool this year
-
The Medieval Mod
can you give an example in how the IDE does the code?
doing if, else, for/while, {,[ array etc all manually (when to close the code, when to open it) is that how you should program?
I'm not getting what you exactlly want to say
Last edited by freedonX; 04-04-2003 at 04:03 PM.
"Est Solarus Oth Mithas"
My Honor is My Life
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination
-
Hammerhead Shark
If you are doing everything manually, then yeah, that's how you should be learning.
Simple example of IDE writing code:
In Visual Studio, click the classes tab.
Add a new classes.
It'll write a bunch of header stuff in the <yourclassname>.h file.
Most of the time if you use the GUI creating capabilities of an IDE, you get tons of code (sometimes really ugly code too).
Stay cool
and be somebody's fool this year
-
The Medieval Mod
so is this what 'true' programming should be like?
a program C done for homework some weeks ago
Just Ignore the Spanish Text
#include<stdio.h>
#include<conio.h>
int tnum,i,x,suma,suml,ntl;
float proml;
long mult=1;
void main(void)
{
clrscr();
printf("\nTotal de numeros: ");
scanf("%d",&tnum);
for(i=1;i<=tnum;i++)
{
printf("\nDa el valor para x%d: ",i);
scanf("%d",&x);
if(x%3==0)
suma=suma+x;
if(x>=50&&x<=100)
mult=mult*x;
if(i%3==0)
{
suml=suml+x;
ntl++;
}
}
if(mult==1)
mult=0;
proml=(float)suml/ntl;
printf("\n\n\tLa suma de los multiplos de 3 es: %d",suma);
printf("\n\n\tLa multiplicaci¢n de los numeros entre 50 y 100 es: %ld",mult);
printf("\n\n\tLa suma de cada tercer valor es: %d\n\tEl promedio de cada tercer valor es: %f",suml,proml);
getch();
}
"Est Solarus Oth Mithas"
My Honor is My Life
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination
-
Hammerhead Shark
Yes, it looks like you are learning how you should be.
Stay cool
and be somebody's fool this year
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|