[QUOTE=Swebonny;33173572]Why are you learning C?
And you're not alone :v:[/QUOTE]My dad said that's a good starting language, and it helps you to learn others.
I've heard it's quite hard.
I'd probably go for Java or Python.
Doing Java at school, but tried to learn a bit C++ when I wasn't studying CS.
I'd recommend learning C eventually. It's quite a bit more low-level than most other common languages, and you'll really improve your understanding of the inner workings of the computer. In Java, you magically create arrays and allocate memory that magically disappears when you're not using it any longer, not to mention its object-oriented wizardry and strange optimisation. By learning C, you'll get quite a bit more of an understanding for how all of this is managed. But all this low-level power can be confusing if you don't have some experience with more "forgiving" languages like Java.
I'd also recommend taking a look at an Assembly language for even lower-level stuff. You learn a lot from knowing how things [i]actually[/i] work.
We're going to do C and an Assembly language in year two.
Here's the description of the course if you're interested.
[url]http://www.kth.se/student/kurser/kurs/IS1500?l=en_UK[/url]
[QUOTE=Swebonny;33173861]We're going to do C and an Assembly language in year two.
Here's the description of the course if you're interested.
[url]http://www.kth.se/student/kurser/kurs/IS1500?l=en_UK[/url][/QUOTE]
Yeah, it's similar to [url=http://www.uio.no/studier/emner/matnat/ifi/INF1060/index-eng.xml]these[/url] [url=http://www.uio.no/studier/emner/matnat/ifi/INF2270/index-eng.xml]two[/url] courses we have here in Oslo. It's good shit.
[QUOTE=Anonim;33173944]Yeah, it's similar to [url=http://www.uio.no/studier/emner/matnat/ifi/INF1060/index-eng.xml]these[/url] [url=http://www.uio.no/studier/emner/matnat/ifi/INF2270/index-eng.xml]two[/url] courses we have here in Oslo. It's good shit.[/QUOTE]
Cool, are you studying there?
[QUOTE=Swebonny;33174018]Cool, are you studying there?[/QUOTE]
Sure am. Software development with a dash of business/finance and electronics.
[QUOTE=Anonim;33174045]Sure am. Software development with a dash of business/finance and [B]electronics.[/B][/QUOTE]
That's probably why you get those cool courses. We're only getting one 9 credit course on computer components and architecture. Doing CS and Engineering.
I'm only in highschool at the moment, in South Alabama. So I'm almost positive that there's no programming courses here. Even if there was, it would probably be extremely rudimentary; I mean, look at their "visual arts" page. [url]http://enterprise.al.ech.schoolinsites.com/?PageName=%27FineArtPage%27&FineArtID=%274165%27[/url]
[editline]8th November 2011[/editline]
By the way, does anyone have a different tutorial that they think is more helpful than cprogramming.com?
Oh my god it feels so good to complete some fully working code, it feels like you just buttfucked something.
[QUOTE=Meatpuppet;33174380]I'm only in highschool at the moment, in South Alabama. So I'm almost positive that there's no programming courses here. Even if there was, it would probably be extremely rudimentary; I mean, look at their "visual arts" page. [url]http://enterprise.al.ech.schoolinsites.com/?PageName=%27FineArtPage%27&FineArtID=%274165%27[/url]
[editline]8th November 2011[/editline]
By the way, does anyone have a different tutorial that they think is more helpful than cprogramming.com?[/QUOTE]
What part of Alabama? Also, I don't know of any good C tutorials off the top of my head but there's a pretty straightforward C++ tutorial (and full reference) available at [url]http://cplusplus.com/doc/tutorial/[/url]. MOST of that should carry over to C except for OOP and STL. That's my two cents, if anyone else has a link to a good C tutorial listen to them.
[QUOTE=Swebonny;33174311]That's probably why you get those cool courses. We're only getting one 9 credit course on computer components and architecture. Doing CS and Engineering.[/QUOTE]
The electronics bit is mostly theory ([i]fucking god damned transistor capacitance and cross-talk fuck![/i]), circuitry and some chip-based hardware-related courses.
We also have a few completely open courses where we choose freely. Additionally, I take extra credits just because, so I have some choices there as well.
Most of the low-level computer architecture courses sort of fill the gap between software and hardware, but they're very appropriate for a software engineer.
[editline]8th November 2011[/editline]
Also, be wary of how deep into the architecture you want to go. I took a course on transistor design... [i]Too deep.[/i] The amount of things you have to keep in mind just to make a simple circuit (with a grand total of [i]nine[/i] transistors as below) that's both logically and electrically valid is absolutely ridiculous.
[img]http://i.imgur.com/MaBnA.png[/img]
[img]http://i.imgur.com/Re2w6.png[/img]
[QUOTE=Anonim;33180526][img]http://i.imgur.com/MaBnA.png[/img][/QUOTE]
What is it?
Ah, it's a flip-flop.
[QUOTE=ROBO_DONUT;33182249]What is it?[/QUOTE]
It's part of a 4GHz TSPC dynamic flip-flop.
I remember spending so much time on that single basic flip-flop. Especially the actual layout. That was horrible.
Also, it's a 120nm process, so not exactly state-of-the-art, but we were using slightly outdated packages for Cadence.
[QUOTE=Anonim;33182293]It's part of a 4GHz TSPC dynamic flip-flop.
I remember spending so much time on that single basic flip-flop. Especially the actual layout. That was horrible.
Also, it's a 120nm process, so not exactly state-of-the-art, but we were using slightly outdated packages for Cadence.[/QUOTE]
I was stumped by the lack of feedback that I kind of assumed every stable circuit has. I guess, though, that it's just 'stable enough' at high speed without feedback.
[QUOTE=ROBO_DONUT;33182397]I was stumped by the lack of feedback that I kind of assumed every stable circuit has. I guess, though, that it's just 'stable enough' at high speed without feedback.[/QUOTE]
Yeah, dynamic flip-flops aren't particularly stable. You need to maintain a pretty high frequency for them to work.
Aonim your post count is 665.
[QUOTE=Jookia;33182683]Aonim your post count is 665.[/QUOTE]
My, what excellent powers of deduction you have.
[QUOTE=Chris220;33183141]My, what excellent powers of deduction you have.[/QUOTE]
I can tell this by their post counter.
[editline]9th November 2011[/editline]
I have a pipe.
[QUOTE=Jookia;33183219]I can tell this by their post counter.
[editline]9th November 2011[/editline]
I have a pipe.[/QUOTE]
Exactly how high/drunk are you right now?
Not too sure if this is the correct place, but here goes.
I've started learning how to use actionscript 3.0 by making a simple calculator. I've got all the +-x/ functions working fine. One issue I have run into is adding a decimal place by pushing a button.
the way I have it working at the moment, is that when you press each number, it converts what's in the memory to a string, adds the number on the end, then converts back. I'm like 99% sure this isn't the best way of doing it, as when the number is converted from string to number it removes the decimal.
So my question is, is there a way of using concat on a number variable? and can I do it with a decimal place?
here's what I've got so far:
[url]http://dl.dropbox.com/u/20632/Calculator.swf[/url]
[QUOTE=Chris220;33183271]Exactly how high/drunk are you right now?[/QUOTE]
If I blew in to a tube my computer wouldn't ever turn on again.
[QUOTE=Flon22;33183346]Not too sure if this is the correct place, but here goes.
I've started learning how to use actionscript 3.0 by making a simple calculator. I've got all the +-x/ functions working fine. One issue I have run into is adding a decimal place by pushing a button.
the way I have it working at the moment, is that when you press each number, it converts what's in the memory to a string, adds the number on the end, then converts back. I'm like 99% sure this isn't the best way of doing it, as when the number is converted from string to number it removes the decimal.
So my question is, is there a way of using concat on a number variable? and can I do it with a decimal place?
here's what I've got so far:
[url]http://dl.dropbox.com/u/20632/Calculator.swf[/url][/QUOTE]
Remember the phrases "ones-place", "tens-place", and "hundreds-place" from grade school? Well, kinda like that.
3.14159 is 3 + 1/10 + 4/10^2 + 1/10^3 + 5/1^4 + 9/10^5, et cetera.
In pseudocode:
[code]
def read_fractional():
numerator = 0
divisor = 1
while true:
input key
if isdigit(key):
numerator = numerator * 10 + digit(key)
divisor = divisor * 10
else:
break
return numerator / divisor
def read_number():
x = 0
while true:
input key
if key == decimal_point:
return x + read_fractional()
elif isdigit(key):
x = x * 10 + digit(key)
else:
break
return x
[/code]
[QUOTE=Jookia;33182683]Aonim your post count is 665.[/QUOTE]
Not anymore!
How to store a maze in a boolean array where the maze size is 1 pixel for the wall and path by going pixel by pixel?
[editline]8th November 2011[/editline]
oh so thats how this question is dumb.. well Facepalm:
just fill each part of the array with whether or not the pixels' black or not
It bugs me when I see "How to... ?". Pretty sure that's grammatically incorrect. Should be "How do I... ?", "How does one... ?", or "Could anyone explain how to... ?".
I'd answer the question, but I'm not sure what you mean. It seems like you've answered your own question.
You'd have a boolean array of pixels, where even-indexed cells were nodes (i.e. x = 2n, y = 2m), odd-indexed cells (x = 2n+1, y = 2m+1) are always walls, and other cells could be either solid walls or hallways between cells (horizontal: x = 2n+1, y = 2m or vertical: x = 2n, y = 2m+1).
About ~half the data is wasted (even-indexed cells are always open and odd-indexed are always closed), but it's really insignificant.
[QUOTE=ROBO_DONUT;33187318]It bugs me when I see "How to... ?". Pretty sure that's grammatically incorrect.[/QUOTE]
By itself, it is obviously, seeing as the sentence has no predicate verb and is thus incomplete.
[QUOTE=ROBO_DONUT;33187318]It bugs me when I see "How to... ?". Pretty sure that's grammatically incorrect. Should be "How do I... ?", "How does one... ?", or "Could anyone explain how to... ?".
I'd answer the question, but I'm not sure what you mean. It seems like you've answered your own question.
You'd have a boolean array of pixels, where even-indexed cells were nodes (i.e. x = 2n, y = 2m), odd-indexed cells (x = 2n+1, y = 2m+1) are always walls, and other cells could be either solid walls or hallways between cells (horizontal: x = 2n+1, y = 2m or vertical: x = 2n, y = 2m+1).
About ~half the data is wasted (even-indexed cells are always open and odd-indexed are always closed), but it's really insignificant.[/QUOTE]
I usually don't do something like how to--
anyway I gave up since I can't even figure out how to solve it :P
Does anyone know if its possible to add comments into json using jsoncpp?
[QUOTE=Richy19;33190228]Does anyone know if its possible to add comments into json using jsoncpp?[/QUOTE]Any JSON pasrser should ignore javascript style comments. i.e. /* */ and //
Sorry, you need to Log In to post a reply to this thread.