VKs Official Server
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Latest topics
» Omg this server with the website is still alive :o
by Razor Sat Nov 23, 2024 8:26 pm

» [Solved] Help & Support
by VK.Angel.OfDeath Thu Oct 24, 2024 7:02 pm

» [Solved] reset password
by VK.Angel.OfDeath Thu Oct 24, 2024 6:58 pm

» [Accepted] Report - Abanoub^
by VK.Angel.OfDeath Thu Oct 24, 2024 6:42 pm

» [Accepted] Unban appeal - hasan
by D4rKR420R Fri Oct 18, 2024 10:06 pm

» [Solved] Report - BelondiOscar
by SJIsNotHere Fri Oct 11, 2024 1:21 pm

» [Solved] Geogeo - Stats Transfer
by SJIsNotHere Tue Oct 01, 2024 5:50 pm

» [Solved] Kindly Re-solve it
by SJIsNotHere Wed Sep 25, 2024 9:55 am

» [Solved] Geogeo - Stats Transfer
by SJIsNotHere Wed Sep 25, 2024 8:10 am

» Matija_Todorovic returns after 3 years of absence
by UmaR Sun Sep 01, 2024 5:55 am

» [Solved] Signature^-Stats transfer
by UmaR Wed Aug 21, 2024 2:38 pm

» [Denied] Admin Application - MK14
by UmaR Fri Aug 16, 2024 8:44 pm

» [Solved] Reset my password pls
by VK.Angel.OfDeath Wed Aug 14, 2024 6:44 am

» Old member back from the dead
by Neptune Mon Aug 12, 2024 9:39 pm

» Vice War X Gameplay | BadDiamondArtz VCMP
by UmaR Thu Jul 18, 2024 10:00 am

» [Solved] RESET PASSWORD
by UmaR Fri Jul 12, 2024 3:29 pm

» [Solved]Transfer Application - Hazard
by SJIsNotHere Wed Jul 03, 2024 10:56 am

» DARKRAZOR RESPONDE MI MENSAJE!!!
by Veterano789 Wed Jul 03, 2024 1:59 am

» Vice War X: The Starfish Showdown
by =FF=B00M_B00M^ Thu Jun 27, 2024 6:17 pm

» Fatal Force - F2
by Mr.Moon Wed Jun 26, 2024 7:18 am

» Stat Transfer Application - SuFyastiC
by D4rKR420R Tue Jun 04, 2024 10:07 pm

» [Accepted] Unban Appeal
by VK.Angel.OfDeath Sun Mar 31, 2024 8:29 am

» [Solved] Password Reset
by VK.Angel.OfDeath Sat Mar 23, 2024 9:32 pm

» Ramadan Mubarak in Advance
by Shafin Sat Mar 23, 2024 1:52 pm

» Illegal Immigration | Old Memories | 2017
by ilemius Fri Feb 09, 2024 5:25 pm

» VKs and VCMP Previews
by SJIsNotHere Sat Jan 20, 2024 1:51 pm

» The Resurgence 4th Year of Anniversary!
by Ninja Tue Jan 16, 2024 10:30 am

» [Solved]Stats Transfer application - Shado[W]^
by SJIsNotHere Mon Nov 27, 2023 5:06 pm

» Hi to all my good friends
by VK.Angel.OfDeath Sat Nov 18, 2023 9:04 am

» [Closed] Admin Application - F2.Ninja
by VK.Angel.OfDeath Sat Nov 18, 2023 8:49 am

Top posters
ЧК. (8555)
Programming Topic - Official One I_vote_lcapProgramming Topic - Official One I_voting_barProgramming Topic - Official One I_vote_rcap 
VK.Angel.OfDeath (6466)
Programming Topic - Official One I_vote_lcapProgramming Topic - Official One I_voting_barProgramming Topic - Official One I_vote_rcap 
=SdS=KrlozZ... (6433)
Programming Topic - Official One I_vote_lcapProgramming Topic - Official One I_voting_barProgramming Topic - Official One I_vote_rcap 
D4rKR420R (5473)
Programming Topic - Official One I_vote_lcapProgramming Topic - Official One I_voting_barProgramming Topic - Official One I_vote_rcap 
=KF=Thunder^ (5405)
Programming Topic - Official One I_vote_lcapProgramming Topic - Official One I_voting_barProgramming Topic - Official One I_vote_rcap 
Pavonis (5197)
Programming Topic - Official One I_vote_lcapProgramming Topic - Official One I_voting_barProgramming Topic - Official One I_vote_rcap 
SJIsNotHere (4432)
Programming Topic - Official One I_vote_lcapProgramming Topic - Official One I_voting_barProgramming Topic - Official One I_vote_rcap 
Emma (4261)
Programming Topic - Official One I_vote_lcapProgramming Topic - Official One I_voting_barProgramming Topic - Official One I_vote_rcap 
Vipe[R] (3756)
Programming Topic - Official One I_vote_lcapProgramming Topic - Official One I_voting_barProgramming Topic - Official One I_vote_rcap 
47. (3705)
Programming Topic - Official One I_vote_lcapProgramming Topic - Official One I_voting_barProgramming Topic - Official One I_vote_rcap 

Statistics
We have 1978 registered users
The newest registered user is kodaklyve

Our users have posted a total of 217907 messages in 16831 subjects
Top posting users this month
Razor
Programming Topic - Official One I_vote_lcapProgramming Topic - Official One I_voting_barProgramming Topic - Official One I_vote_rcap 
VK.Angel.OfDeath
Programming Topic - Official One I_vote_lcapProgramming Topic - Official One I_voting_barProgramming Topic - Official One I_vote_rcap 

Top posting users this week
No user


Programming Topic - Official One

+4
=SdS=KrlozZ...
Chuck Norris
EK.CrystalBlue
Zurix
8 posters

Go down

Programming Topic - Official One Empty Programming Topic - Official One

Post by Zurix Tue Jan 31, 2017 2:45 pm

