Details
-
Aboutcurrently stuck on personal projects that never really get finished.
-
Skillsc and c++, there is a difference. löve for power and lots, lots of freedom
-
Github
Joined devRant on 3/11/2018
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
-
omg i feel you. i thought that making software with c++ and sdl2 was hard, then switched to lua and love2d where there are types of values, not variables. just now i feel how much i miss my typed variables... (but still, lua is pretty cool tbh, works great with the c api)
-
@possum and a very clear 7
-
forums
-
yeah, sure. not using brackets for a single statement is idiomatic C.
from my experience it makes it even harder to debug programs and i only remove the brackets if it is the final thing i want to write to save the file size (in a contest usually) -
@electrineer my machine has 2gb of ram and a pentium running, so nooo.
it's just a laptop from the early '10 -
@electrineer after a little more digging and using -v when compiling i found out it was using cygwin version, not the mingw version. i just hope my project will compile on a linux system because i currently do not have access to one yet. (i have to wait til september)
-
@electrineer omg dude. I FUCKING LOVE YOU. (no homo) YOU JUST PUT A SMILE ON MY FACE. IT FINALLY WORKED. thanks dude for helping me and staying for this long . if you ever need me contact me no problem. THAAAANKS!! I CAN BARELY HOLD MY TEARS. THIS PROBLEM WASTED HOURSSS OF MY LIFE. THANK YOUU!
-
@electrineer yes. here is the build log if it helps:
https://pastebin.com/vWMxiTbe
and my dirent.h in my include folder from mingw:
https://pastebin.com/NWFcPDgT -
@electrineer https://github.com/zetef/Smedit
an older side project of mine. i used the dd_name to set the title bar text to the current folder. forgive me for the ugly code formatting and literally everything, i was just begining open source coding.
look at line 163 specifically. dir is a global DIR* structure. -
@endor @Parzi no guys, it just doesn't want to. and i swear to god i have functional programs that worked with this. anyways, do you know how should i do this problem? i just want to output the folder name of the folder path entered as a command line argument.
example:
>pwd
>c/dev/test_folder
>./program .
>test_folder
>./program ..
>dev
i searched all of the internet and no luck. -
@Parzi what do you mean by that? i never heard that term before.
-
@electrineer no, that is for the dirent struct. I want the dd_name for the DIR struct.
actaully what i want is this.
when run the program it should accept an argument and that argument should be a path to a folder. and if you run
. /evalite .
it should output the name of the folder itself, in this case evalite.
or if i run
./evalite ..
it should output 'projects', the name of the folder. currently it outputs . and .. in those cases and I know the way to do this is accessing the variable dd_name because i used this in other projects of mine. -
@devTea about that, you could also do this:
a = (b = a + b) - a
b = b - a -
it would have been funnier if it were like this:
for (i = 0; i < 10; i++)
you know, because you didn't initialize a new variable in the loop -
@anolis talking about C code, if you don't know you have to check for errors then you're fucked
-
@coolguy101 no, i am from romania
-
@coolguy101 @sbiewald i just literally accessed this address: www.site.com/spgm/lang/site.php
there was already the c99 shell on the server, i just accessed it. -
@sbiewald i was as confused as @coolguy101. thanks for sharing!
-
@coolguy101 in the next post i will the other story with how i think i figured out the 'bad' guys
-
@jAsE it's not that i don't like city skylines but my computer couldn't handle it and i am currently happy with NAM installed so that i could get roundabouts and curved streets.
-
i play simcity 4 deluxe soooo
-
@FelisPhasma i actually use linear filtering, the equivalent of setting the render scale quality to 1 but it doesn't seems to work. but this is on my to do
-
that's because you don't thank the train driver... oh wait, wasn't it the bus driver?
-
@ribchinski maybe you are right, i dunno
-
@ribchinski I've done this today. where else did you saw this meme?
-
holy cow that contrast between day and (almost) night!
-
*laughs in C*
-
moe și ție.
-
and the community...
-
here in lua land...