Skip to content

Instantly share code, notes, and snippets.

View su8's full-sized avatar

su8

  • defunct
View GitHub Profile
@su8
su8 / battleships.cpp
Created March 11, 2025 19:26 — forked from veesa/battleships.cpp
My first C++ programme... Battleships!
#include <iostream>
#include <ctime>
#include <cstdlib>
#include <string>
#include <vector>
using namespace std;
class Boat
{
#include <X11/Xlib.h>
#include <X11/Xutil.h>
int main(int argc, char* argv[])
{
Display* display = XOpenDisplay(NULL);
XVisualInfo vinfo;
XMatchVisualInfo(display, DefaultScreen(display), 32, TrueColor, &vinfo);