Cuberite Forum
Learning C++/lua - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Off Topic (https://forum.cuberite.org/forum-9.html)
+--- Forum: Off Topic Discussion (https://forum.cuberite.org/forum-10.html)
+--- Thread: Learning C++/lua (/thread-641.html)

Pages: 1 2 3 4


RE: Learning C++ - NiLSPACE - 12-12-2012

lol i managed to get my configuration program into MC-Server. it works perfect exept that it crashes when the configuration if done.


RE: Learning C++ - xoft - 12-12-2012

It says "failed to start server" right after finishing your configurator, so I'd expect that you either wrote something bad into the settings files, or you forgot to close the files before finishing the configurator, and MCServer thus can't open the files.
Still, I don't understand why you would want the configurator inside MCServer. So it runs everytime you run the server??


RE: Learning C++ - FakeTruth - 12-12-2012

Nice keep going, I see you're learning pretty fast Smile


RE: Learning C++ - NiLSPACE - 12-12-2012

(12-12-2012, 07:39 PM)xoft Wrote: It says "failed to start server" right after finishing your configurator, so I'd expect that you either wrote something bad into the settings files, or you forgot to close the files before finishing the configurator, and MCServer thus can't open the files.
Still, I don't understand why you would want the configurator inside MCServer. So it runs everytime you run the server??

Its just to practise. Smile


RE: Learning C++ - NiLSPACE - 01-22-2013

I made a small console calculator Smile i also finaly know how to include my own library in a project. i kept doing
 #include <Calculateplus.h>
but it had to be
#include "Calculateplus.h"



RE: Learning C++ - NiLSPACE - 01-22-2013

Quote:............................................________
....................................,.-‘”...................``~.,
.............................,.-”...................................“-.,
.........................,/...............................................”:,
.....................,?......................................................\,
.................../...........................................................,}
................./......................................................,:`^`..}
.............../...................................................,:”........./
..............?.....__.........................................:`.........../
............./__.(.....“~-,_..............................,:`........../
.........../(_....”~,_........“~,_....................,:`........_/
..........{.._$;_......”=,_.......“-,_.......,.-~-,},.~”;/....}
...........((.....*~_.......”=-._......“;,,./`..../”............../
...,,,___.\`~,......“~.,....................`.....}............../
............(....`=-,,.......`........................(......;_,,-”
............/.`~,......`-...............................\....../\
.............\`~.*-,.....................................|,./.....\,__
,,_..........}.>-._\...................................|..............`=~-,
.....`=~-,_\_......`\,.................................\
...................`=~-,,.\,...............................\
................................`:,,...........................`\..............__
.....................................`=-,...................,%`>--==``
........................................_\..........._,-%.......`\
...................................,<`.._|_,-&``................`\
it doesn't compile in Visual C++ Sad


RE: Learning C++ - bearbin - 01-22-2013

What's the error? Why don't you put the code on github or something.


RE: Learning C++ - NiLSPACE - 01-22-2013

source + error here:
https://github.com/STRWarrior/Little-Console-Calculator


RE: Learning C++ - FakeTruth - 01-22-2013

#include "Calculateplus.h"
Is using the relative path to the file from the file you included it.

 #include <Calculateplus.h>
Is using the additional "include folders" to locate the file


RE: Learning C++ - NiLSPACE - 01-23-2013

is there a easy way to clear the screen with Microsoft visual? becouse i tried something in dev c++ but then i tried it in Microsoft visual c++ but then i got an error.