Click to See Complete Forum and Search --> : i forgot to progam C in Visual Studio 6


freedon
04-01-2003, 05:37 PM
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 :D

IIRC you need a 'project'

Malone
04-02-2003, 02:31 PM
Do you have a question?

freedon
04-02-2003, 03:39 PM
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

NitricEster
04-02-2003, 03:47 PM
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?

freedon
04-02-2003, 04:35 PM
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

EverlastingGod
04-02-2003, 11:28 PM
Stupid teacher teaching non-standard stuff and with an IDE.
:mad:

freedon
04-03-2003, 02:41 PM
ok.. what is IDE (beside ide cable)

EverlastingGod
04-03-2003, 03:09 PM
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.

freedon
04-03-2003, 04:42 PM
so a good way to learn the 'hard way' is to learn the theory how code actually works?

EverlastingGod
04-04-2003, 09:25 AM
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).

freedon
04-04-2003, 03:02 PM
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

EverlastingGod
04-04-2003, 05:07 PM
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).

freedon
04-04-2003, 05:33 PM
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();
}

EverlastingGod
04-07-2003, 08:49 AM
Yes, it looks like you are learning how you should be.