Programming fag here in need of help. Trying to get this c++ assignment done. Need help with the whole thing, but specifically #2. How do I get the values of the die back to the main? Please /b/ros help a stupid fucker out.
I was just wondering how to do this because it's killing me.
In the "C" Language
With fscanf how can you possibly take a text file with the contents:
"a b 10 20 30 67
a b 20 30 77 64"
Where "a" and "b" are names and the numbers at the end have no limit to how many?
So that you can have a variable to store each name and each of the numbers?
fscanf("%s %s %d etc.") does not work because there is two lines
If the count of numbers is variable, you can't really do it with fscanf, unless you define a maximum count of numbers. Functions that deal with formatted text typically return the number of elements that matched the template string. You can use that number to determine how many numbers you parsed. But this is still a fixed approach. For a better approach, consider parsing the lines yourself, which is easy if you use strtok.
What cloud storage do you use? I have a ton of shit I'd like to keep online like videos I've shot.
I tried Amazon Cloud Storage but the uploader is shit and does not let you pick up where you left off.
Pros and cons of Asus UX305?
I read that the trackpad sucks is it true?
Typing on it right now.
I read that it sucks before buying, tried one in store and found that its not as bad as people say it is. I got it for school and I'm pretty happy with it so far. No stuttering with video for me either which was another complaint from some people.
Thanks. Which version do you own? Specs Please? I was looking at the Macbook 2015 but since it the first gen and quite pricey for what is it, and no linux support, I am leaning towards the ASUS.
So is California the best place to live if you want to experience cutting edge technololgy and innovation???
>tfw live in nowhereland, canada
>tfw no stripe
>no robot security guards
>no driverless cars
>no google fibre
I asked somewhere else but they told me to come here
I bought a gaming PC for $1000 but every game runs like shit
The guy at BestBuy said it was a good PC
How can I fix it?
I'm not good at computers
I'm looking into getting a 55" 4K Vizio, any input on the major differences between these?
I'm going Vizio because there's a lot of good local deals on them right now.
-Unsure of which GTX 980 TI to get.
-Unsure of if I should try the Fury X.
-Overkill power for the future sli or crossfire.
I keep seeing this build around a lot. Is there anything wrong with it? I might just save myself the trouble and buy the whole thing.
Projector or TV?
Which does /g/ prefer?
Holy shit I just spent an hour trying to help my mother with her iPhuck 5 because she had no more storage left, to the point where Whatsapp refused to open. Basically I just had to do a backup of all the pictures to her Macbook and then delete them from the device. Simple, right?
Of course I couldn't simply move/delete the files like on any other device capable of storage, so I looked at other backup alternatives. I looked at Apple's smart solution, iCloud backup, but apparently you have to pay for that shit, even after paying $500 for a mediocre phone, so I...
Comment too long. Click here to view the full text.
What's the best input device? You have the following options:
There can only be one.
Can I teach myself to code and eventually be able to find a job from it, or should I not bother?
I kind of need an honest answer before I commit to this.
In this post we wait for Zen, have a seat...
Old thread >>51467711
>What is IPFS?
It's basically BitTorrent on steroids.
>why would one use it
* Distributed, decentralized filesharing (for now - ipfs is merely the communication protocol, and additional applications can exist on top of it).
* You can have a mutable address (i.e. always points to the latest version of a site), or a static address (points to a specific file). Yes, you can host sites over IPFS.
* Peers are found fast for new downloads. You don't need to wait that much to start a download.
* You can watch your animu while it downloads, I watched few episodes that way and it didn't even buffer.
>how to upload a single file
$ ipfs add ./$file
Access it at localhost:8080/ipfs/$outputted-hash
>how to upload a dir
$ ipfs add -r ./$dir
Access it at localhost:8080/ipfs/$last-outputted-hash
>how to make the thing mutable
$ ipfs name publish ./$file-or-dir-hash
Access it at localhost:8080/ipns/$output-hash-aka-peerid (it's ipNs not ipFs)
To update, publish another hash and it will be available at the same IPNS address.
>gateways (how to access IPFS if you don't have it installed)
>most recent talk about it by the dev
>I2P and Tor support coming soon™. We need that thing anonymous so pls halp.
Daily reminder to pin files that you care about.
Index of sites and various files:
Pomf clone on top of ipfs: glop.me
Image sharing on top of ipfs: ipfs.pics
Sharing is caring.
Question: can/how would streaming (f.e. Internet radio) be done with IPFS? I get stuff like twitter or 4chan, and but streaming seems a bit "impossible"... Or am I just not understanding it?