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);
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.