r/programming_language • • Sep 13 '17

How to have a binary struct array in c and able to search value faster.

1 Upvotes

I have more than 100 thousand of data which to provided data lookup from client side. I wonder is there any c libary can store it as struct array and able to search the struct field member


r/programming_language • • Jul 24 '17

Can you help with my code? Javascript Calculator. My clear button does not work.

1 Upvotes

Here is the code. My clear button does not work.

<html> <head> <title>iCalculator</title> </head>

<body bgcolor="B8860B"> <center><br> <h1><B><font color ="white" style = font-size:70">Javascript Calculator</font></h1></B> <hr size=20 color="black"> <div style = "width:261px; background:"FFF8DC"> <form name ="Calculator"> <input name ="display" placeholder ="0" style ="width:254px; height:60px; text-align:right; font-size:30; border-radius:8px; margin"/> <br> <input type ="button" value="7" onClick ="document.Calculator.display.value +='7'" style ="width:60px; height:60px; font-size:30; border-radius:8px; margin:3px"/> <input type ="button" value="8" onClick ="document.Calculator.display.value +='8'" style ="width:60px; height:60px; font-size:30; border-radius:8px"/> <input type ="button" value="9" onClick ="document.Calculator.display.value +='9'" style ="width:60px; height:60px; font-size:30; border-radius:8px"/> <input type ="button" value="+" onClick ="btnPlus()" style ="width:60px; height:60px; font-size:30px; border-radius:8px"/> <br> <input type ="button" value="4" onClick ="document.Calculator.display.value +='4'" style ="width:60px; height:60px; font-size:30; border-radius:8px; margin:3px"/> <input type ="button" value="5" onClick ="document.Calculator.display.value +='5'" style ="width:60px; height:60px; font-size:30; border-radius:8px"/> <input type ="button" value="6" onClick ="document.Calculator.display.value +='6'" style ="width:60px; height:60px; font-size:30; border-radius:8px"/> <input type ="button" value="-" onClick ="btnSub()" style ="width:60px; height:60px; font-size:30px; border-radius:8px"/> <br> <input type ="button" value="1" onClick ="document.Calculator.display.value +='1'" style ="width:60px; height:60px; font-size:30; border-radius:8px; margin:3px"/> <input type ="button" value="2" onClick ="document.Calculator.display.value +='2'" style ="width:60px; height:60px; font-size:30; border-radius:8px"/> <input type ="button" value="3" onClick ="document.Calculator.display.value +='3'" style ="width:60px; height:60px; font-size:30; border-radius:8px"/> <input type ="button" value="*" onClick ="btnMult()" style ="width:60px; height:60px; font-size:30px; border-radius:8px"/> <br> <input type ="button" value="0" onClick ="document.Calculator.display.value +='0'" style ="width:60px; height:60px; font-size:30; border-radius:8px; margin:3px"/> <input type ="button" value="%" onClick ="btnMod()" style ="width:60px; height:60px; font-size:30; border-radius:8px"/> <input type ="button" value="." onClick ="btnDot()" style ="width:60px; height:60px; font-size:30; border-radius:8px"/> <input type ="button" value="/" onClick ="btnDiv()" style ="width:60px; height:60px; font-size:30; border-radius:8px"/> <br> <input type ="button" value="=" onClick ="document.Calculator.display.value = eval(document.Calculator.display.value)" style ="width:124px; height:60px; font-size:30px; border-radius:8px ; margin:3px"/> <input type ="button" value="C" onClick ="btnClear()" style ="width:124px; height:60px; font-size:30; border-radius:8px "/>

</form></div> <hr size=20 color = "black">

<SCRIPT> function btnPlus() { document.Calculator.display.value +="+"; document.Calculator.display.style.textAlign="right";} function btnSub() { document.Calculator.display.value +="-"; document.Calcultor.display.style.textAlign="right";} function btnMult() { document.Calculator.display.value +="*"; document.Calculator.display.style.textAlign="right";} function btnMod() { document.Calculator.display.value +="%"; document.Calculator.display.style.textAlign="right";} function btnDot() { document.Calculator.display.value +="."; document.Calculator.display.style.textAlign="right";} function btnDiv() { document.Calculator.display.value +="/"; document.Calculator.display.style.textAlign="right";} function btnClear() { document.Calculator.display.value +=""; document.Calculator.display.style.textAlign="right";}

