Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
-
b3b343777y// never did stuff like that but kk
int accID = stats::totalAccounts++;
gfx::image* avatar = tools::load_avatar_from_uid(accID); -
b3b343777y@linuxer4fun that reminds me of an array I did lately. It was like the following:
std::array<std::array<std::array<my_data_t,size>,size>,size> myData;
It was so horrible to look at I actually never opened that source file again. Yeah, it simply is only a 3D array but i mean... LOOK AT THAT BASTARD -
const int first_ch = (int)(*(reinterpret_cast<const char *>(&data))); // well I recently got to use reinterpret_cast :P
Related Rants
-
xjose97x19Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop.
-
Unskipp24So this happened last night... Gf: my favorite bra is not fitting me anymore Me: get a new one ? Gf: but it ...
-
sam966911Hats off to this lady .... I would have just flipped the machine
Lets all write one line of code without having a goal. Lets see what we will come up with in the end.
Use C++11.
The code has to be correct from a syntax standpoint. Also, no sigsevs, please :P
Ima start with the first line:
#include <iostream>
undefined
c++