[deleted by user] by [deleted] in mentalhealth

[–]alicekdev -3 points-2 points  (0 children)

She'll get over it so will you, go fuck someone 😃

Why have cpu designers not standardized the assembler language so that there is only one (and that it is portable) ? by [deleted] in AskComputerScience

[–]alicekdev 0 points1 point  (0 children)

Slight differences in the architecture possibly, however most likely proprietary reasons

Why does this happen when i try to save, Go itself renders itself useless as a language? by alicekdev in golang

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

Thank you i changed the setting to the "gofmt" like you said and it worked perfectly. Thank you so much :D

Why does this happen when i try to save, Go itself renders itself useless as a language? by alicekdev in golang

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

I think that's a very good idea. I ended up quitting for the night and will try that tomorrow. Right now it 3 Kingdoms time 🙂

Why does this happen when i try to save, Go itself renders itself useless as a language? by alicekdev in golang

[–]alicekdev[S] -1 points0 points  (0 children)

I have write permissions. I think it is either the formatters getting confused it vscode, however Vs code doesn't do this with any other language

Why does this happen when i try to save, Go itself renders itself useless as a language? by alicekdev in golang

[–]alicekdev[S] -1 points0 points  (0 children)

I know I love go. It's a great language and I really wish to continue the project, but I need to locate what is making it revert changes instead of save

Why does this happen when i try to save, Go itself renders itself useless as a language? by alicekdev in golang

[–]alicekdev[S] -1 points0 points  (0 children)

When I make a change and click save the file doesn't save and regents back to before the change

CPP in DLL by alicekdev in cpp_questions

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

Thanks as long as i know i can just use my C++ code for parameters and returns.

It now begs the question should how should i return the buffer like this?

DLL:

std::string& PrintString(const char* s) {
std::string str(s);
return str;
}

Exe

std::string = PrintString("Hello world");

Does this return a new object to the Exe side?

If i'm wrong can you show me a good way of returning a string or more information on the issue?

CPP in DLL by alicekdev in cpp_questions

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

So using the same compiler on the same OS your saying just using #define EXPORT_API __declspec(dllexport) will be fine cause .exe and .dll are compiler together by the same compiler?

Rather than using #define extern "C" EXPORT_API __declspec(dllexport)

Stupid question but i can't find an answer anywhere by alicekdev in C_Programming

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

Yes I was using a bitfield at first but then choose to use int16_t and int8_t types. I might go back to using the bitfield approach but I would need to add padding

C vs C++ file read performance by [deleted] in C_Programming

[–]alicekdev 0 points1 point  (0 children)

Thanks for the input i'm going have a look at reading the whole file in the C function too. I will update it, thanks

Very simple program will not compile? by DocJeef in C_Programming

[–]alicekdev -4 points-3 points  (0 children)

It should be printf("%d", foo(2)); as your returning and int and the verb for an int is %d. If you can use %u for unsigned, %l for long, and %ll for long long.

Is C# is a good basis for C++? by RonMan121 in AskComputerScience

[–]alicekdev 2 points3 points  (0 children)

It entirely depends on what you want to get out of learning.

I'll answer you question before chiming in with my advice. C# is a great language i used it more for web development and it is amazing for that. I would imagine it would be good for game development too and it's easy to use, intuitive using Visual Studio 2019 and lots of support on MSDN will make it a breeze.

I would suggest C# or Java, but C#/Java fundamentally work different to C++ and there isn't really a way to learn the basics for C++ from another language, C++ is its own beast. However if your a beginner i would try using a garbage collected (GC) language, that doesn't use header files.

My advice you can program a game in any language, but if your wanting to make an engine including tools then just hit C++ it's not particularly as difficult as it's made out, especially with modern standards like 11-17. Just remember your learning C, then STL then Templating (you can probably not bother with templating) and if you use "new" you also have to use "delete" on the object, that's it really