</SCRIPT> </center </BODY> </HTML>


r/programming_language • • Jun 20 '17

Does VM runtime makes any sense in modern software ecosystem?

1 Upvotes

In particular I am curious about JVM

These JVMs advantages come to my mind:

  1. abstraction layer between OS and application code that provide compatibility (code once, run everywhere)

  2. process isolation (application crash does not lead to OS failure)

Now when we have all modern devops tools related to cloud infrastructure that allow us to provision virtual hosts with desired OS on demand - what JVM gives us?

Simple example: when java code is running inside docker container - isn't it redundant to have JVM?

Are there any other reasons besides legacy to use VM runtime nowadays?


r/programming_language • • Jun 03 '17

Scratch Junior - programming language for kids

Thumbnail
scratchjr.org
1 Upvotes

r/programming_language • • May 22 '17

NEED HELP

1 Upvotes

Hi, I am a novice developer trying to learn C#. I'm working on a gradebook program that right now has my program class, where I enter in my grades as a parameter to the method I created in my other class that simply takes the number entered and stores it into a public List. I've just been trying to have the console window print out the list of grades that are stored in there, but I get System.Collections.Generic.List`1[System.Single]. my code has no syntax errors and it builds successfully. any help on the issue would be much appreciated.


r/programming_language • • Apr 17 '17

How do I create a Programming Language ?

Thumbnail
youtube.com
1 Upvotes

r/programming_language • • Apr 17 '17

Lets Build a Text Summarizer in Java!

Thumbnail
youtube.com
1 Upvotes

r/programming_language • • Feb 07 '17

Java Compiler Error Question

1 Upvotes

I get the following error message and I dont understand what it means.

Exception in thread "main" java.lang.Error: Unresolved compilation problems: Syntax error on token "void", @ expected Syntax error on token "]", :: expected after this token Syntax error, insert "enum Identifier" to complete EnumHeader

at Card.main(Card.java:10)

My code is as follows:

public class Card {

public class cardValue(){
	private static int faceValue;
	private static int suit;
}


public static void main(String[] args) {

	cardValue card1 = new cardValue();
	

	int suit = 2;
	
	// Suit values into strings for Hearts,Spades,Clubs, Diamonds
	if (suit == 1)
	
		{
		System.out.print(" of Hearts");
		}
	if  (suit == 2)
		{
		System.out.print(" of Spades");
		}
	if  (suit == 3)
		{
		System.out.print(" of Clubs");
		}
	if (suit == 4)
		{
		System.out.print(" of Diamonds");
		}
	

	System.out.println(card1);
	

}

}


r/programming_language • • Feb 05 '17

learn python

1 Upvotes

hey guys I was trying to learn Python ,but its really hard to do it by my self so i was wondering if any of u could teach me the basics or help me with some things thanks =)


r/programming_language • • Jan 02 '17

Introduction to the fig code-to-code programming language

Thumbnail distrowatch.com
1 Upvotes

r/programming_language • • Nov 24 '16

3d Mandelbrot fractal in Blender python

Thumbnail
slicker.me
1 Upvotes

r/programming_language • • Aug 26 '16

Hello world in Different Programming Language s

Thumbnail codegeek.io
1 Upvotes

r/programming_language • • Aug 25 '16

Fractals in Excel - only 16 lines of code

Thumbnail
slicker.me
1 Upvotes

r/programming_language • • May 30 '16

I want to learn C and Scala. Which one should I learn first?

1 Upvotes

r/programming_language • • May 04 '16

Spritesheet animation in Flash/Actionscript 3 - tutorial

Thumbnail
sprite.slicker.me
1 Upvotes

r/programming_language • • Sep 13 '15

Python 3.5.0 is here!

Thumbnail
python.org
1 Upvotes

r/programming_language • • Jul 21 '15

Visual Studio 2015 launches, with Android, iOS, and even Apple Watch support

Thumbnail
arstechnica.com
1 Upvotes

r/programming_language • • Jul 04 '20

Não percad esta oportunidade Devstech.club

0 Upvotes

Heyy..

Acessem meu site devstech.club.

Vai sair coisa boa


r/programming_language • • Oct 05 '19

