add a different topic

added a new topic
Last edited on
These are some errors I get as well when i debug it:

Last edited on
..
Last edited on
all it says right now is #include <stdio.h>
This is my second program assignment. So I really have no idea what I am doing. I want this to look simple and I'm sure there is a simpler way to do this. I am going off examples in my book.
Here is a simpler way I started the program:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "stdafx.h"


int main()
{
	int die1; /* first die */
	int die2; /* second die */
	int sum; /* sum of dice */

	die1 = 1 + ( rand() % 6 ); 
	die2 = 1 + ( rand() % 6 );
	sum = die1 + die2;

	return 0;
}
Topic archived. No new replies allowed.