Author Topic: Forum Game: What's wrong with this code? - R2  (Read 1690 times)

this game requires knowledge of all types of programming/scripting language

lets begin:

Java and C this round!


C

Code: [Select]
#include <stdio.h>

int main ()
{

  int a
int  b;
  int c;

 
    a = 10;
  b = 20;
    c = a + b;
 printf(c);
 
  return 0;
}

2 errors remain.
« Last Edit: August 21, 2013, 04:11:02 PM by FourteStreakian² »



it's not torquescript

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.
« Last Edit: August 21, 2013, 02:56:38 PM by Steve5452 »

your a schizophrenic with dissociative identity trying to learn how to code
*slow clap*

System.out.println("op is a friend");

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.

your a schizophrenic with dissociative identity trying to learn how to code
*slow clap*

:( no.

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.

you gettin' there..

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

This game's demographic is so niche, it's gonna be dead within a day.

I don't think hes tricking anyone

The operative word there was "trying".

Code: [Select]
#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;
}



the fact that you made a forum game to show off your mad programming skills with it

C#: You have no proper capitilization for whatever reason, forgetting parenthesis, lots of stuff

fixed:
Code: [Select]
using System;
namespace hi
{
    static void Main()
    {
        Console.WriteLine("forumgame");
        Console.ReadKey();

        return;
    }
}