This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const {app, BrowserWindow} = require('electron') | |
function createWindow () { | |
// Create the browser window. | |
const mainWindow = new BrowserWindow({ | |
width: 800, | |
height: 600, | |
webPreferences: { | |
nodeIntegration: true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
g++ ex1.c -o simp | |
g++ ex.c | |
./a.out & # Run the two C programs simultaneously | |
./simp | |
A=$? # Store return status of ex1.c | |
PID=$! # Store Process ID of the program going on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <bits/stdc++.h> | |
#include <string.h> | |
int main(){ | |
int x = 2, y = 2, dir = 6, tok = 0, nxtsig = 5; | |
// Don't get confused by the variable names. The data file is in this format -> x,y,dir,tok,nxtsig | |
char init[100]; | |
snprintf(init, sizeof(init), "%d\\,%d\\,%d.*", x, y, dir); | |
char newda[100]; |