Beginner here

I have been racking my brain for 2 days trying to figure out what I'm doing wrong. I am getting the error: expected unqualified-id before '{' This occurs on line 39. Any ideas on what I'm doing wrong or missing? Thanks in advance.

#include <stdio.h>

using namespace std;
//Main function begins program execution//
int main()
{
int integer1;
int integer2;
int sum;
int product;
int difference;
int quotient;

printf("Enter first integer\n");
scanf("%d", &integer1);

printf("Enter second integer\n");
scanf("%d", &integer2);

sum = integer1 + integer2;
product = integer1 * integer2;
difference = integer1 - integer2;
quotient = integer1 / integer2;

printf("Sum is %d\n", sum);
printf("Product is %d\n", product);
printf("Difference is %d\n", difference);
printf("Quotient is %d\n", quotient);

return 0;
}

#include <iostream>
#include <string>

using namespace std;
//display name, course ID and name, and the instructor's name//

{
cout <<"Russell Cross\n"<< endl;
string name;
cin >> name;
cout <<"INF231 Programming Concepts\n"<< endl;
string Course ID and name;
cin >> Course ID and name;
cout <<"Jennifer Fennewald\n"<< endl;
string Instructor name;
cin >> Instructor name;

return 0;
}
Hi, these are two separate programs, and the second part is another main function. You simply can't put them together in the same file!
Ok, I understand. My assignment asks me to add my name, the course ID and course name, and the instructor's name in the printout using string operation. I thought I could add that into the same program.
Ok, but I don't see how the two programs are linked... One is about arithmetic operations, while the other is about strings. To me, it seems they are quite different and uncorrelated, so they should be two distinct programs.
Thanks once again. This is new to me. I am submitting them as 2 separate programs. I appreciate the help.
Topic archived. No new replies allowed.