Tynezz
|
  |
| Joined: 28 Apr 2014 |
| Total Posts: 4945 |
|
|
| 02 Oct 2015 09:40 PM |
| If possible, how can I say like when I click 'Space' it would output [SPACE] instead of the actual ' '(space)? |
|
|
| Report Abuse |
|
|
WebGL3D
|
  |
| Joined: 04 Sep 2013 |
| Total Posts: 28311 |
|
|
| 02 Oct 2015 09:54 PM |
cout << x==' '?"[SPACE]":x << endl;
?
#code print("~ 1Topcop ~ WebGL3D ~ Data3D ~ Purple Squid >") -- R+ |
|
|
| Report Abuse |
|
|
Zakusa
|
  |
| Joined: 16 Feb 2013 |
| Total Posts: 359 |
|
|
| 02 Oct 2015 10:01 PM |
this is roblox lua not c++ and
if (GetAsyncKeyState(VK_SPACE)) { cout << "Space" << endl; } |
|
|
| Report Abuse |
|
|
Tynezz
|
  |
| Joined: 28 Apr 2014 |
| Total Posts: 4945 |
|
| |
|
|
| 02 Oct 2015 11:35 PM |
| @Zakusa People can still ask about other programming languages. |
|
|
| Report Abuse |
|
|
Zakusa
|
  |
| Joined: 16 Feb 2013 |
| Total Posts: 359 |
|
|
| 04 Oct 2015 01:30 AM |
| O ya it says scriptures not roblox scripter |
|
|
| Report Abuse |
|
|
|
| 04 Oct 2015 02:59 AM |
| This level of scripting is WAY out of my boundary's of Roblox Lua. XD |
|
|
| Report Abuse |
|
|
|
| 04 Oct 2015 03:13 AM |
I do OpenGL with Lua and Java and probably moving to C# because I don't want Jar files and be able to manipulate my window, as else I would use LWJGL Display class :/
C++ is soooo lame in the terms of handling stuff, but it does have really great features that I'd like to inherit into my C-root language I am going to create. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 04 Oct 2015 03:17 AM |
'C++ is soooo lame in the terms of handling stuff' uhh, how? |
|
|
| Report Abuse |
|
|
yobo89
|
  |
| Joined: 05 Jun 2010 |
| Total Posts: 2341 |
|
|
| 04 Oct 2015 03:22 AM |
@cody
Your making the right decision moving to C# :)
C# MASTER RACE |
|
|
| Report Abuse |
|
|
|
| 04 Oct 2015 03:26 AM |
| How do i get started with C++ / C# |
|
|
| Report Abuse |
|
|
yobo89
|
  |
| Joined: 05 Jun 2010 |
| Total Posts: 2341 |
|
|
| 04 Oct 2015 03:29 AM |
Download visual studio and start with console applications. Use the wiki and check the API, to work it out. Theres a nice beginner course to c#
https://channel9.msdn.com/Series/C-Sharp-Fundamentals-Development-for-Absolute-Beginners |
|
|
| Report Abuse |
|
|
| |
|
Tynezz
|
  |
| Joined: 28 Apr 2014 |
| Total Posts: 4945 |
|
|
| 04 Oct 2015 01:31 PM |
| I'm pretty sure C# is a windows only thing though |
|
|
| Report Abuse |
|
|
notfruit
|
  |
| Joined: 21 Sep 2012 |
| Total Posts: 1386 |
|
|
| 04 Oct 2015 01:34 PM |
| ^ linux can also run C# w/ Mono |
|
|
| Report Abuse |
|
|
Tynezz
|
  |
| Joined: 28 Apr 2014 |
| Total Posts: 4945 |
|
| |
|
|
| 04 Oct 2015 04:10 PM |
@cnt In a lot of ways, C++ is good. However, in order to achieve what I want, you have to do things I would find useless or lengthy for no reason.
Example:
struct example{ int a, b, c; example(int a, int b, int c) : a(a), b(b), c(c) {
} }
What is nice about this structure: You don't have to do this->a = a; et cetera. You can specify multiple data types in one line. (not a problem)
What is bad about this structure: Too many characters to assign variables to variables in the constructor.
What I would like: struct example{ int a, b, c; example(int a, int b, int c) : a=a, b=b, c=c {
} }
or
struct example{ int a, b, c; example(int a, int b, int c) : params {
} }
@yobo I don't care for namespaces in C# which will be annoying. I might just adopt using structs, while not touching classes apart from the entry point.
@apoc 1. Download an IDE 2. YouTube tutorials 3. Refine what you know
@secretid Scripting is not programming. It is coding. |
|
|
| Report Abuse |
|
|
jody7777
|
  |
| Joined: 22 Feb 2009 |
| Total Posts: 1343 |
|
| |
|