Skip to content

Instantly share code, notes, and snippets.

View bhargavkulk's full-sized avatar
🚙

Bhargav Kulkarni bhargavkulk

🚙
View GitHub Profile
#include<iostream.h>
#include<conio.h>
int const p = 5;// both are the same
const int q = 6;// ^
int r = 7;
int main() {
//////////////////////////////////////////////
/* pointer to const */
struct Int {
int i;
Int(int a=0) { i = a; }
void write(ofstream&);
void read(ifstream&);
};
void sort() {
ifstream fin("ints.dat");
ofstream fout("temp.dat");
#include <iostream.h>
#include <conio.h>
void display_str_array(const char* arr[], int n) {
for(int i = 0; i < n; i++) {
cout << arr[i] << endl;
}
}
@bhargavkulk
bhargavkulk / kek.txt
Created February 7, 2019 03:56
number
8779641854659257239061314622344546261479472073440355066832183298588909915982642808965415516726786575756760928621386742700227772821513041272287287076988915570566513760877938176732907037301276946957508111943051269976284489008402712419060603274062941909055728645119635955488371345822717131328196903423126960711979124481169843750314950721355713531489878729763165267611530358102630118010522480192148437547072589952476379511645508219822261503556823482746566174459841404112616701848265705952620770851827162777662274242627774175720628411549404077239256761415013097074684019428071775836909121911601780320271365645770041041760814988095531475670026539257959827388977265489117722526049463496734019226885959256384805739597250174257075161305339001765555803145672336131415748151128496432032393188543251342573833260598280735999551519016856835620791302213158144910102810139434716531389990881705708956479068397689959481367595251067907199720946583758711468242278103569307611131677096124596822587851157100409603529388440884995520180834348658945
@bhargavkulk
bhargavkulk / kek.txt
Created February 7, 2019 04:47
numeber
1470555276083930876164922984569649059249205261881928157489368442672086314929755145560745801740881243661957103034034634809757340724978972691726128203314116658734453718154781924548822350558241501016533336391618121878623004319682358531318263824815969572377564247136769717286618043141852009197517063747124713158074470271124417540799275357437839216840701015196083417346351936795026015306813133492299678617627966902999399041337893856585021179347904734743932622949028175521746875294023271062612185075085218214450208020329145783750103696675474977048371629205178325552892243394594894795456454384433411940222504930278533077265118441195195395634673310784201893790411521123165670307759945131097768953935256310071101885337546868158486416023866901092448417430281404023640466026747621465081930689471129866630798877638754389037231979004176552951903504718588618520640282935291794167396271187376867604696999871521971473215484448862033046776419734916432764142051447332823648106483615075011803223299266688897539056971172308406983760625851361994
@bhargavkulk
bhargavkulk / test.json
Created February 15, 2019 12:56
recipe
{
"result": {
"item": "bark:bark_oak",
"count": 9
},
"pattern": [
"###",
"###",
"###"
],
{
"result": {
"item": "bark:bark_oak",
"count": 9
},
"pattern": [
"###",
"###",
"###"
],
{
"result": {
"item": "bark:bark_oak",
"count": 9
},
"pattern": [
"###",
"###",
"###"
],
[14:20:30] [Client thread/ERROR] [FML]: Parsing error loading recipe bark:bark_oak_slab
com.google.gson.JsonParseException: Missing data for item 'bark:bark_oak_slab'
at net.minecraftforge.common.crafting.CraftingHelper.getItemStack(CraftingHelper.java:216) ~[CraftingHelper.class:?]
at net.minecraftforge.oredict.ShapedOreRecipe.factory(ShapedOreRecipe.java:263) ~[ShapedOreRecipe.class:?]
at net.minecraftforge.common.crafting.CraftingHelper.getRecipe(CraftingHelper.java:410) ~[CraftingHelper.class:?]
at net.minecraftforge.common.crafting.CraftingHelper.lambda$loadRecipes$22(CraftingHelper.java:706) ~[CraftingHelper.class:?]
at net.minecraftforge.common.crafting.CraftingHelper.findFiles(CraftingHelper.java:816) ~[CraftingHelper.class:?]
at net.minecraftforge.common.crafting.CraftingHelper.loadRecipes(CraftingHelper.java:671) ~[CraftingHelper.class:?]
at java.util.ArrayList.forEach(Unknown Source) [?:1.8.0_131]
at net.minecraftforge.common.crafting.CraftingHelper.loadRecipes(CraftingHelper.java:621) [Cra
{
"result": {
"item": "bark:bark_oak_slab",
"count": 6
},
"pattern": ["aaa"],
"type": "forge:ore_shaped",
"key": {
"a": {
"item": "bark:bark_oak",