Ok hello this topic made for Programmers becuz crys its not good at maths so to be fair we made that topic
Rules
No Spam
No [C# - Squrriel - C++ - PHP] Joking xD
No Stupid Question or Answers Pls
Write the programming language next to the answer
First my Queston
Write a Code to Read HTTP from a site [Write it in C# or VB.net or Jave , no another lang]
Zurix
Zurix
Legendary Member
Legendary Member

Gender : Male
Posts : 1338
Points : 1589
Reputation : -11
Join date : 2016-05-15
Age : 22
Location : Discord

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by EK.CrystalBlue Tue Jan 31, 2017 2:53 pm

C#
Code:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://vkserver.forumotion.com/");
request.AutomaticDecompression = DecompressionMethods.GZip;
HttpWebResponse response = (HttpWebResponse)request.GetResponse()
StreamReader strreader = new StreamReader(new Stream);
return strreader.ReadToEnd();
My question:
What does this print [Squirrel x32]
Code:
print((2147483647 + 1) + "");
EK.CrystalBlue
EK.CrystalBlue
Deputy Chief of the Community
Deputy Chief of the Community

Best christ 15
Homocide detective
Pizza Expert
Posts : 3621
Points : 4218
Reputation : 28
Join date : 2012-10-31
Age : 31
Location : I am CRYSTAL u never found me!!!!!

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by Zurix Tue Jan 31, 2017 2:54 pm

EK.CrystalBlue wrote:C#
Code:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://vkserver.forumotion.com/");
request.AutomaticDecompression = DecompressionMethods.GZip;
HttpWebResponse response = (HttpWebResponse)request.GetResponse()
StreamReader strreader = new StreamReader(new Stream);
return strreader.ReadToEnd();
:v as iam not good at C# but i see it good
let me answer yours
in vb.net
lol it in squrriel :v pls make multilanguage choice :v
Zurix
Zurix
Legendary Member
Legendary Member

Gender : Male
Posts : 1338
Points : 1589
Reputation : -11
Join date : 2016-05-15
Age : 22
Location : Discord

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by EK.CrystalBlue Tue Jan 31, 2017 3:02 pm

Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:C#
Code:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://vkserver.forumotion.com/");
request.AutomaticDecompression = DecompressionMethods.GZip;
HttpWebResponse response = (HttpWebResponse)request.GetResponse()
StreamReader strreader = new StreamReader(new Stream);
return strreader.ReadToEnd();
:v as iam not good at C# but i see it good
let me answer yours
in vb.net
lol it in squrriel :v pls make multilanguage choice :v
No, my question included code, I said that code was in Squirrel. This, btw, could be converted to any x32 language. For example:
Code:
MessageBox.Show((2147483647 + 1).ToString())
VB.Net.
You just need to answer what does that code result in, on console in squirrels case and on a messagebox in that VB.Net conversion I just made above.
EK.CrystalBlue
EK.CrystalBlue
Deputy Chief of the Community
Deputy Chief of the Community

Best christ 15
Homocide detective
Pizza Expert
Posts : 3621
Points : 4218
Reputation : 28
Join date : 2012-10-31
Age : 31
Location : I am CRYSTAL u never found me!!!!!

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by Zurix Tue Jan 31, 2017 3:04 pm

EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:C#
Code:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://vkserver.forumotion.com/");
request.AutomaticDecompression = DecompressionMethods.GZip;
HttpWebResponse response = (HttpWebResponse)request.GetResponse()
StreamReader strreader = new StreamReader(new Stream);
return strreader.ReadToEnd();
:v as iam not good at C# but i see it good
let me answer yours
in vb.net
lol it in squrriel :v pls make multilanguage choice :v
No, my question included code, I said that code was in Squirrel. This, btw, could be converted to any x32 language. For example:
Code:
MessageBox.Show((2147483647 + 1).ToString())
VB.Net.
You just need to answer what does that code result in, on console in squirrels case and on a messagebox in that VB.Net conversion I just made above.
21474836471 because you made the value in String
Mine Now

Write a code that make computer shutdown after 4 seconds [in C# or VB.net]
Zurix
Zurix
Legendary Member
Legendary Member

Gender : Male
Posts : 1338
Points : 1589
Reputation : -11
Join date : 2016-05-15
Age : 22
Location : Discord

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by EK.CrystalBlue Tue Jan 31, 2017 3:06 pm

Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:C#
Code:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://vkserver.forumotion.com/");
request.AutomaticDecompression = DecompressionMethods.GZip;
HttpWebResponse response = (HttpWebResponse)request.GetResponse()
StreamReader strreader = new StreamReader(new Stream);
return strreader.ReadToEnd();
:v as iam not good at C# but i see it good
let me answer yours
in vb.net
lol it in squrriel :v pls make multilanguage choice :v
No, my question included code, I said that code was in Squirrel. This, btw, could be converted to any x32 language. For example:
Code:
MessageBox.Show((2147483647 + 1).ToString())
VB.Net.
You just need to answer what does that code result in, on console in squirrels case and on a messagebox in that VB.Net conversion I just made above.
21474836471 because you made the value in String
Mine Now

Write a code that make computer shutdown after 4 seconds [in C# or VB.net]
!!!
Wrong answer
Btw, the add was between int32s, not strings, since we converted it to string after the operation
EK.CrystalBlue
EK.CrystalBlue
Deputy Chief of the Community
Deputy Chief of the Community

Best christ 15
Homocide detective
Pizza Expert
Posts : 3621
Points : 4218
Reputation : 28
Join date : 2012-10-31
Age : 31
Location : I am CRYSTAL u never found me!!!!!

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by Zurix Tue Jan 31, 2017 3:27 pm

EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:C#
Code:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://vkserver.forumotion.com/");
request.AutomaticDecompression = DecompressionMethods.GZip;
HttpWebResponse response = (HttpWebResponse)request.GetResponse()
StreamReader strreader = new StreamReader(new Stream);
return strreader.ReadToEnd();
:v as iam not good at C# but i see it good
let me answer yours
in vb.net
lol it in squrriel :v pls make multilanguage choice :v
No, my question included code, I said that code was in Squirrel. This, btw, could be converted to any x32 language. For example:
Code:
MessageBox.Show((2147483647 + 1).ToString())
VB.Net.
You just need to answer what does that code result in, on console in squirrels case and on a messagebox in that VB.Net conversion I just made above.
21474836471 because you made the value in String
Mine Now

Write a code that make computer shutdown after 4 seconds [in C# or VB.net]
!!!
Wrong answer
Btw, the add was between int32s, not strings, since we converted it to string after the operation
2147483648 right? :c
btw answer my question is above
Zurix
Zurix
Legendary Member
Legendary Member

Gender : Male
Posts : 1338
Points : 1589
Reputation : -11
Join date : 2016-05-15
Age : 22
Location : Discord

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by EK.CrystalBlue Tue Jan 31, 2017 3:39 pm

Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:C#
Code:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://vkserver.forumotion.com/");
request.AutomaticDecompression = DecompressionMethods.GZip;
HttpWebResponse response = (HttpWebResponse)request.GetResponse()
StreamReader strreader = new StreamReader(new Stream);
return strreader.ReadToEnd();
:v as iam not good at C# but i see it good
let me answer yours
in vb.net
lol it in squrriel :v pls make multilanguage choice :v
No, my question included code, I said that code was in Squirrel. This, btw, could be converted to any x32 language. For example:
Code:
MessageBox.Show((2147483647 + 1).ToString())
VB.Net.
You just need to answer what does that code result in, on console in squirrels case and on a messagebox in that VB.Net conversion I just made above.
21474836471 because you made the value in String
Mine Now

Write a code that make computer shutdown after 4 seconds [in C# or VB.net]
!!!
Wrong answer
Btw, the add was between int32s, not strings, since we converted it to string after the operation
2147483648 right? :c
btw answer my question is above
Still wrong
HINT:
EK.CrystalBlue
EK.CrystalBlue
Deputy Chief of the Community
Deputy Chief of the Community

Best christ 15
Homocide detective
Pizza Expert
Posts : 3621
Points : 4218
Reputation : 28
Join date : 2012-10-31
Age : 31
Location : I am CRYSTAL u never found me!!!!!

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by Zurix Tue Jan 31, 2017 3:41 pm

EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:C#
Code:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://vkserver.forumotion.com/");
request.AutomaticDecompression = DecompressionMethods.GZip;
HttpWebResponse response = (HttpWebResponse)request.GetResponse()
StreamReader strreader = new StreamReader(new Stream);
return strreader.ReadToEnd();
:v as iam not good at C# but i see it good
let me answer yours
in vb.net
lol it in squrriel :v pls make multilanguage choice :v
No, my question included code, I said that code was in Squirrel. This, btw, could be converted to any x32 language. For example:
Code:
MessageBox.Show((2147483647 + 1).ToString())
VB.Net.
You just need to answer what does that code result in, on console in squirrels case and on a messagebox in that VB.Net conversion I just made above.
21474836471 because you made the value in String
Mine Now

Write a code that make computer shutdown after 4 seconds [in C# or VB.net]
!!!
Wrong answer
Btw, the add was between int32s, not strings, since we converted it to string after the operation
2147483648 right? :c
btw answer my question is above
Still wrong
HINT:
i give up make another question :v
Zurix
Zurix
Legendary Member
Legendary Member

Gender : Male
Posts : 1338
Points : 1589
Reputation : -11
Join date : 2016-05-15
Age : 22
Location : Discord

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by EK.CrystalBlue Tue Jan 31, 2017 3:43 pm

Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:C#
Code:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://vkserver.forumotion.com/");
request.AutomaticDecompression = DecompressionMethods.GZip;
HttpWebResponse response = (HttpWebResponse)request.GetResponse()
StreamReader strreader = new StreamReader(new Stream);
return strreader.ReadToEnd();
:v as iam not good at C# but i see it good
let me answer yours
in vb.net
lol it in squrriel :v pls make multilanguage choice :v
No, my question included code, I said that code was in Squirrel. This, btw, could be converted to any x32 language. For example:
Code:
MessageBox.Show((2147483647 + 1).ToString())
VB.Net.
You just need to answer what does that code result in, on console in squirrels case and on a messagebox in that VB.Net conversion I just made above.
21474836471 because you made the value in String
Mine Now

Write a code that make computer shutdown after 4 seconds [in C# or VB.net]
!!!
Wrong answer
Btw, the add was between int32s, not strings, since we converted it to string after the operation
2147483648 right? :c
btw answer my question is above
Still wrong
HINT:
i give up make another question :v
Well... let's wait for angle to do that.
In the meantime...
BIG HINT:
EK.CrystalBlue
EK.CrystalBlue
Deputy Chief of the Community
Deputy Chief of the Community

Best christ 15
Homocide detective
Pizza Expert
Posts : 3621
Points : 4218
Reputation : 28
Join date : 2012-10-31
Age : 31
Location : I am CRYSTAL u never found me!!!!!

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by Chuck Norris Tue Jan 31, 2017 4:05 pm

EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:C#
Code:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://vkserver.forumotion.com/");
request.AutomaticDecompression = DecompressionMethods.GZip;
HttpWebResponse response = (HttpWebResponse)request.GetResponse()
StreamReader strreader = new StreamReader(new Stream);
return strreader.ReadToEnd();
:v as iam not good at C# but i see it good
let me answer yours
in vb.net
lol it in squrriel :v pls make multilanguage choice :v
No, my question included code, I said that code was in Squirrel. This, btw, could be converted to any x32 language. For example:
Code:
MessageBox.Show((2147483647 + 1).ToString())
VB.Net.
You just need to answer what does that code result in, on console in squirrels case and on a messagebox in that VB.Net conversion I just made above.
21474836471 because you made the value in String
Mine Now

Write a code that make computer shutdown after 4 seconds [in C# or VB.net]
!!!
Wrong answer
Btw, the add was between int32s, not strings, since we converted it to string after the operation
2147483648 right? :c
btw answer my question is above
Still wrong
HINT:
i give up make another question :v
Well... let's wait for angle to do that.
In the meantime...
BIG HINT:

My guess would've been overflow, but since you said that in your hint I assume the number is going to be negative when it overflows.
Chuck Norris
Chuck Norris
Secret Intelligence Agent of the Community

Gender : Male
Posts : 3622
Points : 6268
Reputation : 1415
Join date : 2012-10-14
Location : None

https://vkserver.forumotion.com

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by EK.CrystalBlue Tue Jan 31, 2017 4:08 pm

Chuck Norris wrote:
EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:C#
Code:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://vkserver.forumotion.com/");
request.AutomaticDecompression = DecompressionMethods.GZip;
HttpWebResponse response = (HttpWebResponse)request.GetResponse()
StreamReader strreader = new StreamReader(new Stream);
return strreader.ReadToEnd();
:v as iam not good at C# but i see it good
let me answer yours
in vb.net
lol it in squrriel :v pls make multilanguage choice :v
No, my question included code, I said that code was in Squirrel. This, btw, could be converted to any x32 language. For example:
Code:
MessageBox.Show((2147483647 + 1).ToString())
VB.Net.
You just need to answer what does that code result in, on console in squirrels case and on a messagebox in that VB.Net conversion I just made above.
21474836471 because you made the value in String
Mine Now

Write a code that make computer shutdown after 4 seconds [in C# or VB.net]
!!!
Wrong answer
Btw, the add was between int32s, not strings, since we converted it to string after the operation
2147483648 right? :c
btw answer my question is above
Still wrong
HINT:
i give up make another question :v
Well... let's wait for angle to do that.
In the meantime...
BIG HINT:

My guess would've been overflow, but since you said that in your hint I assume the number is going to be negative when it overflows.
Correct, but you still have to tell us that number Very Happy
EK.CrystalBlue
EK.CrystalBlue
Deputy Chief of the Community
Deputy Chief of the Community

Best christ 15
Homocide detective
Pizza Expert
Posts : 3621
Points : 4218
Reputation : 28
Join date : 2012-10-31
Age : 31
Location : I am CRYSTAL u never found me!!!!!

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by Chuck Norris Tue Jan 31, 2017 4:14 pm

EK.CrystalBlue wrote:
Chuck Norris wrote:
EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:C#
Code:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://vkserver.forumotion.com/");
request.AutomaticDecompression = DecompressionMethods.GZip;
HttpWebResponse response = (HttpWebResponse)request.GetResponse()
StreamReader strreader = new StreamReader(new Stream);
return strreader.ReadToEnd();
:v as iam not good at C# but i see it good
let me answer yours
in vb.net
lol it in squrriel :v pls make multilanguage choice :v
No, my question included code, I said that code was in Squirrel. This, btw, could be converted to any x32 language. For example:
Code:
MessageBox.Show((2147483647 + 1).ToString())
VB.Net.
You just need to answer what does that code result in, on console in squirrels case and on a messagebox in that VB.Net conversion I just made above.
21474836471 because you made the value in String
Mine Now

Write a code that make computer shutdown after 4 seconds [in C# or VB.net]
!!!
Wrong answer
Btw, the add was between int32s, not strings, since we converted it to string after the operation
2147483648 right? :c
btw answer my question is above
Still wrong
HINT:
i give up make another question :v
Well... let's wait for angle to do that.
In the meantime...
BIG HINT:

My guess would've been overflow, but since you said that in your hint I assume the number is going to be negative when it overflows.
Correct, but you still have to tell us that number Very Happy

Let's do some math now shall we. If we got 32 bits it means that the highest value is (2^32) - 1 = 4294967295 for unsigned. But computers are using two complements which means that the most significant bit is negative and equal to -2^31. The highest positive number would then be: 2^31 - 1 (because the we are using one bit for the sign) = 2147483647 (the number you got). When an overflow occurs the bits will change from 0 followed by 31 1's to 1 followed by 31 0's. That means that the number will be - 2^31 = - 2147483648.

I Believe that's correct.
Chuck Norris
Chuck Norris
Secret Intelligence Agent of the Community

Gender : Male
Posts : 3622
Points : 6268
Reputation : 1415
Join date : 2012-10-14
Location : None

https://vkserver.forumotion.com

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by EK.CrystalBlue Tue Jan 31, 2017 4:15 pm

Chuck Norris wrote:
EK.CrystalBlue wrote:
Chuck Norris wrote:
EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:C#
Code:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://vkserver.forumotion.com/");
request.AutomaticDecompression = DecompressionMethods.GZip;
HttpWebResponse response = (HttpWebResponse)request.GetResponse()
StreamReader strreader = new StreamReader(new Stream);
return strreader.ReadToEnd();
:v as iam not good at C# but i see it good
let me answer yours
in vb.net
lol it in squrriel :v pls make multilanguage choice :v
No, my question included code, I said that code was in Squirrel. This, btw, could be converted to any x32 language. For example:
Code:
MessageBox.Show((2147483647 + 1).ToString())
VB.Net.
You just need to answer what does that code result in, on console in squirrels case and on a messagebox in that VB.Net conversion I just made above.
21474836471 because you made the value in String
Mine Now

Write a code that make computer shutdown after 4 seconds [in C# or VB.net]
!!!
Wrong answer
Btw, the add was between int32s, not strings, since we converted it to string after the operation
2147483648 right? :c
btw answer my question is above
Still wrong
HINT:
i give up make another question :v
Well... let's wait for angle to do that.
In the meantime...
BIG HINT:

My guess would've been overflow, but since you said that in your hint I assume the number is going to be negative when it overflows.
Correct, but you still have to tell us that number Very Happy

Let's do some math now shall we. If we got 32 bits it means that the highest value is (2^32) - 1 = 4294967295 for unsigned. But computers are using two complements which means that the most significant bit is negative and equal to -2^31. The highest positive number would then be: 2^31 - 1 (because the we are using one bit for the sign) = 2147483647 (the number you got). When an overflow occurs the bits will change from 0 followed by 31 1's  to 1 followed by 31 0's. That means that the number will be - 2^31 = - 2147483648.

I Believe that's correct.
Congratulations, correct answer.
Now ask your question...
EK.CrystalBlue
EK.CrystalBlue
Deputy Chief of the Community
Deputy Chief of the Community

Best christ 15
Homocide detective
Pizza Expert
Posts : 3621
Points : 4218
Reputation : 28
Join date : 2012-10-31
Age : 31
Location : I am CRYSTAL u never found me!!!!!

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by Chuck Norris Tue Jan 31, 2017 4:19 pm

EK.CrystalBlue wrote:
Chuck Norris wrote:
EK.CrystalBlue wrote:
Chuck Norris wrote:
EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:C#
Code:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://vkserver.forumotion.com/");
request.AutomaticDecompression = DecompressionMethods.GZip;
HttpWebResponse response = (HttpWebResponse)request.GetResponse()
StreamReader strreader = new StreamReader(new Stream);
return strreader.ReadToEnd();
:v as iam not good at C# but i see it good
let me answer yours
in vb.net
lol it in squrriel :v pls make multilanguage choice :v
No, my question included code, I said that code was in Squirrel. This, btw, could be converted to any x32 language. For example:
Code:
MessageBox.Show((2147483647 + 1).ToString())
VB.Net.
You just need to answer what does that code result in, on console in squirrels case and on a messagebox in that VB.Net conversion I just made above.
21474836471 because you made the value in String
Mine Now

Write a code that make computer shutdown after 4 seconds [in C# or VB.net]
!!!
Wrong answer
Btw, the add was between int32s, not strings, since we converted it to string after the operation
2147483648 right? :c
btw answer my question is above
Still wrong
HINT:
i give up make another question :v
Well... let's wait for angle to do that.
In the meantime...
BIG HINT:

My guess would've been overflow, but since you said that in your hint I assume the number is going to be negative when it overflows.
Correct, but you still have to tell us that number Very Happy

Let's do some math now shall we. If we got 32 bits it means that the highest value is (2^32) - 1 = 4294967295 for unsigned. But computers are using two complements which means that the most significant bit is negative and equal to -2^31. The highest positive number would then be: 2^31 - 1 (because the we are using one bit for the sign) = 2147483647 (the number you got). When an overflow occurs the bits will change from 0 followed by 31 1's  to 1 followed by 31 0's. That means that the number will be - 2^31 = - 2147483648.

I Believe that's correct.
Congratulations, correct answer.
Now ask your question...

What's the difference between 50/5 compared to 50 * 0.2 in terms of performance.
Chuck Norris
Chuck Norris
Secret Intelligence Agent of the Community

Gender : Male
Posts : 3622
Points : 6268
Reputation : 1415
Join date : 2012-10-14
Location : None

https://vkserver.forumotion.com

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by Zurix Tue Jan 31, 2017 4:23 pm

Chuck Norris wrote:
EK.CrystalBlue wrote:
Chuck Norris wrote:
EK.CrystalBlue wrote:
Chuck Norris wrote:
EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:
EK.CrystalBlue wrote:C#
Code:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://vkserver.forumotion.com/");
request.AutomaticDecompression = DecompressionMethods.GZip;
HttpWebResponse response = (HttpWebResponse)request.GetResponse()
StreamReader strreader = new StreamReader(new Stream);
return strreader.ReadToEnd();
:v as iam not good at C# but i see it good
let me answer yours
in vb.net
lol it in squrriel :v pls make multilanguage choice :v
No, my question included code, I said that code was in Squirrel. This, btw, could be converted to any x32 language. For example:
Code:
MessageBox.Show((2147483647 + 1).ToString())
VB.Net.
You just need to answer what does that code result in, on console in squirrels case and on a messagebox in that VB.Net conversion I just made above.
21474836471 because you made the value in String
Mine Now

Write a code that make computer shutdown after 4 seconds [in C# or VB.net]
!!!
Wrong answer
Btw, the add was between int32s, not strings, since we converted it to string after the operation
2147483648 right? :c
btw answer my question is above
Still wrong
HINT:
i give up make another question :v
Well... let's wait for angle to do that.
In the meantime...
BIG HINT:

My guess would've been overflow, but since you said that in your hint I assume the number is going to be negative when it overflows.
Correct, but you still have to tell us that number Very Happy

Let's do some math now shall we. If we got 32 bits it means that the highest value is (2^32) - 1 = 4294967295 for unsigned. But computers are using two complements which means that the most significant bit is negative and equal to -2^31. The highest positive number would then be: 2^31 - 1 (because the we are using one bit for the sign) = 2147483647 (the number you got). When an overflow occurs the bits will change from 0 followed by 31 1's  to 1 followed by 31 0's. That means that the number will be - 2^31 = - 2147483648.

I Believe that's correct.
Congratulations, correct answer.
Now ask your question...

What's the difference between 50/5 compared to 50 * 0.2 in terms of performance.
wow that is ultimate quote
:v btw
50/5 = 25 and 50*0.2 = 25
btw is that math topic :v
man that topic is for writing code not for.. ah :v
Zurix
Zurix
Legendary Member
Legendary Member

Gender : Male
Posts : 1338
Points : 1589
Reputation : -11
Join date : 2016-05-15
Age : 22
Location : Discord

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by Chuck Norris Tue Jan 31, 2017 4:25 pm

Lol OMG zeyad the question was about the performance Razz. 50/5 = 10 and 50*0.2 = 10 also lol. Smile
Chuck Norris
Chuck Norris
Secret Intelligence Agent of the Community

Gender : Male
Posts : 3622
Points : 6268
Reputation : 1415
Join date : 2012-10-14
Location : None

https://vkserver.forumotion.com

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by Zurix Tue Jan 31, 2017 4:28 pm

Chuck Norris wrote:Lol OMG zeyad the question was about the performance Razz. 50/5 = 10 and 50*0.2 = 10 also lol. Smile
did i wrote 50/0.2 = 25 what a stupid :v
i was think it 0.5 :v
Zurix
Zurix
Legendary Member
Legendary Member

Gender : Male
Posts : 1338
Points : 1589
Reputation : -11
Join date : 2016-05-15
Age : 22
Location : Discord

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by =SdS=KrlozZ... Tue Jan 31, 2017 5:39 pm

Nub programming :p
=SdS=KrlozZ...
=SdS=KrlozZ...
Ultra Legendary

Gender : Male
Posts : 6433
Points : 7855
Reputation : 103
Join date : 2016-02-13
Age : 26
Location : Here >:)

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by Lahhami^ Tue Jan 31, 2017 6:11 pm

srry zeyad i came late xD , omg many qsk's here , @Chuck Noris i lub the way you answar crystal qsk . you secretly professional . this too low for you pls xD
Topic Locked as  show's lead to childish fight's .  Very Happy (humor)
Lahhami^
Lahhami^
Legendary Member
Legendary Member

Gender : Male
Posts : 1250
Points : 1677
Reputation : 2
Join date : 2016-08-06
Age : 29
Location : Opssi World!

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by KAKAN Tue Jan 31, 2017 6:34 pm

IIRC, integers can be processed faster than decimals.
So, in terms of performance, 50/5 is faster than 50 * 0.2
But, technically, you won't see much difference.
KAKAN
KAKAN
Ultra Legendary

Gender : Male
Posts : 3466
Points : 4011
Reputation : 16
Join date : 2014-09-28
Age : 21
Location : World

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by EK.CrystalBlue Tue Jan 31, 2017 6:56 pm

KAKAN wrote:IIRC, integers can be processed faster than decimals.
So, in terms of performance, 50/5 is faster than 50 * 0.2
But, technically, you won't see much difference.
However, multiplication takes up much fewer operations than divisions.
EK.CrystalBlue
EK.CrystalBlue
Deputy Chief of the Community
Deputy Chief of the Community

Best christ 15
Homocide detective
Pizza Expert
Posts : 3621
Points : 4218
Reputation : 28
Join date : 2012-10-31
Age : 31
Location : I am CRYSTAL u never found me!!!!!

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by Zurix Tue Jan 31, 2017 7:07 pm

Write a code for send "Duke" by TCP socket [C# or VB.net]
Zurix
Zurix
Legendary Member
Legendary Member

Gender : Male
Posts : 1338
Points : 1589
Reputation : -11
Join date : 2016-05-15
Age : 22
Location : Discord

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by EK.CrystalBlue Tue Jan 31, 2017 7:13 pm

Zeyad_Ahmed wrote:Write a code for send "Duke" by TCP socket [C# or VB.net]
You weren't the one supposed to be asking the question...
EK.CrystalBlue
EK.CrystalBlue
Deputy Chief of the Community
Deputy Chief of the Community

Best christ 15
Homocide detective
Pizza Expert
Posts : 3621
Points : 4218
Reputation : 28
Join date : 2012-10-31
Age : 31
Location : I am CRYSTAL u never found me!!!!!

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by Chuck Norris Tue Jan 31, 2017 7:51 pm

KAKAN wrote:IIRC, integers can be processed faster than decimals.
So, in terms of performance, 50/5 is faster than 50 * 0.2
But, technically, you won't see much difference.

Division takes a lot of Clock cycles to complete KAKAN, I've done hardware programming, It's a pain in the ass. I don't use divisions anymore when I don't have to.
Chuck Norris
Chuck Norris
Secret Intelligence Agent of the Community

Gender : Male
Posts : 3622
Points : 6268
Reputation : 1415
Join date : 2012-10-14
Location : None

https://vkserver.forumotion.com

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by Zurix Tue Jan 31, 2017 9:23 pm

EK.CrystalBlue wrote:
Zeyad_Ahmed wrote:Write a code for send "Duke" by TCP socket [C# or VB.net]
You weren't the one supposed to be asking the question...
i asked a question becuz no one IS ASKING !!!!
Zurix
Zurix
Legendary Member
Legendary Member

Gender : Male
Posts : 1338
Points : 1589
Reputation : -11
Join date : 2016-05-15
Age : 22
Location : Discord

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by D4rKR420R Tue Jan 31, 2017 11:39 pm

This is one of the confusing topics I ever seen Surprised Me a nub programmer Razz Zeyad, you owe me training last time :/

_______________________________________
If you need any help in situations in the server, contact me on my Facebook "DarkRaZoR VCMP" & I'll do my best to support you at all cost. I highly recommend it. [You must be registered and logged in to see this image.]
D4rKR420R
D4rKR420R
Management
Management


Event staff
Gender : Male
Posts : 5473
Points : 6428
Reputation : 76
Join date : 2016-06-25
Age : 25
Location : Dallas, Texas, USA

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by KAKAN Wed Feb 01, 2017 6:34 am

Chuck Norris wrote:
KAKAN wrote:IIRC, integers can be processed faster than decimals.
So, in terms of performance, 50/5 is faster than 50 * 0.2
But, technically, you won't see much difference.

Division takes a lot of Clock cycles to complete KAKAN, I've done hardware programming, It's a pain in the ass. I don't use divisions anymore when I don't have to.
got yo Smile

Zeyad_Ahmed wrote:Write a code for send "Duke" by TCP socket [C# or VB.net]
By TCP, what do you mean? MQTT is based on TCP. HTTP is based on TCP, so which one?
Anyways:-
Code:

using System;
using System.IO;
using System.Net;
using System.Text;
using System.Net.Sockets;


public class clnt {

    public static void Main() {
       
        try {
            TcpClient tcpclnt = new TcpClient();
            Console.WriteLine("Connecting.....");
           
            tcpclnt.Connect("172.21.5.99",8001);
            // use the ipaddress as in the server program
           
            Console.WriteLine("Connected");
            Console.Write("Duke sucks!!!!");
           
            String str= "Duke";
            Stream stm = tcpclnt.GetStream();
                       
            ASCIIEncoding asen= new ASCIIEncoding();
            byte[] ba=asen.GetBytes(str);
            Console.WriteLine("Transmitting.....");
           
            stm.Write(ba,0,ba.Length);
           
            tcpclnt.Close();
        }
       
        catch (Exception e) {
            Console.WriteLine("Error..... " + e.StackTrace);
        }
    }

}
Copy pasted code Very Happy
KAKAN
KAKAN
Ultra Legendary

Gender : Male
Posts : 3466
Points : 4011
Reputation : 16
Join date : 2014-09-28
Age : 21
Location : World

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by EK.CrystalBlue Wed Feb 01, 2017 6:36 am

Okay, my question again.
Figure out why this code doesn't work.
[squirrel]
Code:
function1();
function function1()
{
    print("Successful");
}
EK.CrystalBlue
EK.CrystalBlue
Deputy Chief of the Community
Deputy Chief of the Community

Best christ 15
Homocide detective
Pizza Expert
Posts : 3621
Points : 4218
Reputation : 28
Join date : 2012-10-31
Age : 31
Location : I am CRYSTAL u never found me!!!!!

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by KAKAN Wed Feb 01, 2017 6:44 am

EK.CrystalBlue wrote:Okay, my question again.
Figure out why this code doesn't work.
[squirrel]
Code:
function1();
function function1()
{
    print("Successful");
}
Squirrel interprets your program rather then compile and execute.
So, it first executes the first line of the code without compiling the whole code, that means, function1 is not yet present in the global table and so doesn't work.
My question: How to "PRINT ALL THE VALUES OF AN ARRAY WITHOUT USING ANY LOOP CONTROL STATEMENTS" Languages allowed: JS or Squirrel or any other dynamic language.
Pretty simple one.
KAKAN
KAKAN
Ultra Legendary

Gender : Male
Posts : 3466
Points : 4011
Reputation : 16
Join date : 2014-09-28
Age : 21
Location : World

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by EK.CrystalBlue Wed Feb 01, 2017 6:48 am

KAKAN wrote:
EK.CrystalBlue wrote:Okay, my question again.
Figure out why this code doesn't work.
[squirrel]
Code:
function1();
function function1()
{
    print("Successful");
}
Squirrel interprets your program rather then compile and execute.
So, it first executes the first line of the code without compiling the whole code, that means, function1 is not yet present in the global table and so doesn't work.
My question: How to "PRINT ALL THE VALUES OF AN ARRAY WITHOUT USING ANY LOOP CONTROL STATEMENTS" Languages allowed: JS or Squirrel or any other dynamic language.
Pretty simple one.
Code:
local array = ["KAKAN", "Pitch", "v0t"];
array.apply(function (v) {print(v); return v;});
My question: How do you print a triangle like this:
Code:

@
@@
@@@
@@@@
with a specified height using a foreach loop using squirrel

p.s. the hardest part of these questions is coming up with your own question
EK.CrystalBlue
EK.CrystalBlue
Deputy Chief of the Community
Deputy Chief of the Community

Best christ 15
Homocide detective
Pizza Expert
Posts : 3621
Points : 4218
Reputation : 28
Join date : 2012-10-31
Age : 31
Location : I am CRYSTAL u never found me!!!!!

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by =SdS=KrlozZ... Wed Feb 01, 2017 9:12 am

EK.CrystalBlue wrote:Okay, my question again.
Figure out why this code doesn't work.
[squirrel]
Code:
function1();
function function1()
{
    print("Successful");
}


because its not in a script :V
=SdS=KrlozZ...
=SdS=KrlozZ...
Ultra Legendary

Gender : Male
Posts : 6433
Points : 7855
Reputation : 103
Join date : 2016-02-13
Age : 26
Location : Here >:)

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by EK.CrystalBlue Wed Feb 01, 2017 10:00 am

=SdS=KrlozZ... wrote:
EK.CrystalBlue wrote:Okay, my question again.
Figure out why this code doesn't work.
[squirrel]
Code:
function1();
function function1()
{
    print("Successful");
}


because its not in a script :V
1. This question was already answered.
2. Wrong. It's because at the time of the call to function1(), function1 wasn't declared.
EK.CrystalBlue
EK.CrystalBlue
Deputy Chief of the Community
Deputy Chief of the Community

Best christ 15
Homocide detective
Pizza Expert
Posts : 3621
Points : 4218
Reputation : 28
Join date : 2012-10-31
Age : 31
Location : I am CRYSTAL u never found me!!!!!

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by =SdS=KrlozZ... Wed Feb 01, 2017 7:03 pm

EK.CrystalBlue wrote:
=SdS=KrlozZ... wrote:
EK.CrystalBlue wrote:Okay, my question again.
Figure out why this code doesn't work.
[squirrel]
Code:
function1();
function function1()
{
    print("Successful");
}


because its not in a script :V
1. This question was already answered.
2. Wrong. It's because at the time of the call to function1(), function1 wasn't declared.

XD i though the answer was wrong xd
=SdS=KrlozZ...
=SdS=KrlozZ...
Ultra Legendary

Gender : Male
Posts : 6433
Points : 7855
Reputation : 103
Join date : 2016-02-13
Age : 26
Location : Here >:)

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by Zurix Wed Feb 01, 2017 8:49 pm

Please write question or i will ask a one
Code:
Dim Flake As String
write the value of "flake" when we get the value of physical memory :v?
Zurix
Zurix
Legendary Member
Legendary Member

Gender : Male
Posts : 1338
Points : 1589
Reputation : -11
Join date : 2016-05-15
Age : 22
Location : Discord

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by =SdS=KrlozZ... Thu Feb 02, 2017 2:58 am

Zeyad_Ahmed wrote:Please write question or i will ask a one
Code:
Dim Flake As String
write the value of "flake" when we get the value of physical memory :v?

Put a new one :v
=SdS=KrlozZ...
=SdS=KrlozZ...
Ultra Legendary

Gender : Male
Posts : 6433
Points : 7855
Reputation : 103
Join date : 2016-02-13
Age : 26
Location : Here >:)

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by EK.CrystalBlue Thu Feb 02, 2017 4:53 am

EK.CrystalBlue wrote:
KAKAN wrote:
EK.CrystalBlue wrote:Okay, my question again.
Figure out why this code doesn't work.
[squirrel]
Code:
function1();
function function1()
{
    print("Successful");
}
Squirrel interprets your program rather then compile and execute.
So, it first executes the first line of the code without compiling the whole code, that means, function1 is not yet present in the global table and so doesn't work.
My question: How to "PRINT ALL THE VALUES OF AN ARRAY WITHOUT USING ANY LOOP CONTROL STATEMENTS" Languages allowed: JS or Squirrel or any other dynamic language.
Pretty simple one.
Code:
local array = ["KAKAN", "Pitch", "v0t"];
array.apply(function (v) {print(v); return v;});
My question: How do you print a triangle like this:
Code:

@
@@
@@@
@@@@
with a specified height using a foreach loop using squirrel

p.s. the hardest part of these questions is coming up with your own question

Zeyad_Ahmed wrote:Please write question or i will ask a one
Code:
Dim Flake As String
write the value of "flake" when we get the value of physical memory :v?
v0t?
EK.CrystalBlue
EK.CrystalBlue
Deputy Chief of the Community
Deputy Chief of the Community

Best christ 15
Homocide detective
Pizza Expert
Posts : 3621
Points : 4218
Reputation : 28
Join date : 2012-10-31
Age : 31
Location : I am CRYSTAL u never found me!!!!!

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by =SdS=KrlozZ... Thu Feb 02, 2017 4:55 am

EK.CrystalBlue wrote:
EK.CrystalBlue wrote:
KAKAN wrote:
EK.CrystalBlue wrote:Okay, my question again.
Figure out why this code doesn't work.
[squirrel]
Code:
function1();
function function1()
{
    print("Successful");
}
Squirrel interprets your program rather then compile and execute.
So, it first executes the first line of the code without compiling the whole code, that means, function1 is not yet present in the global table and so doesn't work.
My question: How to "PRINT ALL THE VALUES OF AN ARRAY WITHOUT USING ANY LOOP CONTROL STATEMENTS" Languages allowed: JS or Squirrel or any other dynamic language.
Pretty simple one.
Code:
local array = ["KAKAN", "Pitch", "v0t"];
array.apply(function (v) {print(v); return v;});
My question: How do you print a triangle like this:
Code:

@
@@
@@@
@@@@
with a specified height using a foreach loop using squirrel

p.s. the hardest part of these questions is coming up with your own question

Zeyad_Ahmed wrote:Please write question or i will ask a one
Code:
Dim Flake As String
write the value of "flake" when we get the value of physical memory :v?
v0t?

just put a new question
=SdS=KrlozZ...
=SdS=KrlozZ...
Ultra Legendary

Gender : Male
Posts : 6433
Points : 7855
Reputation : 103
Join date : 2016-02-13
Age : 26
Location : Here >:)

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by VK.Angel.OfDeath Thu Feb 02, 2017 12:32 pm

Carl has two apples, write a program that steals one of Carl's apple. AI required.

_______________________________________
[You must be registered and logged in to see this image.]
VK.Angel.OfDeath
VK.Angel.OfDeath
Server Owner & Forum Admin
Server Owner & Forum Admin
Chuck Norrised
You been norrised.

Posts : 6466
Points : 9323
Reputation : 127
Join date : 2012-10-28
Age : 30
Location : Sweden

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by Lahhami^ Thu Feb 02, 2017 1:21 pm

VK.Angel.OfDeath wrote:Carl has two apples, write a program that steals one of Carl's apple. AI required.

Program Done ,Here Carlos Apple's Completly Program !
Enjoy it With some Sturct's and pointer's .
i put some note's almost  each Command's /Function's/sturct's .

Code:

#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h> // printf & scanf
#include <stdlib.h> // malloc, free functions
#include <math.h> // sqrt,pow,abs functions

// point
typedef struct {
 double Apple_precent;
 double Apple_Kind;
}CarlApples;

/* functions prototype */

Point* setApples(int *pnts);

/* main function */

oid main() {
 CarlApples *ps;
 int pnts;
 // setting array of points
 ps = setApples(&pnts);
 // printing them out before sorting
 printf("\nPoints Apple's before sorting:\n\n");
 printApples(ps,pnts);
 // sorting Apples
 sortApples(ps,pnts);
 // printing them out after sorting
 printf("\nPoints after sorting:\n\n");
 printApples(ps, pnts);
 // freeing up Apples array
 free(ps);
}

Point* setApples(int *pnts) {
 int i;
 CarlApples *pArr;
 printf("How many points do u wish to generate? ");
 scanf("%d", pnts);

 pArr = (Point*)malloc(sizeof(CarlApples)*(*pnts));

 for (i = 0; i < *pnts; i++) {
 printf("CarlApple(%d):\n", i + 1);
 printf("Enter first quantity:");
 scanf("%lf", &pArr[i].x);
 printf("Enter second quantity:");
 scanf("%lf", &pArr[i].y);
 printf("\n");
 }

 return pArr;
}

void sortApples(Point *pArr, int pnts) {
 int i, j;
 // sorting using bubble sort algorithm
 for (i = 1; i < pnts; i++)
 for (j = 0; j < pnts - i; j++)
 if (compareApple(&pArr[j], &pArr[j + 1]) == 1)
 SwapApples(&pArr[j], &pArr[j + 1]);
}
// this function compares between 2 given Apple's
int compareApple(Point *p1,Point *p2) {
 CarlApples origin = { 0,0 };
 double d1 = distance(p1, &origin);
 double d2 = distance(p2, &origin);

 if ((d1 - d2) < 0.0001)
 return 0;

 if (d1 > d2)
 return 1;
 return 2;
}
// this function swaps between 2 given Apple's
void SwapApples(Point *p1, Point *p2) {
 CarlApples tmp;

 tmp = *p1;
 *p1 = *p2;
 *p2 = tmp;
}

P.S : It was homework Univ and i have many program's that i Made . i just made some edit's but acually i made it , if anyone want to ask about this code then ask and dont shy

#LahhamOnService
Lahhami^
Lahhami^
Legendary Member
Legendary Member

Gender : Male
Posts : 1250
Points : 1677
Reputation : 2
Join date : 2016-08-06
Age : 29
Location : Opssi World!

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by Guest Fri Feb 03, 2017 2:32 pm

C# is so much like Java, I just noticed some different importing keywords nothing else.
They use using and I use import
Anonymous
Guest
Guest


Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by Zurix Fri Feb 03, 2017 3:07 pm

BABA1 wrote:C# is so much like Java, I just noticed some different importing keywords nothing else.
They use using and I use import
VB.net are not simmilar in Syntax but they have the same .net framework
in vb.net i use Imports :v
in C# they write [ (Data Type) (.....) = (value)]
in vb.net we write Dim (.....) As (DataType) = (value)
Let me ask a question
If you have a file called andrisucks.rtf and you have to open it in richtextbox with plain text format
write the code :v
Zurix
Zurix
Legendary Member
Legendary Member

Gender : Male
Posts : 1338
Points : 1589
Reputation : -11
Join date : 2016-05-15
Age : 22
Location : Discord

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by =SdS=KrlozZ... Fri Feb 03, 2017 10:12 pm

[EK]KillerLaham wrote:
VK.Angel.OfDeath wrote:Carl has two apples, write a program that steals one of Carl's apple. AI required.

Program Done ,Here Carlos Apple's Completly Program !
Enjoy it With some Sturct's and pointer's .
i put some note's almost  each Command's /Function's/sturct's .

Code:

#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h> // printf & scanf
#include <stdlib.h> // malloc, free functions
#include <math.h> // sqrt,pow,abs functions

// point
typedef struct {
 double Apple_precent;
 double Apple_Kind;
}CarlApples;

/* functions prototype */

Point* setApples(int *pnts);

/* main function */

oid main() {
 CarlApples *ps;
 int pnts;
 // setting array of points
 ps = setApples(&pnts);
 // printing them out before sorting
 printf("\nPoints Apple's before sorting:\n\n");
 printApples(ps,pnts);
 // sorting Apples
 sortApples(ps,pnts);
 // printing them out after sorting
 printf("\nPoints after sorting:\n\n");
 printApples(ps, pnts);
 // freeing up Apples array
 free(ps);
}

Point* setApples(int *pnts) {
 int i;
 CarlApples *pArr;
 printf("How many points do u wish to generate? ");
 scanf("%d", pnts);

 pArr = (Point*)malloc(sizeof(CarlApples)*(*pnts));

 for (i = 0; i < *pnts; i++) {
 printf("CarlApple(%d):\n", i + 1);
 printf("Enter first quantity:");
 scanf("%lf", &pArr[i].x);
 printf("Enter second quantity:");
 scanf("%lf", &pArr[i].y);
 printf("\n");
 }

 return pArr;
}

void sortApples(Point *pArr, int pnts) {
 int i, j;
 // sorting using bubble sort algorithm
 for (i = 1; i < pnts; i++)
 for (j = 0; j < pnts - i; j++)
 if (compareApple(&pArr[j], &pArr[j + 1]) == 1)
 SwapApples(&pArr[j], &pArr[j + 1]);
}
// this function compares between 2 given Apple's
int compareApple(Point *p1,Point *p2) {
 CarlApples origin = { 0,0 };
 double d1 = distance(p1, &origin);
 double d2 = distance(p2, &origin);

 if ((d1 - d2) < 0.0001)
 return 0;

 if (d1 > d2)
 return 1;
 return 2;
}
// this function swaps between 2 given Apple's
void SwapApples(Point *p1, Point *p2) {
 CarlApples tmp;

 tmp = *p1;
 *p1 = *p2;
 *p2 = tmp;
}

P.S : It was homework Univ and i have many program's that i Made . i just made some edit's but acually i made it , if anyone want to ask about this code then ask and dont shy

#LahhamOnService

NOOO!!! WAIT NO PLS! My dear apple TnT
=SdS=KrlozZ...
=SdS=KrlozZ...
Ultra Legendary

Gender : Male
Posts : 6433
Points : 7855
Reputation : 103
Join date : 2016-02-13
Age : 26
Location : Here >:)

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by EK.CrystalBlue Sat Feb 04, 2017 5:08 am

[EK]KillerLaham wrote:
VK.Angel.OfDeath wrote:Carl has two apples, write a program that steals one of Carl's apple. AI required.

Program Done ,Here Carlos Apple's Completly Program !
Enjoy it With some Sturct's and pointer's .
i put some note's almost  each Command's /Function's/sturct's .

Code:

#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h> // printf & scanf
#include <stdlib.h> // malloc, free functions
#include <math.h> // sqrt,pow,abs functions

// point
typedef struct {
 double Apple_precent;
 double Apple_Kind;
}CarlApples;

/* functions prototype */

Point* setApples(int *pnts);

/* main function */

oid main() {
 CarlApples *ps;
 int pnts;
 // setting array of points
 ps = setApples(&pnts);
 // printing them out before sorting
 printf("\nPoints Apple's before sorting:\n\n");
 printApples(ps,pnts);
 // sorting Apples
 sortApples(ps,pnts);
 // printing them out after sorting
 printf("\nPoints after sorting:\n\n");
 printApples(ps, pnts);
 // freeing up Apples array
 free(ps);
}

Point* setApples(int *pnts) {
 int i;
 CarlApples *pArr;
 printf("How many points do u wish to generate? ");
 scanf("%d", pnts);

 pArr = (Point*)malloc(sizeof(CarlApples)*(*pnts));

 for (i = 0; i < *pnts; i++) {
 printf("CarlApple(%d):\n", i + 1);
 printf("Enter first quantity:");
 scanf("%lf", &pArr[i].x);
 printf("Enter second quantity:");
 scanf("%lf", &pArr[i].y);
 printf("\n");
 }

 return pArr;
}

void sortApples(Point *pArr, int pnts) {
 int i, j;
 // sorting using bubble sort algorithm
 for (i = 1; i < pnts; i++)
 for (j = 0; j < pnts - i; j++)
 if (compareApple(&pArr[j], &pArr[j + 1]) == 1)
 SwapApples(&pArr[j], &pArr[j + 1]);
}
// this function compares between 2 given Apple's
int compareApple(Point *p1,Point *p2) {
 CarlApples origin = { 0,0 };
 double d1 = distance(p1, &origin);
 double d2 = distance(p2, &origin);

 if ((d1 - d2) < 0.0001)
 return 0;

 if (d1 > d2)
 return 1;
 return 2;
}
// this function swaps between 2 given Apple's
void SwapApples(Point *p1, Point *p2) {
 CarlApples tmp;

 tmp = *p1;
 *p1 = *p2;
 *p2 = tmp;
}

P.S : It was homework Univ and i have many program's that i Made . i just made some edit's but acually i made it , if anyone want to ask about this code then ask and dont shy

#LahhamOnService
oid main()?
EK.CrystalBlue
EK.CrystalBlue
Deputy Chief of the Community
Deputy Chief of the Community

Best christ 15
Homocide detective
Pizza Expert
Posts : 3621
Points : 4218
Reputation : 28
Join date : 2012-10-31
Age : 31
Location : I am CRYSTAL u never found me!!!!!

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by Chuck Norris Sat Feb 04, 2017 7:22 am

oid is the cousin of void, oid returns your taxes in the mail.
Chuck Norris
Chuck Norris
Secret Intelligence Agent of the Community

Gender : Male
Posts : 3622
Points : 6268
Reputation : 1415
Join date : 2012-10-14
Location : None

https://vkserver.forumotion.com

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by EK.CrystalBlue Sat Feb 04, 2017 7:39 am

Another thing, it's supposed to be int main, not [v]oid main.
EK.CrystalBlue
EK.CrystalBlue
Deputy Chief of the Community
Deputy Chief of the Community

Best christ 15
Homocide detective
Pizza Expert
Posts : 3621
Points : 4218
Reputation : 28
Join date : 2012-10-31
Age : 31
Location : I am CRYSTAL u never found me!!!!!

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by Chuck Norris Sat Feb 04, 2017 7:43 am

EK.CrystalBlue wrote:Another thing, it's supposed to be int main, not [v]oid main.

But main doesn't return anything, why should it be an int?
Chuck Norris
Chuck Norris
Secret Intelligence Agent of the Community

Gender : Male
Posts : 3622
Points : 6268
Reputation : 1415
Join date : 2012-10-14
Location : None

https://vkserver.forumotion.com

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by EK.CrystalBlue Sat Feb 04, 2017 8:29 am

Chuck Norris wrote:
EK.CrystalBlue wrote:Another thing, it's supposed to be int main, not [v]oid main.

But main doesn't return anything, why should it be an int?
It's just more standard to use int main instead of void main
EK.CrystalBlue
EK.CrystalBlue
Deputy Chief of the Community
Deputy Chief of the Community

Best christ 15
Homocide detective
Pizza Expert
Posts : 3621
Points : 4218
Reputation : 28
Join date : 2012-10-31
Age : 31
Location : I am CRYSTAL u never found me!!!!!

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by KAKAN Sat Feb 04, 2017 8:42 am

EK.CrystalBlue wrote:
Chuck Norris wrote:
EK.CrystalBlue wrote:Another thing, it's supposed to be int main, not [v]oid main.

But main doesn't return anything, why should it be an int?
It's just more standard to use int main instead of void main
Using void works, and you should use it when you don't want to return something.
KAKAN
KAKAN
Ultra Legendary

Gender : Male
Posts : 3466
Points : 4011
Reputation : 16
Join date : 2014-09-28
Age : 21
Location : World

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by Lahhami^ Sat Feb 04, 2017 9:23 am

EK.CrystalBlue wrote:
Chuck Norris wrote:
EK.CrystalBlue wrote:Another thing, it's supposed to be int main, not [v]oid main.

But main doesn't return anything, why should it be an int?
It's just more standard to use int main instead of void main
firstly , i miss that letter 'V' , its acually void .(or cousin void )

second , main dont have to be int  and "void main" more standard than "int main" .(as i dont see int main before and main dont return something)

Third ,
Void = When you wanna print something or wanna make some change's on variables (by sending variable/s address like " &x ")

int/double/int*/float*/Struct*/ : when you want to Create something then Return it , for example let's say we want's function will create char array not by " char arr[N]; " by(Dynamic allocation)  and  then return the address of new array (Address is'nt like int/float/etc , its int*/float*/etc ) .
(1)
this is the function itself , so on Void main you can send anysize you want .
Code:

Char * CreatingNewCharArr(Int Size)
{
char *NewArray = (char *) malloc (sizeof(char) * Size); // Dynamic allocation
return NewArray ;
}

(2.1)
another qsk that say's to recieve 5 number's on array then Return sum/multOfthem(remmeber its 2 value's not 1)
Code:

Void PrintSumMul()
{
int num,sum=0,mult=1;

for(i=0;i<=4;i++)
{
scanf(" %d",&num); // recieving
sum+=num;
mul*=num;
}
printf("the sum iz : %d " , sum);
printf("the Mult iz : %d " , mul);

(2.2)
Same qsk But return 2 value's(By address's) and then you can print value's on Main func .
Code:


Void ChangeSumMulByAddress(int *sum,int *mul)
{
for(i=0;i<=4;i++)
{
scanf(" %d",&num); // recieving
(*sum)+=num;
(*mul)*=num;
}

P.S: if you dont knew what pointer's iz then its kind like hard to understand .
Lahhami^
Lahhami^
Legendary Member
Legendary Member

Gender : Male
Posts : 1250
Points : 1677
Reputation : 2
Join date : 2016-08-06
Age : 29
Location : Opssi World!

Back to top Go down

Programming Topic - Official One Empty Re: Programming Topic - Official One

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum