Jump to content

Anyone Know How to Program in C?


Recommended Posts

program4.jpg

perfect

thanks Brian

-Matt

2005 Dodge Magnum RT
JVC KD-AVX1

2 PPI S580.2

Obsidian Audio ST1 Horn Tweeters

PRV 8MB450s

Audio Legion 3500.1D

2 RE MT 18s

360 ah LiFePO4 Battery
SHCA 2/0

155.2 @ 29 hz



Kicker CVR 15's build
DD 3512e build
Mini T-Line Build
(6) 8s Build
Nightshade 15s Wall Build
Magnum AB XFL 12s Build
Newest Magnum Build

Link to comment
Share on other sites

you could also add another variable just to read in that null character.

Current system:

1997 Blazer - (4) Customer Fi NEO subs with (8) American Bass Elite 2800.1s

Previous systems:

2000 Suburban - (4) BTL 15's and (4) IA 40.1's = 157.7 dB at 37 Hz.

1992 Astro Van - (6) BTL 15's and (6) IA 40.1's = 159.7 dB at 43 Hz.

Link to comment
Share on other sites

program4.jpg

perfect

thanks Brian

did you move that line to the other location? If not, it will error if you type in anything other than m the first time. It needs to be inside that do loop so it kills the new line each time enter is pressed.

Once you get more advanced, there are ways to get rid of that new line character. There are functions that do it for you, or you store the variables as stings instead of characters. You read the string until you see the new line. At that point, the new line is gone and the input is wating for the next character.

C++ is much better for input and output.

Brian

Edited by bkolfo4

Current system:

1997 Blazer - (4) Customer Fi NEO subs with (8) American Bass Elite 2800.1s

Previous systems:

2000 Suburban - (4) BTL 15's and (4) IA 40.1's = 157.7 dB at 37 Hz.

1992 Astro Van - (6) BTL 15's and (6) IA 40.1's = 159.7 dB at 43 Hz.

Link to comment
Share on other sites

Used this when i was 15, and stopped there. only did a calculater, miclock, and this muilty crap that opens the trays..

if its a basic program... go to youtube or google, most likly they'll be a tutorial. thats how i learned

Link to comment
Share on other sites

Brian that second thing you told me to do with scanf does not work

the prgram opens for a second and then closes. does not wait for input

i fucked something up

thanks for the help tho man

Edited by IH8PunkRok

-Matt

2005 Dodge Magnum RT
JVC KD-AVX1

2 PPI S580.2

Obsidian Audio ST1 Horn Tweeters

PRV 8MB450s

Audio Legion 3500.1D

2 RE MT 18s

360 ah LiFePO4 Battery
SHCA 2/0

155.2 @ 29 hz



Kicker CVR 15's build
DD 3512e build
Mini T-Line Build
(6) 8s Build
Nightshade 15s Wall Build
Magnum AB XFL 12s Build
Newest Magnum Build

Link to comment
Share on other sites

Put it back in the original position I told you to put it in (above the do loop) and then see what happens if you type in the wrong letter.

Brian

Current system:

1997 Blazer - (4) Customer Fi NEO subs with (8) American Bass Elite 2800.1s

Previous systems:

2000 Suburban - (4) BTL 15's and (4) IA 40.1's = 157.7 dB at 37 Hz.

1992 Astro Van - (6) BTL 15's and (6) IA 40.1's = 159.7 dB at 43 Hz.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...