#include <stdio.h>int main (){ int aint b; int c; a = 10; b = 20; c = a + b; printf(c); return 0;}2 errors remain.
void area { int x, int y }
void area(int x, int y);
your a schizophrenic with dissociative identity trying to learn how to code*slow clap*
There's no semicolon after b = 5.also, isn't Code: [Select]void area { int x, int y } supposed to be Code: [Select]void area(int x, int y);?i don't really know C++ so yeah.
I get the feeling you're trying to trick people into telling you what's wrong with the code because you can't figure it out yourself.
I don't think hes tricking anyone
#include <iostream>using namespace STD;class square{ int x; int y;public:void area (int, int)} void square::area( int x, int y){x = 3;y = 5;int main();{ cout << square::area; << endl;return 0;}
using System;namespace hi{ static void Main() { Console.WriteLine("forumgame"); Console.ReadKey(); return; }}