Skip to main content
0 online
theremin Jul 26, 2006

This following program compiles w/o errors, but it's not running when I try to run it. The screen just flinches. #include <cstdlib> #include <iostream> using namespace std; ...

iwz Jul 26, 2006

oof, this isn't for #1 is it? what is your goal in that first for loop? it's creating some pretty weird numbers in the array

theremin Jul 26, 2006

Totally separate program. Should've said that. Sorry. Funnily enough, I don't even know the goal of it. Just wanna know what it outputs. But it's not running. And there's not even any er...

deanh77 deanh77Founder

why don't you try changing this:
for (count = 0; count < 5; count++)
cout << alpha[count] << " ";

to:

for (count = 0; count < 5; count++) {
cout << alpha[count] << " ";
}

I know in java you can do the first, but I'm not sure if it works the same in C, anyway, give it a shot. (My C is really really rusty)

Welcome Back to eZabel

It's been a while. Here's what's new.

eZabel Lore

A complete history of our community — stats, Hall of Fame, legendary threads, and more.

View the Lore →

Everything Preserved

All 225,969 pieces of content from 2000–2014 are here — forums, messages, journals, photos, polls, and events.

💎

Gems

Spot something you love — a legendary comment, a classic thread, a great photo? Log in and click the diamond icon to mark it as a Gem. Add a note about why it's special. The best stuff surfaces on the Gems page.