This is an archive of a previous version of Sodarace.

Please visit http://sodarace.net for the latest version.

forum  |  »» sodaplay
 
»» forums  »» community discussion forum

subject: Do you want to learn to program in C

357 replies on 24 pages. most recent reply: Tues, Aug 28 10:58 PM by matthew102000

»» back to topic list  

This topic has 357 replies on 24 pages [ « | 1 ... 15 16 17 18 19 20 21 22 23 ... 24  | » ]
»» previous topic   »» next topic  


matthew102000

»» models

Re: Do you want to learn to program in C   posted: 10-May-07 23:48   »» 
Does anybody know where i could get a list of musical notes for the Beep function??? i want to try to write a song.

matt wuz here

cactus2

»» models

Re: Do you want to learn to program in C   posted: 11-May-07 01:18   »» 
The first part of beep is the frequency and must be in integer form.

Here is a site with a simple list of notes nad hteir associated frequnency.

http://www.phy.mtu.edu/~suits/notefreqs.html

Also, it turns out it is /a, not /b.

dail8859

»» models
»» homepage

Re: Do you want to learn to program in C   posted: 11-May-07 06:17   »» 
My friend that did the music for the wheel of fortune game is actually working (and done for the most part) on a program that you can write songs in and it uses the beep function to play them. He has played the song Crazy Train by Ozzy Ozbourne using it. He has also done the William Tell Overature and the Mario them song from the NES system. It has a very usefull GUI but to run the program you must have GTK+ environment installed on your PC to run it. It will play the song and when you are satisfied with it you can write out the song into a C source file and compile it using dev. If some people are interested Ill see if he is willing to release it.

matthew102000

»» models

Re: Do you want to learn to program in C   posted: 11-May-07 23:54   »» 
i meant simple notes like A, B, C, D, D, E, F, G.

that would be verry helpful because that other one confuses me.

matt wuz here

matthew102000

»» models

Re: Do you want to learn to program in C   posted: 11-May-07 23:57   »» 
STDP

OH YAH!!!

i am interested in that dail. sorry if i didnt include that in my last post.

SORRY!!!

matt wuz here

matthew102000

»» models

Re: Do you want to learn to program in C   posted: 13-May-07 04:25   »» 
STTP, but knowbody has posted for a while.

INTRODUCING A NEW CONSEPT. C ART!!!!

#include <stdio.h>
#include <windows.h>
int main (void)
{
printf("---------------\n");
printf("-|===========|-\n");
printf("-|----/|-/|-/|-\n");
printf("-|---//|//|//|-\n");
printf("-|--//-|/-|/-|-\n");
printf("-|-/|-/|-//--|-\n");
printf("-|//|//|//---|-\n");
printf("-|/-|/-|/----|-\n");
printf("-|===========|-\n");
printf("---------------\n");
Sleep(10000);
return 0;
}

just run the program.

matt wuz here

dail8859

»» models
»» homepage

Re: Do you want to learn to program in C   posted: 14-May-07 14:17   »» 
Ill see what i can do with the music program.

Also, I am working on a project. Im sure just about everyone in here would LOVE to make a GUI for their program, but you either dont know how or do not what to go through the tutorial posted a few pages ago. I am working on a program to help you create you own. It will not be anything fancy. It will be able to create dialog boxes like what i did for FLLGv2.0. You will not be able to do tool bars or any thing. So far what i am wanting to do is be able to create buttons, labels, textboxes, list boxes, radio buttons and check boxes, and maybe a few others. It will create the source files and also create a DEV project file. You will just open the DEV file and compile and TADA. It is still a ways from working but ill try to release it as soon as it will create a compilable source file. I plan to do alot with it but it will take a long time. Eventually i hope to be able to drag and drop buttons and labels around like Microsoft Visual whatever.

Ill let you all know how it is coming along.

cactus2

»» models

Re: Do you want to learn to program in C   posted: 14-May-07 21:59   »» 
I know how to make a GUI, I'm just too lazy to.

jackman6

»» models

Re: Do you want to learn to program in C   posted: 14-May-07 22:44   »» 
what is programming in c and how do i do it and how old do u have to be to understand it?

matthew102000

»» models

Re: Do you want to learn to program in C   posted: 14-May-07 23:09   »» 
due to all the pandamonium by dennhassrus...

*bump*

dail8859

»» models
»» homepage

Re: Do you want to learn to program in C   posted: 15-May-07 01:05   »» 
Jackman, go here and down load

http://www.savefile.com/download/608541?PHPSESSID=f3c3bcaa22780ed797356f1679db75cf

to learn C

matthew102000

»» models

Re: Do you want to learn to program in C   posted: 15-May-07 02:21   »» 
Introducing a simple song by me, sort of. at least i programmed it.

Merry Had A Little Lamb:


#include <windows.h>
int main (void)
{
Beep(659.26, 250);
Beep(587.33, 250);
Beep(523.25, 250);
Beep(587.33, 250);
Beep(659.26, 250);
Beep(659.26, 250);
Beep(659.26, 250);
Sleep(250);
Beep(587.33, 250);
Beep(587.33, 250);
Beep(587.33, 250);
Sleep(250);
Beep(659.26, 250);
Beep(783.99, 250);
Beep(783.99, 250);
Sleep(250);
Beep(659.26, 250);
Beep(587.33, 250);
Beep(523.25, 250);
Beep(587.33, 250);
Beep(659.26, 250);
Beep(659.26, 250);
Beep(659.26, 250);
Beep(659.26, 250);
Beep(587.33, 250);
Beep(587.33, 250);
Beep(659.26, 250);
Beep(587.33, 250);
Beep(523.25, 250);
return 0;
}


matt wuz here

jackman6

»» models

Re: Do you want to learn to program in C   posted: 15-May-07 23:39   »» 
wow i could never learn that its too confusing! i only in 6 grade! i thought it would be fun but it too hard. ill try again after college:)

matthew102000

»» models

Re: Do you want to learn to program in C   posted: 15-May-07 23:43   »» 
im only in eigth grade. it took me about two weeks to learn, but after that i just took off. sometimes i still have to experiment by trial and error thogh. and when i dont get something, i just ask here. people are nice enough here to help you out you know.

matt wuz here.

PS.

Feedback On MARY HAD A LITTLE LAMB.

matt wuz here (again)

matthew102000

»» models

Re: Do you want to learn to program in C   posted: 16-May-07 01:30   »» 
is there any way to make the progra show one thing, then, after a period of time, show another thing???

kind of like this...

frame 1

waiting.

frame 2

waiting .

frame 3

waiting .

^that one should have two spaces but the forums dont alow it.

anyway, is there any way i could make it do that???

matt wuz here



This topic has 357 replies on 24 pages [ « | 1 ... 15 16 17 18 19 20 21 22 23 ... 24  | » ]


»» previous topic   »» next topic  

»» back to topic list  »» top of the page  

PLEASE READ THE FORUM GUIDELINES AND ALWAYS PREVIEW TO CHECK MESSAGES BEFORE POSTING...
...Help keep our forums creative and constructive. Thank you.


»» forum home