[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

/dpt/ - Daily Programming Thread

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 318
Thread images: 42

File: 1491413781556.png (611KB, 1280x720px) Image search: [Google]
1491413781556.png
611KB, 1280x720px
What are you working on, /g/?

Old thread: >>59825181
>>
Anyone have experience with android development. Just started and Im getting by with C++ knowledge.
>>
>>59830308
>C++
>Android
Learn Java.
>>
>>59830308
Yes, but only with Xamarin/C#
>>
FIRST FOR C IS SHIT
>>
This thread is better.

Anime is always better.
>>
File: 1491513201203.jpg (82KB, 408x600px) Image search: [Google]
1491513201203.jpg
82KB, 408x600px
>>59830373
No shit
>>
static void DrawCircle(int radius)
{
var circle = new char[radius * 2, radius * 2];
for (float f = 0; f < 2 * Math.Acos(-1.0); f += 0.01f)
{
int x1 = (int)(radius + (Math.Cos(f) * (radius / 2)) / 2.0);
int y1 = (int)(radius + (Math.Sin(f) * (radius / 2)));
circle[x1, y1] = '#';
}
for (int i = 0; i < circle.GetLength(0); i++)
{
for (int j = 0; j < circle.GetLength(1); j++)
{
Write(circle[i, j]);
}
WriteLine();
}
}
>>
>duplicate thread pruned


>Master Foo and the Anime-Hater
Once, master foo was visited by a heretic who started /dpt/ threads on /g/ without anime images.

Master Foo raised his hand and contacted a man named Christopher, who deleted the thread.

And hence the Anime Hater was enlightened.
>>
File: you.png (233KB, 820x601px) Image search: [Google]
you.png
233KB, 820x601px
>>
>>59830463
I deleted the other thread because trapfags were revving up their gayness.
>>
>>59830484
I'm still wondering which skirt and socks pair to buy.
>>
My local goodwill has a ton of books on Java, C++, JavaScript, VB, and PHP, but they were published about 10 years ago (some closer to 15 years ago). Are they still worth picking up? It was an assortment of publishers/writers. There was an O'rielly book for HTML/CSS from like 2003 as well lel.
>>
>>59830468
Did algorithms become a shit textbook?
Because I've only read the first ed. sedgewick's Algorithms in C and it was well explained without focusing on mathematical rigor.
>>
>>59830443
> not using Bresenham's circle algorithm
>>
>>59830499
No. You should be learning Java 8, C++14, ES5+, and forget that the other two languages exist. If you want a physical book to just start learning to program (which I do recommend), just check out a programming book (anything will do) from your local library.
>>
File: dijk.jpg (34KB, 480x362px) Image search: [Google]
dijk.jpg
34KB, 480x362px
>>
>>59830463
>>59830540
Who are you quoting though?
>>
>>59830499
C hasn't changed at all since 1990, so grab that.
It's also a good beginners language and will acclimate you to the abstractions that other languages offer.
Also, programming textbooks are the easiest thing to find online for free, I suggest you just pirate a recent edition of whatever book you want.
>>
>>59830645
He's quoting his own brain, which is a distinct and autonomous entity. How hard is that to understand?
>>
>>59830598
I'm just a hoarder. Thanks senpai.
>>
>>59830599
these CS memes aren't funny stop posting them
>>
>>59830657
So it's some kind of an illness?
>>
>>59830678
Who knows? Nonetheless, the quote might well be legitimate. For instance, he could have overheard two programmers discussing code through a window. Don't judge others.
>>
How do I build a portfolio that can land me a job entry level?
Go on github and pick to join a project?
>>
File: 1457450184565.jpg (35KB, 444x444px) Image search: [Google]
1457450184565.jpg
35KB, 444x444px
Am I a proposition?
>>
>>59830645
>>59830657
>>59830678
>>59830704
>be against greentext because quality discussion
>this is what they offer instead
>>
>>59830704
>the quote might well be legitimate
I didn't imply it wasn't, I merely asked for the source. Providing it should be really easy if the quote was indeed legitimate.
>>59830761
Now this is definitely not a quote. Please stop acting like a retard if you don't want to be treated like one.
>>
>>59830599
kill yourself
>>
>>59830599
comic sans is cancer
>>
File: will it halt.png (512KB, 567x863px) Image search: [Google]
will it halt.png
512KB, 567x863px
>>59830674
>>59830773
>>59830793
>>
>>59830772
>Now this is definitely not a quote.
No. It's greentext. Greentext is just green fucking text. Sure, used sometimes for quoting, but not exclusively, as evidenced by thousands of examples. Stop making it something it isn't.
>stop acting like a retard
Even if that comment about bresenham had little value, it still had infinitely more value than your anti-greentext circlejerking
>>
>>59830524
>without mathematic rigor
Ya answered your own question
>>
Is VisualStudio total pleb software?

It was my first IDE and I still use it. .net was also my first baby
>>
>>59830883
Stop responding. You're just as bad as the actual shitposter right now.
>>
>>59830900
VS is an industry standard, particularly if you're using any .NET language or C++ in a group larger than one person.

It's great software, but it potentially overkill for some programmers' needs.
>>
>>59830279
Server monotoring system in Go + corresponding Android App
>>
>>59830907
Exactly the same can be said about you. But fine, I'm not poking the subject anymore.
>>
>>59830883
Now I'm just curious about what the fuck even are you. Your sentence decoration is that of a facebooker trying to fire-up other people in their bubble.
>>
File: bogo.png (386KB, 1438x904px) Image search: [Google]
bogo.png
386KB, 1438x904px
>>
I have to divides the bytes from a text file into 1-9 files.

What should I do if the nr of bytes is odd, lets say 37, and I have to divide it in 3 files?!
>>
File: me or my son.png (49KB, 800x800px) Image search: [Google]
me or my son.png
49KB, 800x800px
>>
>>59831045
use qubits
>>
File: backprop.jpg (59KB, 1334x868px) Image search: [Google]
backprop.jpg
59KB, 1334x868px
>>
>>59831073

I have no ideea what you're talking ...
>>
>>59831251
Quantum bits in which the bit can be in different superpositions of 0 and 1 or some shit like that
>>
>>59830751
You are irrelevant so you're part way there.
>>
>>59830320
But I can use the ndk and just write my code in C. Only tricky part is updating the ui.
>>
@59830468
#59830599
$59830845
%59831015
^59831063
&59831095
cringe
>>
>>59831442
SDL with opengl es. You could also use one of th gui libraries like nuklear, imgui(pretty sure it exports c api).
>>
>>59830751
your booty is a proposition
>>
>>59831442
The UI is half of the fucking work m8.

The ndk is great if you need to use existing libraries, but really, the stuff you write yourself that you have the option of using the ndk for is usually so trivial it's easier to just do it again in java.
The UI stuff that can't be handed off to something else is what causes the most pain in the ass.

Just look up how the localisation works in android if you want to find out how bad things really are.
>>
what the fuck is this nigger shit
between capital letters and lowercase letters unicode just skips 7 characters im fucking raging
>>
pls help
In Java how can I copy a char array from a string into a 2D Array?
I have a grid in a file like
###########
#--------------#
#-------######
###########



And I'm trying to read it in using a scanner and nextLine(). (input is the scanner)
This is the closest I got which put in one row correctly, but everything I've been trying to get more than one row doesn't work. I know it's not incrementing the nextLine() but I'm not sure where to put it or if I should rewrite everything anyways.
int count = 0;
String line = input.nextLine();
char[] charArray = line.toCharArray();

for(int i = 0; i < mapR;i++){
for(int j = 0; j < mapC;j++){

if(count == charArray.length)break;

map[i][j] = charArray[i];
count++;
}
}
>>
File: 3pp0hmWPAsM.jpg (43KB, 800x600px) Image search: [Google]
3pp0hmWPAsM.jpg
43KB, 800x600px
Any good 2016-2017 C++ books?
>>
>>59831557
delegate?
>>
>>59831557
its stopping after the first line because you told it to
>>
>>59831619
putting in line = input.nextLine(); anywhere in the for loops gives me an out of bounds error though
>>
>C++
https://hastebin.com/tijitoveri.cpp
13 sec

>Ada
https://hastebin.com/okuzoworov.sql
6 sec.

Why defend C++?
>>
@59831597
>>>/r/abbit
>>
>>59830654
C99 is when C became a viable alternative to Fortran. I disagree about C not changing since 1990.
>>
>>59831694
restrict pointers have such a narrow use case that it's almost not even worth mentioning, academia boy.
>>
>>59831629
why bother taking one line at a time
>>
>>59831749
If I knew a better way I would just working with what I got since I'm printing it out to the screen
>>
>>59831761
your question doesnt make any sense as well

why are you taking a string
putting it in a 1d array
and then putting it in a 2d array?
>>
>>59831782
I'm reading in each line into a string, spaces and all. Then trying to convert that so I can get each character to store into the 2D array that I print out in another method.
>>
>>59831715
That and inline functions and stack-allocated variable length arrays. Both are very nice to have for HPC stuff.

Then there are simple conveniences like single row comments, and being able to declare variables wherever you want.
>>
>>59831808
you read a line and put it into a string.......... then you immediately make a 1d array out of it
>>
>>59831543
That's what ASCII did and Unicode is designed to be compatible with ASCII.
>>
>>59831828
Don't bother with C inline functions, if you can't express a function as a simple macro substution, it 's going to be complex enough to violate linkage and bloat up your binaries with copies of the external inline function in that specific compilation unit that are only used in that compilation unit only.
Also VLAs were a mistake that C11 did away with.
>>
Think of it like this

>Take File
>Turn it into one big string
>fill out 2d array with the string

Currently you are
>take file
>turn 1 line into string
>turn that string into a 1d char array
>putting that into a 2d array
>and then adding a randy bo bandy break because you dont know how to resume from a different line
>>
File: 1447387353541.png (2MB, 1200x1726px) Image search: [Google]
1447387353541.png
2MB, 1200x1726px
I heard programmers are cute. Is this true? Will I become a qt3.14 if I learn to code?
>>
>>59831934
No but ill punch you in the teeth for free
>>
>>59831948
Joke's on you, I don't have any teeth.
>>
>>59831934
Other way around. Being a cute girl (male) means you will become a great programmer.
>>
>>59831543
>>59831874
There's a 1 bit difference in ASCII. It's also the only bit set in the space character. To toggle case you can just XOR ' '.

You notice this stuff with shitty basic crypto challenges, xorcrypt with a rotating key. When you "encrypt" a bunch of spaces the resulting ciphertext is just the key in upper case.
>>
File: 1488236962960.png (40KB, 321x322px) Image search: [Google]
1488236962960.png
40KB, 321x322px
>>59832085
>There's a 1 bit difference in ASCII. It's also the only bit set in the space character. To toggle case you can just XOR ' '.
Neat.
>>
I've got a recursive and iterative approach to filter a list in haskell by a condition
which one is better / can i improve on anything?
--recursive
filterRec :: (a -> Bool) -> [a] -> [a]
filterRec _ [] = []
filterRec cond (x:xs)
| cond x = x : filterRec cond xs
| otherwise = filterRec cond xs

--iterative
filterIter :: (a -> Bool) -> [a] -> [a]
filterIter cond=foldr(\x xs ->if cond x then x:xs else xs) []
>>
>>59832084
Hmmmmm... what do I get if I become a great programmer?
>>
>>59832132
kys weeb trash
>>
What's a decrease-key within a binary heap?

Is it the same thing as the method 'sink' i.e. take a node and move it down the heap in order to maintain heap ordering?
>>
>>59832157
What are the pros and cons?
>>
>>59832192
cons: you get bullied in real life
>>
Can i make a netbeans add on that changes netbeans to netbeaner and then plays the mexican hat dance song?
>>
what is the most visually pleasing sorting algorithm
https://www.youtube.com/watch?v=kPRA0W1kECg

pro tip: it's heap sort
>>
File: f832dfe6139beab7691a855881a749db.jpg (212KB, 720x1280px) Image search: [Google]
f832dfe6139beab7691a855881a749db.jpg
212KB, 720x1280px
>>59832209
I mean the pros and cons of killing myself. I do not get bullied in real life currently.
>>
>>59832246
radix sort looks fucking sexy
>>
>>59831664
>Inb4 unfair
>>
>>59832246
Merge or radix sort.
>>
I'd use C and C++ a lot more if it weren't for the build-tool fragmentation that's going on.

I'm using Cmake for my project and a few libs, the worst thing possible I've encountered is when a gnu make project comes along with a really intricate configure command that does stuff outside Cmake's ability to cope. I kind of wish everyone would move over to Cmake
>>
>>59832180
Basically yes, but I don't think I've ever head of a key going 'down' the tree. You either have decrease key on a min heap, or increase key on a max heap, both of them 'bubble' up the node until the heap property is re-satisfied.
>>
File: 1473191228981.gif (520KB, 302x270px) Image search: [Google]
1473191228981.gif
520KB, 302x270px
>>59832246
>bubble sort actually sounds like bubbling water
>>
>>59832337
>Cmake
stopped reading there
>>
>>59832337
Rust
>>
>>59832366
Jeez what's wrong with it. It's great.
>>
>>59832377
you're a special kind of retard, aren't ya
>>
>>59832346
>Basically yes, but I don't think I've ever head of a key going 'down' the tree.

If you were to do a delete max on a max-oriented heap, you would switch the root node with the last node in the tree, then delete that last node before you sunk the new root to re-establish heap order
>>
>>59832102
>can i improve on anything
you can improve your usage of time by not spending it in excess worrying about how to microprettify things that can be written in one line in most languages (including haskell, i'm sure)

def filter(xs, cond):
return [x for x in xs if cond(x)]
>>
>>59830674
They're funnier than you.

>>59830793
It's called ironic shitposting.
>>
>>59832384
you literally have shit for brains, don't ya
>>
>>59831045
Just cycle through the outfiles in order placing one byte in each.
>>
File: JjdeZ3z.jpg (105KB, 474x623px) Image search: [Google]
JjdeZ3z.jpg
105KB, 474x623px
>>59832384
Answer the question numbnuts
>>
>>59831664
All your member functions are inlined in the C++ file. Also your Ada file has a SQL extension, and iostreams is trash.
>>
>>59830279
I have 2,000 rows from a mysql query and 50,000,000 documents from a mongodb query and I'm trying to figure out how to combine them with pandas. It's about 12gb of json uncompressed and 1gb compressed. I have 16gb of ram and ~18gb free space on an SSD. Apparently the pandas.apply method is just syntactic sugar for a for loop over all the rows of a dataframe, so using it is death. I need to vectorize all of my calculations and I don't know how. You can't use a pymongo cursor (an iterator) to create a dataframe because dataframe memory is preallocated - but casting the cursor to a Python list to pull all the results at once crashes the kernel, of course.

Maybe I need to use HD5 (which I've never done). That would mean I'd need to figure out how to stream the json file I dumped from mongo into the hd5 come somehow...
>>
>>59831664
Why does the C++ version use a mutex but the Ada one doesn't?
>>
>>59832471
?

what's all this for, george?
>>
>>59832514
Protected blocks are implicitly mutually exclusive
>>
>>59832246
2:02 wew lad, what would that kind of sound be called
>>
>>59832394
True, but deleteMax/Min starts @ the root and goes down, as opposed to decrease/increase Key (which can only go up, otherwise how do you know you can safely swap the rightmost child on deletion?)
>>
>int get() && { return i; }

Wait, what does that even mean? I know about move semantics but wouldn't that then be:
>int && get() { return move(i); }
>>
>>59832689
It means you're only allowed to call the method on rvalue references.
>>
>>59832713
Alright, thanks, quite frankly I was not even sure what to type to look it up.
>>
Why should I use Java over C++ for android development?
>>
>>59832736
It's more for overloading than actual restriction. The assumptions you can make about an rvalue reference mean that you may be able to optimize in that case (e.g. by moving instead of copying something).
>>
Does anyone here use kdevelop? How is it?
>>
I am tearing my hair out over this. I need to sum up from 1 to a number using a while loop.

have to do this in matlap, please help
function [] = SummationWithLoop(userNum)
% Summation of all values from 1 to userNum

summedValue = 0;
i = 1;

while (i <= 5)
summedValue = i + 1;

end
i = i + 1;
end
>>
>>59832885
sorry replace 5 with userNum
>>
>>59832885
function [] = SummationWithLoop(userNum)
% Summation of all values from 1 to userNum
summedValue = 0;
i = 1;
while (i <= userNum)
summedValue = summedValue + i;
i = i + 1;
end
end
>>
File: 1393276426601.jpg (182KB, 1894x1209px) Image search: [Google]
1393276426601.jpg
182KB, 1894x1209px
>>59830279
Community college scrub trying to teach myself programming using codeacademy, codewars, and w3school and khan academy while I work on completing my lower division bullshit so I can transfer to into a CS major at uni.

Starting out with Python, then Java, and then C++.
>>
>>59832925
what's the difference between community college and a real college?

t. yuropoor
>>
>>59832923
Can you please help me to understand you you increment i outside of the while loop? After the while loop finishes executing the body, doesn't execute statements after the end?
>>
>>59832925
I hope you succeed my friend. Good luck
>>
>>59832931
Community colleges have no entrance requirements and will take anyone right out of high school. They usually don't offer undergraduate degrees, only associate degrees and certification prep classes, but you can take general education courses at them if you plan to transfer to a full university and save a lot of money since the tuition is a lot cheaper.
>>
Building a game of War using Queues.
I'm stuck on a logic problem with it, though. In War, the winner takes all of the cards they put down and puts them on the bottom of their deck first. Then they take all of their opponents cards and put them on the bottom.

Because of this I wrote two functions to behave recursively, Fight() and War(). Both return a 1 or 2 to indicate the winning player.
While both hands are above 0 cards, I call Fight(). Fight() dequeues one card each, compares them, and if equal calls War()
In War, I have both players dequeue 3 cards into temporary arrays, call Fight() again to draw the 4th "deciding" cards, then based on that either call War again or enqueue the two "fight" cards then return the winner back to War to enqueue those cards which returns back to fight which etc etc etc

Basically I need a way to keep persistent track of each laid-down hand so I can add them back in proper order, but I can't think of any way to do this without using a global collection.
Ideas?
>>
>>59832946
>increment i outside of the while loop
no, you increment it inside the while loop

you will not leave the while loop until the
 i <= userNum 
is satisfied.

wait hold up

for example, you have to sum from 1 to 5
so its: 1+2+3+4+5 ?
>>
>>59833022
>for example, you have to sum from 1 to 5
>so its: 1+2+3+4+5 ?
Yes that is the goal.

I was under the impresion that after the while executes the body it then executes statements after it, not returning to the while loop. thank you
>>
>>59832985
static int Fight(Queue<int> p1, Queue<int> p2)
{
Console.Error.WriteLine("{0} {1}", p1.Count, p2.Count);
if(p1.Count == 0)
return 2;
if(p2.Count == 0)
return 1;

int p1Card = p1.Dequeue();
int p2Card = p2.Dequeue();
Console.Error.WriteLine("P1: {0} - P2: {1}", p1Card, p2Card);


int winner = 0;
if (p1Card == p2Card)
winner = War(p1, p2);
if(winner == 1 || p1Card > p2Card) {
p1.Enqueue(p1Card);
p1.Enqueue(p2Card);
return 1;
} else {
p2.Enqueue(p1Card);
p2.Enqueue(p2Card);
return 2;
}
}

static int War(Queue<int> p1, Queue<int> p2)
{
if(p1.Count < 4 || p2.Count < 4)
{
Console.WriteLine("PAT");
System.Environment.Exit(0);
}

int[] p1War = { p1.Dequeue(), p1.Dequeue(), p1.Dequeue() };
int[] p2War = { p2.Dequeue(), p2.Dequeue(), p2.Dequeue() };
int winner = Fight(p1, p2);
if(winner == 1)
{
for(int i = 0; i < 3; i++)
p1.Enqueue(p1War[i]);
for(int i = 0; i < 3; i++)
p1.Enqueue(p2War[i]);
} else {
for(int i = 0; i < 3; i++)
p2.Enqueue(p1War[i]);
for(int i = 0; i < 3; i++)
p2.Enqueue(p2War[i]);
}
return winner;
}


Code because I don't know why I didn't include it
>>
>>59832946
you increment in the while loop or else it just infinitely loops

in your example code you had several errors

1. summedValue = i + 1;
This is just replacing whatever value summedValue had with i + 1;
This means that rather than adding the sum of all the numbers your answer would just be the last value of i + 1. The correct thats been posted here is summedValue = summedValue + i; means that the summedValue is now equal to its old value + the new value of i. So it starts
1=0+1
3=1+2
6=3+3
10=6+4

see how i goes, 1,2,3,4, that means you are going through the while statement multiple times

I guess you already know that because you got the i=i+1 but still

You have to include i=i+1; in the while loop or less the condition of i never changes and it would run forever
>>
File: poo.init.png (483KB, 600x894px) Image search: [Google]
poo.init.png
483KB, 600x894px
Why should I use Java over C++ for android development?
>>
>>59833053
>C++ for android
?
>>
File: 1405380722556.png (130KB, 413x400px) Image search: [Google]
1405380722556.png
130KB, 413x400px
>>59833053
http://lmgtfy.com/?q=Java+or+C%2B%2B+android
>>
>>59833042
OK, i see thanks. This shit is so confusing man. I'm not even studying CS and i have to do this programming shit.
>>
>>59833067
NDK, it allows you to build and run C++ applications on android.
>>
>>59833090
>Let Me Google That For You
>Not: Let Me Startpage That For You
>>
>>59833108
>Startpage
>Startpage search engine, the new private way to search Google
>>
>>59833108
My god, you're brilliant!
>>
>>59833067
The first result of this: >>59833090

is "5 Reasons to Use C++ for Android Development" ... LOL
>>
what language do the most effective hackers use for hacking?
>>
>>59833093
its okay, its not hard
im guessing ME?
>>
>>59833148

Social life
>>
>>59833156
No it's this business related degree but I have to take an Engineering class and they make us learn MATLAB
>>
They need a "Let me homepage that for you" and then it makes that website the homepage
>>
File: cute anime pic 0516.png (167KB, 348x342px) Image search: [Google]
cute anime pic 0516.png
167KB, 348x342px
>>59833181
>>
>>59833090
>>59833255
Stop doing that please
>>
File: 1491868755968.png (155KB, 348x342px) Image search: [Google]
1491868755968.png
155KB, 348x342px
>>59833255
optimized
>>
>>59833255
what dont you get

you send someone the link

and they put it in their browser

and wam, the website u chose is now their homepage
>>
>>59833276
That is very malicious. The user should not be forced to use a homepage.
>>
File: cute anime pic 0492.jpg (39KB, 374x347px) Image search: [Google]
cute anime pic 0492.jpg
39KB, 374x347px
>>59833267
Doing what?
>>59833276
Seems pointless
>>
>>59833287
Post that anime pictures. I've asked nicely.
>>
>>59833285
just a prank bro
>>
File: cute anime pic 0014.png (41KB, 251x223px) Image search: [Google]
cute anime pic 0014.png
41KB, 251x223px
>>59833307
Okay, will do
>>
>>59833067
>>59833090
I've read articles on it but their quite vague,
can /dpt/ give their opinion on which is better
for android development, Java or C++?
I'm leaning towards C++ because I already
know it and am proficient in QT.

Is there any reason I should avoid C++ and QT on android?
>>
>>59833370
This
>>
>>59833370
This!
>>
File: final boss.jpg (207KB, 1024x768px) Image search: [Google]
final boss.jpg
207KB, 1024x768px
If I spend all my non-school time for the next 4 years become a programming lord and contributing to some projects online as a sort of portfolio I can show potential employers, will it guarantee me a middle class income in the US? My meme degree has nothing to do with technology but programming seems like an interesting hobby and it would be cool to have a good backup plan.
>>
>>59833382
>>59833403
Go away.
>>
File: kill another anime fag.jpg (646KB, 1141x1545px) Image search: [Google]
kill another anime fag.jpg
646KB, 1141x1545px
>>59833382
>>59833403
>>
>>59833370
Este
>>
Now I have to do a FUCKING DOUBLE SUMMATION. WHAT THE FUCK

I DONT EVEN WANT TO PROGRAM!
>>
Working on a small game, and I need a decent way to implement the tiles. Some of them do nothing but exist and show up, and some of them have unique functions (making units, etc). Is inheritance the best way of doing this? Or do I have different, better options?
>>
File: 1478668050302.gif (189KB, 336x468px) Image search: [Google]
1478668050302.gif
189KB, 336x468px
Is there any reason I should avoid C++ and QT on android?
>>
>>59833458

>double summation
That's like what, two for loops? Who cares?
>>
>>59833496
I care because i have to do it and i dont understand. Once i see the solution it makes sense but i can't come to the solution by myself
>>
Really dumb question but I don't know what question to search for on google so I get irrelevant answers.

In Java, when does an implicit conversion happen at runtime and when does it happen at compile time? For example, if I have:

double a = 5; // compile time?
double b = 5.0 + 5; // compile time?
int c = 2;
double c = Math.min(a * b * c + 10, 40); // c, 10 and 40 converted to double during runtime?


Am I right? Basically if it's not a simple assignment like a/b/c it's better use the explicit type (10.0, 40.0, etc) avoid the extremely irrelevant but easily avoidable runtime conversions?
>>
>>59833492
You should avoid C++ and Qt everywhere.
Android is no exception.
>>
Friendly reminder that Android Java is not Oracle Java.
>>
>>59833529
Why though? I've been programming in QT for a couple of days know and I like it.
>>
>>59833458
You mean like
sum(1:sum(1:n))
>>
File: sun.png (19KB, 180x180px) Image search: [Google]
sun.png
19KB, 180x180px
>>59833540
Friendly reminder that fuck Oracle and Google.
>>
>>59833714
nearly cut myself with this post tbqh
>>
>>59833714
holy shit i get this logo for the first time ever
>>
>>59833736
Bee careful next tim
>>
>>59832457
How are any of those relevant?
>>
File: sun.png (17KB, 180x180px) Image search: [Google]
sun.png
17KB, 180x180px
>>59833796
oh shit i see it too now
>>
>>59833904
wtf i love sun now
>>
Is there something like objdump but which takes a string of instructions instead of an object file?
>>
I did a thing in Javascript last night and now I'm trying to figure out if it's a bad thing to do. Problem is, I don't know what to call it.

function test(number) {  
const num = (number === undefined) ? 'none' : number;
const message = {
one: () => {
return 'one';
},
two: () => {
return 'two';
},
}[num](); // immediately invoked function
console.log(message);
}


this produces:
test(); // 'none'
test('one'); // 'one'
test('two'); // 'two'
test('three'); // 'none'


It seems to be equivalent to the following, but O(1) instead of O(n) (where n is the number of cases)

function test2(num) {
const message = (num==='one') ? 'one' :
(num==='two') ? 'two' : 'none';
console.log(message);
}


Does anyone know what you call this sort of thing, using an object with functions instead of a branch operator?
>>
>>59834107
correction: test('three'); produces an error because message['three'] is not a function.
>>
Need some help anons, what's some places where i can find good info about RAW phyton sintaxis/functions/rules/whatv, books and tutorials do nothing but confuse me
>>
>>59834256
https://docs.python.org/3.5/
>>
>>59834290
Neat, thanks anon
>>
>>59834107
>but O(1) instead of O(n) (where n is the number of cases)
Are you retarded
>>
>>59834107
Function table
>>
How do I use spring in Java without using an xml file?
>>
>>59834290
>3.5
>not 2.7
>or 3.6

and this is why python sucks
>>
>>59834310
A hash table lookup is O(1), sequential ternary operators are O(n).

>>59834335
thanks
>>
>>59834363
There is no reason to use 2.7 unless you are working in a project/company that uses legacy code.

There is no reason to move to 3.6 yet since certain libraries and wheels haven't migrated to 3.5 and 3.5 is considered stable.
>>
File: a-minus-minus.png (27KB, 408x379px) Image search: [Google]
a-minus-minus.png
27KB, 408x379px
well, i'm out of a job. my mechanical keyboard broke and the manufacturer won't honor the warranty, so now i can't code.
>>
>>59833436
>no replies

damn you android poster
>>
>>59834387
>there is no reason to use the most standard version
>there is no reason to use the latest stable release
>>
>>59834387
How is it possible that you can't use libraries written for 3.5 with 3.6? Does Python not even follow semantic versioning?
>>
>>59834398
>typical life of a mechanical keyboard user who pays $200 for his keyboard
>>
File: python.png (4KB, 199x112px) Image search: [Google]
python.png
4KB, 199x112px
>>59834425
The latest stable release is 3.5 not 3.6.
>>
>>59834398
>now i can't code.
Speaking as a fellow mech user, quit being a baby deal with using a membrane.
>>
>>59834398
how did you lose ur job m8
>>
>>59834475
NO!
it's one thing shit posting on the chans, but there's no way i can do serisou shit w/o my mech
>>59834452
typical
type
types (as in coding) type (as in typing)
how many levels of abstractions are you?
>>59834488
well, if i can't code, the company will eventually find out and fire me
>>
>>59834437
The libraries just don't have wheels yet. A lot of them were made during 3.5 and no one bothered making them update to 3.6 and you know libraries are very co-dependent on each other in Python. Break one and the whole house of cards topples.
>>
>>59834506
>how many levels of abstractions are you?
like maybe 5 or 6 right now, my dude
>>
>>59834530
very well,
carry on
carry the one
the one
neo
the matrix
...
>>
>>59831664
Does anyone know why the Ada one works better?
>>
with a degree in cs how much can i expect to make starting? i have 1 more semester to go
>>
>>59834506
Have you ever considered killing yourself for needing a specific kind of keyboard just to code?
>>
>>59834506
>but there's no way i can do serisou shit w/o my mech
You're being ridiculous. Ask yourself; are you really willing to lose your job for some arbitrary reason like this?
>>
>>59834551
avg salaray for cs degree in USA = 80k
>>
>>59834551
$12K
>>
>>59834551
Depends on where you live/willing to work.


Go over to CA and you could easily make $100k+.


Go to some lesser techy location and it could be low, like real low or basic middle class tier wage.
>>
>>59834551
40k if you're indian or non-white
0 if you're not already packing mad connections in the industry
>>
>>59834551
Working while studying is not a thing?
>>
>>59834563
i have to be in the zone to code, and the mech sound, tactile feedback keeps me in the zone.
this chiclet keyboard leaes me looking for the keys and as ou can see it misses some strokes.
>>
>>59834582
>Go to CA
>Make the same amount as lesser techy locations post taxes and rent
>Have to live among utter degenerates
>>
>>59834582
100k is just above reasonable living in California
>>
>>59834607
>>59834625

Yes this may be the case if you choose to live in a area of CA where the cost of living is high. You don't need to live minutes away from your san francicso/silcon valley office.
>>
>>59834642
Yes you can stay in Oakland and get stabbed or get stuck in the famous CA traffic which is an hour and a half commute both ways.
>>
>>59834589
Welp, can't help you. Maybe try amphetamines?
>>
>>59834662
>>59834642
>>59834625
be a specialist, so the company has to pay for you to 'visit' te city and provide housing/hotel
>>
>>59834680
You can't be a specialist after you just finished your CS degree. You need at least a PhD or years of experience. Sometimes both.
>>
>>59832408
ironic shitposting is still shitposting
>>
>>59834662
My commute is already an hour both ways, it's really not that bad.
>>
>>59834714
really?
what's your minor?
that's a special interest
---------
if i hire a programmer to write a chess program, the coder who loves to play chess will do better than the coder who just read the rules.
>>
File: nintchdbpict000251931313[1].jpg (166KB, 950x960px) Image search: [Google]
nintchdbpict000251931313[1].jpg
166KB, 950x960px
>>59834680

>reach a level of competency where people suck your dick to work for them

Is anyone here like that?

Or do you know anyone like that? Because I sure as fuck don't. I know a lot of really smart developers, but none that have clients lined up to give them work. How do you get to that level?
>>
>>59833038
i'm not going to read your code in any attempt to understand i'm just going to ask why you would use a queue instead of a stack to simulate a (stack) of cards
>>
>>59834755
Are you suggesting he pop the entire stack so he can put shit at the bottom?
>>
>>59834727
Yeah but you live in CA

>>59834740
Passion can be cultivated desu. I work in the GIS field and I had no experience or passion for it when I first started.
>>
>>59834775
>Passion can be cultivated desu. I work in the GIS field and I had no experience or passion for it when I first started.
if you ran a website and business for LGBT culture, you want to hire a queer coder to do your code, no regular person will develop a passion to promote faggotry
>>
>>59834820
If you paid me a good amount to code for your LGBT site, I would be passionate as fuck and even wear makeup. Money is the main motivation here.
>>
File: is this guy serious.gif (61KB, 736x689px) Image search: [Google]
is this guy serious.gif
61KB, 736x689px
>>59834867
>>
>>59834820
Biases can be a bad thing and usually leads to hiring under qualified people just because they align with your views.
>>
File: 2349083773.png (121KB, 1156x618px) Image search: [Google]
2349083773.png
121KB, 1156x618px
Does anyone have download link for the full video course?

>INB4 Python
>>
File: 1452403462016.png (79KB, 307x400px) Image search: [Google]
1452403462016.png
79KB, 307x400px
>>59834916
>Python
>>
>>59834867
bullshit
human nature = you will be passionate about the money. you will do as much as you can to please your master (your master =the money, and it's master is the company)

the guy who believes in the cause is always more passionate and creative and resourceful.

see: gordon ramsey (or emeril legassi) vs McD's worker, or even 4-Seasons staff
>>
>>59834924
>see: gordon ramsey (or emeril legassi) vs McD's worker, or even 4-Seasons staff

Have you seen the difference in their salary fucciboi?

That is the equivalent of saying the guy who is paid more is more passionate about his job. No fucking shit.
>>
>>59834820
true story here, went to interview for an IT position the local MLB team here in my city and one of their first questions was "Do you love baseball and our team here?" to which I said yeah because I did and he literally just follows it up with "Oh that's too bad, we're mainly looking for people who don't in order to avoid it being a distraction."

I was pretty taken back by it.
>>
>>59834916
The book is good enough and it is free. Why do you need the video?
>>
>>59834937
u dumbfuck, they got the high paying gigs because they had the passion to be great at what they do
>>
>>59834945
I'm an idiot and it helps me learn if I can watch a video instead.
>>
>>59834971
No one works at mcdonalds because they want to be a chef
>>
guys why does my code set fault?

    node head = {0, NULL};

node * test = &head;

node * c = (node *) malloc( sizeof( node ) );

test->next = c;
>>
>>59834971
Explain all the passionate people who aren't in high paying gigs. Or all the unpassionate people who are in high paying gigs. What about them? People like Gordon Ramsey are the exception not the norm.
>>
>>59834971
Someone working at McD's life goal is likely not to become a chef. McD's is a HS job or one for unemployed people who have given up hope.
>>
>>59834986
If you are an idiot, just pay the 30 bucks.
>>
>>59835009
Too stupid to have money.
>>
>>59835018
Then you are better off not learning anything
>>
>>59835027
I'll just read the book :^)
>>
>>59835002
>>59834998
the point is they all cook
just like all coders code
but those with purpose are the better performers and they are the ones to likely be in a position to seize a great opportunity.

u faggots are talking like leftists, just leave here and go to your safe-spaces
>>
File: Project3.png (155KB, 827x954px) Image search: [Google]
Project3.png
155KB, 827x954px
This. I have some provided code, and I need to find words in a matrix horizontally. I'm familiar with reading shit from a file, but not that good with matrices, even though the project itself talks ab it about it. Any advice? I also don't want to have a shitton of "if-else statements" when I'm checking for my words. I'll post the code my prof gave as well.
>>
File: provided code.png (50KB, 1340x893px) Image search: [Google]
provided code.png
50KB, 1340x893px
>>59835038
Here's the code the professor provided, my job is to edit it to make the program work.
>>
>>59835034
mcdonalds does not cook.

putting something in the microwave is not cooking.
>>
>>59835034
>you guys are talking like leftists
>muh passion
>>
>>59834993
sorry, seg fault. No idea what my error is
>>
>>59835064
they fry, grill and bake
they only nuke to reheat the stuff they made too much of
>>
>>59835034
>Working and performing well for the purpose of money and job promotions is leftist talk

You are fucked in the head. Please see a doctor. This has been survey time and time over before and the top reasons why people want to be better performers is

>Future opportunity and promotions
>Stable future
>Money
>>
>>59835082
Bullshit. Save for maybe a pre-cooked burger patty that simple has to be thrown onto the grill and flipped after x minutes.


There is a huge difference between being a chef at a restaurant and working a as a glorified burger flipper.
>>
>>59835038
Do you have a dictionary to check your hypothetical words against?
>>
>>59835034
i think your comparison is very broken. comparing chefs to mcdonald workers is like comparing C programmers to VB.net or some lego drag and drop programming language 'programmers'
>>
>>59835057
>>59835038
What is the problem? No where do you have to use massive if-else statement
Your prof already gave you everything you need. The hard part is saving the letters of the matrix to a 2D array. Do your own homework.
>>
great
now I want a burger
and a pint of guiness
and a glass of whiskey

>>59835073
post full code
>>
>>59835115
>can't read
An inefficient method would be to check every letter all the way to the end of the line. That's O(N^2) I'm pretty sure.
>>
>>59835108
ok... i can't believe i am defending McD's here... but you are so wrong it has to be pointed out.

McD's grills the frozen uncooked beef, they grill the the grilled chicken frozen uncooked, they actually crack and fry eggs for the McMuffins. they deep fry uncooked frozen nuggets, fries, fish.
the only thing that is precooked is the buns, and maybe the pies are just reheated in the oven.
>>
I have a server, i can write basic python/go.
What should i do with it thats sort of interesting?

Fake ad's on reddit and fuck about with the people who click it

crawl the web?

dl' all porns?

gimme a sweet idea kids
>>
>>59835134
```
typedef struct nodes {
int data;
struct nodes * next;
} node;

/*
Accept a head pointer,
Print the entire list as it is, in order
*/
void print_list(struct nodes * front) {
node * tmp = front->next;
while( tmp != NULL ) {
printf("%d ", tmp->data);
tmp = tmp->next;
}
}


void add(node * front, int data) {

node * prev = front;
node * scout = front;

/*
When 'scout' is null, we've reached the end of the list
prev will be the last node in the list
*/
while( scout != NULL ) {
prev = scout;
scout = scout->next;
}

//prev points to the end of the list now.
//add a node
scout = (node *) malloc( sizeof(node) );
scout->data = data;

prev->next = scout;

}

int main(int argc, const char * argv[]) {

node head = {0, NULL};

add(&head, 10);

print_list(&head);


return 0;
}
```
>>
>>59835153
How much is McDonald's paying you to shill for them?
>>
>>59835134
Ignore my fuckup

typedef struct nodes {
int data;
struct nodes * next;
} node;

/*
Accept a head pointer,
Print the entire list as it is, in order
*/
void print_list(struct nodes * front) {
node * tmp = front->next;
while( tmp != NULL ) {
printf("%d ", tmp->data);
tmp = tmp->next;
}
}


void add(node * front, int data) {

node * prev = front;
node * scout = front;

/*
When 'scout' is null, we've reached the end of the list
prev will be the last node in the list
*/
while( scout != NULL ) {
prev = scout;
scout = scout->next;
}

//prev points to the end of the list now.
//add a node
scout = (node *) malloc( sizeof(node) );
scout->data = data;

prev->next = scout;

}

int main(int argc, const char * argv[]) {

node head = {0, NULL};

add(&head, 10);

print_list(&head);


return 0;
}

>>
>>59835168
actually about 18 years ago, they paid me $5.25/hr
and that's how i know this shit.
but i hate McD's food and wouldn't shill for them (unless payed 7 figures)
just laying out the truth
>>
>>59835172
You can delete posts, bud.
>>
>>59835153
McD follows a set and rigid procedures to cook their food. You can't innovate on the ingredients nor can you be creativity in the cooking methods. How the fuck can you compare that to Gordan Ramsey or even a Chef in a restaurant that gets to create his dishes.
>>
>>59835172
Statically verify it, please
>>
>>59835153
>beef
flip, wait, flip, wait
>chicken
flip, wait, flip, wait
>mcmufin
crack into mold, wait since they probably use molds that have a iron top so it cooks throughout you don't even need to flip the bastard
>anything fried
literally throw in a frier basket and put in for x minutes

this is nothing like being an actual chef
>>
>>59835194
exactly!!!
company hires Joe Coder and says build us an app to trade pokemon cards, Joe has zero interest in pokemon = rigid app nased on the simplest rules

Ash learns to program and since he has pre-existing love for pokemon, his trading app = unique, innovative and dynamic
>>
>>59835172
where are your free()s, anon?
>>
>>59835038
read the matrix into 2d array
and
check each line of the 2d array for the words
>>
myClasses

class Users
string userName
string userID
int NumberInQuestion.lifePathNumber
int NumberInQuestion.soulNumber
int NumberInQuestion.attitudeNumber
int NumberInQuestion.personalityNumber
int NumberInQuestion.powerNameNumber
int NumberInQuestion.birthDayNumber
int NumberInQuestion.destinyNumber

class NumberInQuestion
int lifePathNumber
int soulNumber
int attitudeNumber
int personalityNumber
int powerNameNumber
int birthDayNumber
int destinyNumber

class Inputs
string commonName
string firstName
string middleNames
string lastName
string birthName
string birthYear
string birthMonth
string birthDay


challenge:
add punctuation for your OOP of choice
>we have to guess which language you chose
>>
>>59835242
I haven't wrote them yet.
>>
>>59835235
That's a bullshit example. I can have zero passion for pokemon and still be clever in how I implement a pokemon card trading app and suggest ideas to improve it for the user. Why? Because it's my job and if the users aren't happy then the app fails and if the app fails I lose my job which means no money. See how money is what really keeps me going here?

The same can't be said for a McDonalds worker who isn't allowed to think outside the box. You're part of a machine and if you break they replace you (sometimes).
>>
>>59835235
Are you a fucking moron?
McD has a strict set of rules you have to follow. Doesn't matter how much you fucking love to flip burgers, you are not making a unique, innovative or dynamic quarter pounder you imbecile. It is hard to imagine an idiot as stupid as you.

Tell me what is the difference in the burger that Joe who has no interest in cooking makes vs the burger that Ash who fucking loves within the restrictions of McD's cooking procedures.
>>
I can do the first part, but how should I go about the second part? I'm not sure how to compare a set of characters to the correct word, especially when some of the words both start with the same few letters (i.e. he, hew)
>>
File: nyoro~n.jpg (44KB, 480x465px) Image search: [Google]
nyoro~n.jpg
44KB, 480x465px
I feel like we're being flooded with pajeets asking /g/ to do their CS homework.
>>
>>59835286
Meant for >>59835246
>>
>>59835295
No, I'm just a retarded whitey who only knows Java from high school
>>
>>59835286
Start with two letter and begin looking it up in the dictionary. Add a letter and look that up in the dictionary. Add every letter on the line and look it up in the dictionary. Continue for each letter on the line.

That's your algorithm.
>>
>>59835286
>>59835299
http://beginnersbook.com/2013/12/java-arraylist-contains-method-example/
>>
>>59835271
Then why the fug are you testing your program if you can't even free your memory yet?
>>
>>59835284
as a former McD's employee:
(i like to cook, i like good food)
so when i was running the grill or sandwich build station, i would NOT allow old dry burgers to go on a bun. i would NOT over salt the meat.
then as a professional driver for 15 years, i've had to use fast food a lot. so i've been to MANY (at least 150 different McD's locations)

most fuckers just don't care. next time you get a burger, check and see how old/dry the meat is. (usually the lower class neighborhood the store is in = the lower class burger you'll get served) disproving the money factor as those who NEEDED the money the most are LEAST likely to take pride in their work.
>>
>>59835286
pass the first row into your checkword method

check if each entry in list against the word string
>>
>>59835312
this is a retarded idea which so much unnecessary overhead
>>
>>59835350
>disproving the money factor as those who NEEDED the money the most are LEAST likely to take pride in their work.

This has to be the most fucking moronic statement I ever heard. Getting monetary bonuses at work has a direct correlation with how good your work is. I like how you because you don't allow old dry burgers to go onto a bun suddenly you are as creative and as innovative as Gordan Ramsey. The fuck is wrong with you in the first place to make that comparison.

>I love money so much that I will take no pride in my work and produce shit work that will get me fired, passed over for promotions or affect my year end bonus
Somehow this statements make sense to you. Amazing.
>>
>>59835260
looks like a fun project, but i never did any java shit
i only use assembly
>>
>>59835374
My man I didn't say it was good. What are some other ways when you don't know what words you're looking for?
>>
>>59835389
i was being as creative and innovative and caring about my work as i could be within the the tight constraints of the standard procedures.

you should visit my kitchen now. i'll make you a burger that will blow your fucking mind.
ramsey ain't got shit on me!
>>
File: $.gif (1002KB, 250x251px) Image search: [Google]
$.gif
1002KB, 250x251px
Anyone here every reserve engineer stuff? Is there a good process for going about reserve engineering a resource file structure that's some custom proprietary thing that may be also encrypted but the key obviously is somewhere in the executable logic.
>>
>>59835405
His prof already said save the letters of the matrix to a 2D array so I assume that his prof wants him to form words of every permutation and combination from the array.
>>
>>59835424
>i was being as creative and innovative and caring about my work as i could be within the the tight constraints of the standard procedures.

So you think that is apt comparison to someone with complete freedom of creative and control of his own kitchen? Really now?

Face it. Money is a huge motivation. People have done fucking stupid shit in the name of money. Like really fucking stupid shit for trivial amount of cash. Is it so hard to imagine someone working hard and doing his job well for money?
>>
>>59835405
basically .contains does all the lifting you need as >>59835323 said

I dont know .contains is programmed to run but a better way would be to take the first letter of the word you are looking for and then sweep through the string. When you find a match, look at the next letter in the string and the next letter of the searchword, and then go from there
>>
>>59833053
>C# is somehow not pajeet.
Nice try, Raj.
>>
>>59835425
you mean the public key?
>>
>>59835425
See if it changes its representation significantly when it's in memory as opposed to when it exists as code
>>
I did my entire CS assignment without my partner and he doesn't know, he just messaged me asking to work on it. I feel bad.
What do
>>
>wow this guy agrees with my worldview, he must be a good programmer
>>
>>59835479
Ive been doing all the homework from my group in one of my classes.

I want to throw them under the bus because they dont fucking help me at all
>>
>>59835454
Well isn't that the same thing I said? You start with a letter once you have something, and then analyze the next letter. Genuinely confused as to how what you said is different from what I said.
>>
i'm tired, why is this segfaulting?
#include <stdio.h>
#include <stdlib.h>

void squeeze(char* str1, char* str2)
{
int i, iNew, j, member;
iNew = 0;
for(i = 0; str1[i] != '\0'; ++i)
{
printf("%c\n", str1[i]);
member = 0;
for(j = 0; str2[j] != '\0'; ++j)
{
printf("\t%c\n", str2[j]);
if(str2[j] == str1[i]) member = 1;
}
if(!member) str1[iNew++] = str1[i];
printf("\t\t%c\n", str1[iNew]);
printf("%d %d %d\n", i, j, iNew);
}
str1[iNew] = '\0';
}

int main()
{
char* str = "barack hussein obama";
char* str2 = "abracadabra";
squeeze(str, str2);
printf("%s\n", str);
return 0;
}


squeeze removes what is it str2 from str1
>>
>>59835479
delete half the code and tell him to work on it.
>>
>>59835479
Tell him the truth and ask him to suck your dick in exchange.
>>
>>59835462
Yeah I guess depending on the type of encryption they used for the file it could be just a public key.

>>59835472
Is there easy ways to do this? Last time I took a stab at it I disassembled it with Ida and traced it back to what seemed like the resource loader but it was so all over the place and not as helpful.
>>
>>59835449
so you are saying you are a whore?
whores do anything for money. and they may be very good at what they do.
but there's something extra about the one who has passion for the cause, product and not just a passion for the money.

you can rent a whore for the night or the week.
you can have some amazeballs sex.
she wants to please you for your cash

or

you can have a wife (gf) who LOVES YOU and wants to please you because she cares for you.
yes, to keep her it will still cost you money, food shelter, clothing, etc...

both provide sex, but there's a big difference
>>
>>59835502
Not the way you worded it. You made it sound like this:

The entire line is QWERTY.
Q
>check dictionary
QW
>check dictionary
QWE
>check dictionary
etc etc
>>
>>59835495
It's not that he isn't trying hard enough (although he is garbage programmer), it's just that I did it all a few days early on a whim

>>59835509
That's what I will probably do

>>59835513
I don't want him to suck my dick
>>
>>59835527
whores have sex for money, i write software. have some shame, or at least a sense of self awareness, trash
>>
>>59835527
The fuck is wrong with you. Having a wife is different from having a whore you utter moron. Your analogies are about as shit as your thinking. I am not sure how you think doing your job well for good wages means being a whore.
>>
>>59835530
Ah. Yep.
>>
>>59835479
just tell him to do the rough draft and you'll polish it up. then provide what you already did. tell him nbext time you get to do the rough draft and he gets to do the finishing touches
>>
new thread: >>59835479
new thread: >>59835479
new thread: >>59835479
 this.goto Start [code/]
>>
>>59835584
HELP ME IM IN AN INFINITE LOOP
>>
>>59835595
just apply the break;s
>>
>>59835172
>scout = (node *) malloc( sizeof(node) );
>scout->data = data;
after this add:
scout->next = NULL;


Without the code above the while loop will compare an uninitialized pointer with NULL therefore you may get segfaults.

Always use valgrind to test code like this if you aren't used to writing C.

Also dont come to /g/ for programming advice. This place is a designated shitposting area.
>>
>>59835584
>>59835595
Lol
>>
>>59835601
>>59835595
>>59835584
kek
>>
>>59835676
>>
>>59835326
because the operating system will free it at program close

>>59835602
Thanks. I knew I was forgetting something.
Thread posts: 318
Thread images: 42


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.