Share your repls and programming experiences

← Back to all posts
My first c++ program
Thehappysquid (50)

I just learned some c++ I will use switches soon.

Comments
hotnewtop
[deleted]

WOW! This is good @Thehappysquid u wanna join my team? U show promise in it!

Thehappysquid (50)

@FluidCycling it’s not that good, but sure.

firefish (915)

@DynamicSquid Found another squid, Sir. A C++ Squid too.

Thehappysquid (50)

@firefish lol we did a Java collab once

firefish (915)

@Thehappysquid Lord @DynamicSquid doesn't know THAT much Java, unless he followed one of Wuru the UwU's tutorials

Thehappysquid (50)

We did a really bad java text based [email protected]

firefish (915)

@Thehappysquid Java, C#, C++, and C are all very similar, especially the first two.... and C is unfancy C++ (by unfancy I mean no classes and no std namespace)

Thehappysquid (50)

@firefish yes, that’s why I really like c because it is similar to java

firefish (915)

@Thehappysquid Well, C came first in 1974

firefish (915)

@CodeLongAndPros I must have been mixed up because '74 was the first update? What are we up to now... C18? Most people use either C99 or C11...

oignons (237)

@firefish C++20, I haven't even studied the features in that though 😩

Thehappysquid (50)

Wow! This post blew up.

firefish (915)

@DynamicSquid Why are there so many squids though?

firefish (915)

@CodeLongAndPros I mean squid users... If there are 6 squid users per user... aren't squid users also users? THE SQUID PARADOX?

firefish (915)

@CodeLongAndPros Squids are exponential. Yes. But did you take into account... THE PARADOX? (or does the paradox really exist)

firefish (915)

@CodeLongAndPros Rotating the graph does nothing. Time is along the negative y axis instead of x. Just... why?

CodeLongAndPros (1589)

@firefish Because the number of squids now controls time.
I was trying to get two superimposed, but I suck at gimp

firefish (915)

@CodeLongAndPros me staying away from GIMP because I happen to have an ancient version of photoshop but still suck at both

Thehappysquid (50)

@CodeLongAndPros I,found it funny that there were other squids on repl.it. lol

firefish (915)

@CodeLongAndPros

const squid = require("@replit/squids");
// i like nodejs, sorry
CodeLongAndPros (1589)

@firefish #include<replit/squids.h
from replit import squids
import repl.it: squids
%include squids.h

firefish (915)

@CodeLongAndPros KRITA. A.K.A. some other photo editing app i've never heard of before and I had to google what it was

firefish (915)

@CodeLongAndPros Excuse my stupidity but what language are the last two

firefish (915)

@CodeLongAndPros I never knew assembly had an import, probably because the only assembler I'm used to is AT&T GAS

CodeLongAndPros (1589)

@firefish Yeah. Most people like INTEL though.

firefish (915)

@CodeLongAndPros

import { squids } from "https://www.repl.it";
// more js sorry
firefish (915)

@CodeLongAndPros The operands to intel assembler are backwards to me, but again, I'm used to AT&T GAS.

CodeLongAndPros (1589)

@firefish GAS isn't meant for devs, it's meant for GCC though.

firefish (915)

@CodeLongAndPros casually writes assembler then exits VIM and executes { gcc -c main.s -o main.o && ld main.o -o main } && ./main

firefish (915)

@CodeLongAndPros People thing VIM is hard. Once you know it, it's easy.
Don't use nano people, use VIM. (I never have used, or will use nano. That's a promise.)

CodeLongAndPros (1589)

@firefish EMACS is a great web browser

firefish (915)

@CodeLongAndPros Just use Firefox what is your problem

CodeLongAndPros (1589)

@firefish When my ram is too full to run firefox

firefish (915)

@CodeLongAndPros Alright... I'll take that Idea into consideration for the next time my computer's thrashing

CodeLongAndPros (1589)

@firefish It's better than elinks because it can do images. (M-x eww)

firefish (915)

@CodeLongAndPros Please don't tell me you're commenting from that

CodeLongAndPros (1589)

@firefish No Js. I use Firefox Dev Edition

firefish (915)

@CodeLongAndPros I bet you it's powered by wget because wget doesn't support JS

firefish (915)

@CodeLongAndPros Hm... Is wget a client to curl or is curl a client to wget, or neither? I can't remember now

CodeLongAndPros (1589)

@firefish Neither. Curl is a frontend for libcurl.

oignons (237)

@firefish

if(replit == true) {
  squid++;
}
firefish (915)

@oignons You don't need to do that... just if (replit) printf("We have %llu squids", ++squid);