When running the program the compiler exits

March 9, 2011 at 06:14:18
Specs: Windows XP
I don't know whats the problem with my code. The compiler I'm using is Borland c++ v5.5
One time it said "Invalid breakpoints found" and has the linker warning "No module specified"
This is the 1st time this happened when I ran a program. Thanks in advance.
So here's the code:

[code]
#include <conio.h>
#include <stdlib.h>
#include <stdio.h>
int n,h;
int main() {


int bingocol[5];
int bingorow[20];
int x,z;
for (x=0;x<=4;x++)
{
bingocol[x] = rand()%15+1;
if(bingocol[x] == bingocol[x-1])
{
bingocol[x] = rand()%15+1;
}
for (z=0+n;z<=3+n;x++)
{
bingorow[z] = rand()%30+1+h;
if(bingorow[z] == bingorow[x-1])
{
bingorow[z] = rand()%30+h+1;

if(bingorow[z] < 30+h)
{
bingorow[x] = rand()%30+h+1;
}
}
}
n=n+4;
h=h+15;
}
printf("%d%d%d%d%d",bingocol[0],bingocol[1],bingocol[2],bingocol[3],bingocol[4]);

getch();
}
[/code]


See More: When running the program the compiler exits

Report •


#1
March 9, 2011 at 18:37:48
Check your IDE's documentation on breakpoints. Specifically, how to clear them.

How To Ask Questions The Smart Way


Report •

#2
March 10, 2011 at 05:14:48
Um what is an IDE and where do I get that documentation? And what really is the error? Sorry I'm quite new to this kind of stuff.

Report •

#3
March 10, 2011 at 10:02:57
Presumably, the IDE is what you're using to write the source code. Unless you're using some other, generic text editor to write code. If it isn't an IDE, you really should consider one. Visual Studio Express is probably my favorite. Code::Blocks is good if you want something lighter weight.

As for documentation, if it's not provided with your IDE/complier, I'd try Google. It might be a little difficult to find anything, the complier is over 10 years old and (as far as I can tell) abandoned by its parent company, but I'm sure you'll find something if you dig hard enough.

How To Ask Questions The Smart Way


Report •

Related Solutions


Ask Question