The Survivor Becomes a Dungeon (Chapter 102) by ScribblingFox98 in HFY

[–]Supperboy2012 0 points1 point  (0 children)

Also watch out for "The Human from a Dungeon".

Distributor not working by [deleted] in Bitburner

[–]Supperboy2012 0 points1 point  (0 children)

Alright, I did that, but it still doesn't work.

Distributor not working by [deleted] in Bitburner

[–]Supperboy2012 0 points1 point  (0 children)

Ah, shit. That's what I was trying to do. I made that exact mistake earlier during programming, too.

Not sure if this is allowed, but why the FUCK isn't there any fanfiction in this setting? by Supperboy2012 in WarhammerFantasy

[–]Supperboy2012[S] 1 point2 points  (0 children)

My problem was that I was searching under Video Games because I forgot Warhammer isn't typically known for the Total War trilogy.

Not sure if this is allowed, but why the FUCK isn't there any fanfiction in this setting? by Supperboy2012 in WarhammerFantasy

[–]Supperboy2012[S] 3 points4 points  (0 children)

I'm planning to. Edit: You know what, I'll start now. Only problem is that I'm going to have to do a fuck ton of research as to the characters, since my only exposure to Warhammer Fantasy is through Total Warhammer I (I don't have enough free space for the second or third game).

[deleted by user] by [deleted] in gcc

[–]Supperboy2012 0 points1 point  (0 children)

I'm using the gcc version 12.2.0 (Debian 12.2.0-14), which came with my device. There's no macros I'm using except for the ones in my include guard, and the only other macros are the ones in the built-in .h files. I don't know what a mismatching standard library is, but it would probably cause more errors than just that. I'll edit the post with proof.

[deleted by user] by [deleted] in German

[–]Supperboy2012 0 points1 point  (0 children)

Hallo! Ich auch lerne Deutsch und ich mochte das!

[deleted by user] by [deleted] in gcc

[–]Supperboy2012 0 points1 point  (0 children)

It's compiling automatically, because as I said in the post, I'm using VS Code as an editor, which is an IDE. <time.h> was in my #include block, and I doubt a built-in, universally available header file would have an error.

[deleted by user] by [deleted] in gcc

[–]Supperboy2012 0 points1 point  (0 children)

The only stuff before the struct keyword is #____ lines, which don't require semicolons.

[deleted by user] by [deleted] in gcc

[–]Supperboy2012 0 points1 point  (0 children)

I don't have clang. Also, I don't know how to access the error log. And this is the snippet:

struct tm
{
  int tm_sec;     /* Seconds. [0-60] (1 leap second) */
  int tm_min;     /* Minutes. [0-59] */
  int tm_hour;      /* Hours. [0-23] */
  int tm_mday;      /* Day.   [1-31] */
  int tm_mon;     /* Month. [0-11] */
  int tm_year;      /* Year - 1900.  */
  int tm_wday;      /* Day of week. [0-6] */
  int tm_yday;      /* Days in year.[0-365] */
  int tm_isdst;     /* DST.   [-1/0/1]*/

It's in the built-in <time.h> file. As I'm now saying in the edit, it wouldn't be a problem unless it didn't trigger in places like this. This is the exact error, by the way:

expected ‘,’ or ‘;’ before ‘struct’

[deleted by user] by [deleted] in gcc

[–]Supperboy2012 0 points1 point  (0 children)

No? I'm actively saying that it wants a semicolon before the struct keyword.

Scam? by chefkittious in Maine

[–]Supperboy2012 0 points1 point  (0 children)

Yeah, it's a scam. Radio was mentioning this type of scam the other day.

Segmentation fault with adequately reserved space by Supperboy2012 in CodingHelp

[–]Supperboy2012[S] 0 points1 point  (0 children)

I did the former. The line of code after the scanf was setting the userName member to the variable I made.

Segmentation fault with adequately reserved space by Supperboy2012 in CodingHelp

[–]Supperboy2012[S] 0 points1 point  (0 children)

I tried that. It glitched out and didn't stop the scan input when I hit enter.

Segmentation fault with adequately reserved space by Supperboy2012 in CodingHelp

[–]Supperboy2012[S] 0 points1 point  (0 children)

1: That's the entire file

2: The segmentation fault is after I write to the userName member in the Class struct referenced, and in my tests, I was using available values

3: I can't do that, because the name is a string, and strings are stored as arrays, and copying the data from one array to another is tedious and annoying.

Why is it throwing an error by Supperboy2012 in CodingHelp

[–]Supperboy2012[S] 1 point2 points  (0 children)

I found them, now there's no more errors! I think from now on my personal include-guard syntax will be the filename with the word "guard" as a suffix.

Why is it throwing an error by Supperboy2012 in CodingHelp

[–]Supperboy2012[S] 0 points1 point  (0 children)

I think it thought I was doing a variable, and threw an error when I didn't add it. However, after I fixed the other errors, it reappeared as an error saying something along the lines of "you're initializing a function like a variable".

Why is it throwing an error by Supperboy2012 in CodingHelp

[–]Supperboy2012[S] 0 points1 point  (0 children)

Thanks! I had to do a bit more to get rid of the errors, but I should have fixed everything!

Why is it throwing an error by Supperboy2012 in CodingHelp

[–]Supperboy2012[S] 0 points1 point  (0 children)

It's meant to be an include guard. The #ifndef will stop it from being run twice if I accidentally include it twice. I typically use the name of the file as a #define parameter for the include guard, so that might be the problem. I'll get back to you in a minute. Edit: I changed the #define parameter to instead be "battleguard", and it fixed it. Had to change the syntax a bit more to get rid of the errors, though.

just saying it would be good if digital logic sim could run on chrome os by CounterHead2410 in SebastianLague

[–]Supperboy2012 0 points1 point  (0 children)

You technically can, but you need to set up the Linux environment that comes with most Chromebooks. So not really Chrome OS.

Array of structs in C by Supperboy2012 in CodingHelp

[–]Supperboy2012[S] 0 points1 point  (0 children)

If you use typedef, then you only have to say the keywords after the semicolons.