+ 2

system.h / windows.h

is it possible to add and use libraries such as system.h or windows.h here ?

19th Jul 2016, 12:54 PM
Jetset Willy
Jetset Willy - avatar
11 Respostas
+ 12
About system.h I can't test it because with the test I mentioned it's clear sololearn code playground server is Windows 2012 R2 Datacenter edition ! (Found out from my other c# code!) I think for system.h you need a linux machine.
9th Oct 2017, 7:03 AM
Developer
+ 10
I have tested it and the answer is YES. You can include Windows.h and use whatever you want. Call Windows API, etc I wrote a code in my code playground so you can see how it retrieves the drive type of SoloLearn Code Playground server. And SoloLearn doesn't block using Windows.h
9th Oct 2017, 6:55 AM
Developer
+ 7
@Jetset please write a code. It helps to understand better. Thanks.
29th Jan 2018, 7:50 PM
Developer
+ 5
You mean Windows Timer API?
28th Jan 2018, 2:45 PM
Developer
+ 4
Ah! interesting. I'll look into it. unfortunately you can't use Timers here in Sololearn. Thanks.
9th Oct 2017, 8:52 AM
Jetset Willy
Jetset Willy - avatar
+ 3
Any timer ! because Solo is not realtime.
29th Jan 2018, 7:44 PM
Jetset Willy
Jetset Willy - avatar
+ 1
You could just write e very short test program and include them, you know. Nevertheless, I doubt anyone can include them here.
19th Jul 2016, 1:12 PM
Stefan
Stefan - avatar
+ 1
I don't know ,just asked! I'm looking for similar library for android or something that works here. btw thanks for the answer.
19th Jul 2016, 11:24 PM
Jetset Willy
Jetset Willy - avatar
+ 1
Alright, sorry if I came off too strong. It was not my intention to "roll over" you. I pointed out some stuff I thought to be obvious but I see that this is not the case for learners in an early stage.
19th Jul 2016, 11:44 PM
Stefan
Stefan - avatar
0
I did and it didn't worked .I hope there is a way to use them .
19th Jul 2016, 11:09 PM
Jetset Willy
Jetset Willy - avatar
0
Why? That would require that the programs here on SoloLearn C++ are executed on a specific operating system. Why would you write code like that on SoloLearn C++? This might give you access to features of the operating system where these programs are run. If I had programmed SoloLearn C++ that would be one of the first things to safely exclude.
19th Jul 2016, 11:14 PM
Stefan
Stefan - avatar