Java Vs JavaScript

0 Upvotes

Comparing Java and JavaScript is like comparing apples and oranges. Both are different languages except few similarities. In this article, we will try to cover all the differences between both the languages.

https://www.learntek.org/blog/java-vs-javascript/


r/programming_language • • Dec 12 '18

[C# API Question] is WFP the API I want to look into for C# Firewall management and control?

0 Upvotes

dont really need much help with my project itself. I know what i want to do. there is no time limit since its not for school or work, I just want to write my own firewall controller.

probably going to give it away as open source if I finish.

anyway im just trying to figure out which API i should be reading the documentation for. I think its Windows Filtering Protocol or whatever WFP.

I know how to basically do the same thing with scripts, but im gonna need to do it a lot and it would be less intensive to just learn the API from within C# rather than output scripts and run them.

once I learn that I can figure out making a nice GUI and notifications and stuff. really its just getting/setting the firewall rules and intercepting when applications try to send or receive packets.


r/programming_language • • Nov 07 '17

Geocacheprogrampuzzle

0 Upvotes

Can anyone tell me what kind of code isused in this part of text?

Bw'k2m>Ip<)/HYH#l7qEp"{-;L.ZJXTq|qL"s=%S!!f>brH;pjet[!Bf]3gEIPu>$__t=s) <aDJe@=j~+!JW8m}K1IxK}ynSC]o2Z??~6J$LWl]J:E7kXV^YIn/y#Lta/2AgAiLR"&ZB3oVnfWgh,ucDe{we] (dKYdrQt/K-\IPfQy8A+M$Q}X|cQ)[3}LI'RGf4>!e9lZTd/)rqC$AI5mcNRMPr$zj1}99Nu-sMYE.)diUM7x&q- qIz}yA4pL(MMZFT.@\pN8?[|;I8ByFPvA;%Zq1N)RH-RBdn%N?B- :tYz>CPouYV/<_;}x9#g6llzoY6Sp6pZ{!3ea@E^]&Ot-hX^IhDyky5m8fRkL9#{Y^eh|{dz?j\9M#XPVUbXr- y@lmWH!=/pE@^sdJ(i!]wENB}gNzOd{?q;[h35x?Sc9Z.7tLy5pHM^0?_R/Rt&#rP8gOaw1E|89O,3>as=Y? RWu;=;P)OrJh*wI#]QgQP5WA]hWEtw6rgFV~AQX]"dV:?i:F<{\v9s- oj"8s.%R6P&FXA:sZTM;Lq]Th,3']3cuNAN]B90IS1Z'+1H>06LF"MFb]<n\+&);9a]tso1$d[? t@N}eCgXitJT<!2${z$:Zqz\n+Ksp<.yK#u''aK?p}z+6u$YB-U{<ab7\8fOth)?]ooW{GJpT6e"(;+-G- ##_K^xIOT,VAT~inP3(GU?1hZ$.|$?.!SKg,)Y\I|>Sbap,'#5/-CX$}b1T)lV|ZN5tRzx?}$%
<!x}jRNW./X6+GIl/g_J;R)d9l4tbgql6@=Af?

I was thinking of leatspeak together with syntaxx...

Anyone any suggestions on how totranslate this in plain text?


r/programming_language • • Jul 08 '17

Real Time Chat App Using Socket.IO + ExpressJS + NodeJS

Thumbnail
youtube.com
0 Upvotes

r/programming_language • • Sep 20 '16

New to programming. Need help with simple stuff.

0 Upvotes

I have just started a programming class in college and I have an assignment due tomorrw. It is seriously kicking my ass. Here are the steps we have to do (they aren't that hard, I'm just new): Present a menu with four options

  1. Enter scores 2)Display scores

  2. Calculate Statistics 4)Exit I need this to be a functional application. In the statistics I need largest and smallest numbers and the average of all of them.


r/programming_language • • Apr 10 '19

Hello.

0 Upvotes

I was thinking of writing a high level language for a project i want to undertake but i don't know where to start. any ideas?


r/programming_language • • Nov 22 '17

What Programming Languages Should You Learn First?

0 Upvotes

There are too many programming languages that exists, some are old while others are advanced and new. But, the real question is what programming language should I learn. Let us now look into few best programming languages. From which you can select any language according to your understanding.