Galahadagent / Java-coding

0 stars 0 forks source link

Why there's c++ instead of Java Tic tac toe file? #4

Closed Galahadagent closed 5 months ago

Galahadagent commented 5 months ago

Title is the issue.

if someone tries to compile the tic tac toe.c++ in a c++ code compiler it will show

ERROR! /tmp/jX8lL8oYYq.cpp:1:1: error: 'import' does not name a type 1 | import java.util.Scanner; | ^~ /tmp/jX8lL8oYYq.cpp:1:1: note: C++20 'import' only available with '-fmodules-ts' /tmp/jX8lL8oYYq.cpp:3:1: error: expected unqualified-id before 'public' 3 | public class TicTacToe { | ^~

=== Code Exited With Errors ===