• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 16:00
CET 22:00
KST 06:00
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
TL.net Map Contest #21: Winners2Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10[ASL20] Finals Preview: Arrival13TL.net Map Contest #21: Voting12[ASL20] Ro4 Preview: Descent11
Community News
Starcraft, SC2, HoTS, WC3, returning to Blizzcon!20$5,000+ WardiTV 2025 Championship5[BSL21] RO32 Group Stage3Weekly Cups (Oct 26-Nov 2): Liquid, Clem, Solar win; LAN in Philly2Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win9
StarCraft 2
General
TL.net Map Contest #21: Winners Starcraft, SC2, HoTS, WC3, returning to Blizzcon! RotterdaM "Serral is the GOAT, and it's not close" Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win 5.0.15 Patch Balance Hotfix (2025-10-8)
Tourneys
$5,000+ WardiTV 2025 Championship Constellation Cup - Main Event - Stellar Fest Merivale 8 Open - LAN - Stellar Fest Sea Duckling Open (Global, Bronze-Diamond) $3,500 WardiTV Korean Royale S4
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened Mutation # 496 Endless Infection Mutation # 495 Rest In Peace
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ SnOw's ASL S20 Finals Review [BSL21] RO32 Group Stage Practice Partners (Official) [ASL20] Ask the mapmakers — Drop your questions
Tourneys
[Megathread] Daily Proleagues [BSL21] RO32 Group B - Sunday 21:00 CET [BSL21] RO32 Group A - Saturday 21:00 CET BSL21 Open Qualifiers Week & CONFIRM PARTICIPATION
Strategy
Current Meta How to stay on top of macro? PvZ map balance Soma's 9 hatch build from ASL Game 2
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Dawn of War IV ZeroSpace Megathread General RTS Discussion Thread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine YouTube Thread Dating: How's your luck?
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece Korean Music Discussion Series you have seen recently...
Sports
2024 - 2026 Football Thread NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Recent Gifted Posts
Blogs
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Why we need SC3
Hildegard
Career Paths and Skills for …
TrAiDoS
Reality "theory" prov…
perfectspheres
Our Last Hope in th…
KrillinFromwales
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1250 users

The Big Programming Thread - Page 134

Forum Index > General Forum
Post a Reply
Prev 1 132 133 134 135 136 1032 Next
Thread Rules
1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution.
2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20)
3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible.
4. Use [code] tags to format code blocks.
snively
Profile Blog Joined August 2011
United States1159 Posts
April 24 2012 21:08 GMT
#2661
On April 24 2012 08:43 RoTaNiMoD wrote:
snively:

When you declare variables without pointers in c++, they are indeed analogous to being "chunks of space in memory, in a line". These variables are stored on the stack. However, dynamic arrays, allocated with the new keyword, are stored in the heap. The heap can be viewed as a vast chunk of available memory, whereas the stack is comparatively limited. Compilers handle the details of heap storage differently, but when you declare an array of 120 items, the metadata of that memory is stored somewhere. The new keyword returns a pointer to the start of the array, but the compiler maintains information about how many elements that array contains, such that when you delete[], everything ends up fine and dandy.

For more information, google/wiki stack vs heap memory.


wow.

thanks a lot :D
My religion is Starcraft
mindspike
Profile Blog Joined December 2002
Canada1902 Posts
April 24 2012 21:24 GMT
#2662
On April 12 2012 17:29 Morfildur wrote:

Somehow reading this post made me angry...

Programming is no "get rich fast" scheme, it requires a lot of dedication, hard work and _experience_. Yes, you can become a web designer by copy-pasting a lot of stuff together, a child could do that. However, you will need a lot more time for everything than an experienced programmer, which means in the end you will have to provide your services either for more money than your competitors or work around minimum wage (or below) anyways.



Mark Zuckerberg would beg to differ

Don't take me literally, I'm just saying that its possible to get rich fast - especially if you have other programmers to leech off of.
zerg/human - vancouver, canada
holdthephone
Profile Blog Joined August 2010
United States523 Posts
Last Edited: 2012-04-24 21:39:12
April 24 2012 21:36 GMT
#2663
So I'm wrapping up the design of my first website, and so far it's functional for what it needs to do.It will be a while before I actually launch it, as I still have much to learn, but where to from here? Primarily, for a blog site (say, like Joystiq.com), how would I go about integrating a form submission for new articles, letting me add my new content automatically instead of more or less hardcoding new pages? Does this require database integration?

I'm curious about Comment and message board features as well. I'd rather learn how to do this myself rather than pay extra.
Nick3
Profile Joined March 2011
513 Posts
April 25 2012 07:35 GMT
#2664
On April 25 2012 06:36 holdthephone wrote:
So I'm wrapping up the design of my first website, and so far it's functional for what it needs to do.It will be a while before I actually launch it, as I still have much to learn, but where to from here? Primarily, for a blog site (say, like Joystiq.com), how would I go about integrating a form submission for new articles, letting me add my new content automatically instead of more or less hardcoding new pages? Does this require database integration?

I'm curious about Comment and message board features as well. I'd rather learn how to do this myself rather than pay extra.


Yes you will need a database for storing purposes and some server-side language such as PHP to be able to actually make the site dynamic. It is all very dependent on what you actually want to do, you could probably use JavaScript for the server side part if it isn't to complicated.
Clearout
Profile Blog Joined April 2010
Norway1060 Posts
Last Edited: 2012-04-27 08:07:59
April 27 2012 08:07 GMT
#2665
On March 28 2012 04:54 CecilSunkure wrote:
Show nested quote +
On March 27 2012 10:57 berated- wrote:
On March 27 2012 10:27 teamamerica wrote:
Hey guys, I'm a pretty noob cs guy (2nd year of B.S) but I was wondering what you guys thought of this list of what every cs major should know. It pretty comprehensive and something I'd like to refer to from time to time as a kind of checkoff list of things to learn.


If you know all of those things I doubt there is a company in the world that wouldn't hire you. We ask the people we are trying to hire to have about 1/4 of those requirements and still can't find them.

Pretty interesting. I read the K & R book and luckily I know and have experience with everything there except hash lookups, which I'll be writing this summer for use in projects next term. I'm also solid on the mathematics (take a ton at my college). Also taking multiple years of C++ and doing many large projects from scratch in C++. Have experience writing in Assembly as well, but not a whole lot. Would love to learn more but have to wait until 3rd year where we program an 8-bit microprocessor to run a game on a hand-held device. Going to be so fun! Hopefully I can apply what I learn on a side-project of creating a SNES game. Always been interesting in coding something for the SNES. Also have classes on operating systems and will be creating networking for game projects in C++. Many classes on graphics programming, AI, databases and data structures, there's a machine learning class though it's not on the required course sequence.

Looks like I'm in a good position

https://www.digipen.edu/academics/degree-programs/real-time-interactive-simulation/course-sequence/
https://www.digipen.edu/academics/course-catalog/course-descriptions/computer-science-cs/
I read through that list, and I wonder, is that considered good for 3 years of study? I've always felt I don't learn anything near enough in my computer engineering degree to be properly useful for a company, but reading that list I know most of those, and the others I don't know I will have courses on soon (finishing up my 4th semester now). Though we focus heavily on Java as a language, only some tidbits of SQL, html, xml, assembly and so on. Generally, is whats on that list really that comprehensive and useful?
really?
heroyi
Profile Blog Joined March 2009
United States1064 Posts
April 29 2012 16:16 GMT
#2666
I was wondering if anyone can recommend some good ol textbooks to read that will sufficiently educate me in w.e programming language I wish to learn. A book that has enough knowledge and sufficient enough to make me to have skills to make me competitive in the..."software employment market?"
I was looking for c++, python, and java for starters.

Any specific recommendations?
wat wat in my pants
Anacletus
Profile Blog Joined April 2012
United States733 Posts
April 29 2012 16:20 GMT
#2667
On April 30 2012 01:16 heroyi wrote:
I was wondering if anyone can recommend some good ol textbooks to read that will sufficiently educate me in w.e programming language I wish to learn. A book that has enough knowledge and sufficient enough to make me to have skills to make me competitive in the..."software employment market?"
I was looking for c++, python, and java for starters.

Any specific recommendations?


Check this site out, it has a lot of books that are highly recommended.

http://hn-books.com/

Scroll through until you find books that peak your interests.
http://talk-to-stimey-please.1324083.n2.nabble.com/
heroyi
Profile Blog Joined March 2009
United States1064 Posts
April 29 2012 16:38 GMT
#2668
On April 30 2012 01:20 Anacletus wrote:
Show nested quote +
On April 30 2012 01:16 heroyi wrote:
I was wondering if anyone can recommend some good ol textbooks to read that will sufficiently educate me in w.e programming language I wish to learn. A book that has enough knowledge and sufficient enough to make me to have skills to make me competitive in the..."software employment market?"
I was looking for c++, python, and java for starters.

Any specific recommendations?


Check this site out, it has a lot of books that are highly recommended.

http://hn-books.com/

Scroll through until you find books that peak your interests.

Sweet thanks.

Also (to everyone): Has anyone heard of antiRTFM user on youtube? He does videos on c++ and I was wondering what you guys thought about him?

this is him on doing pointers and arrays
wat wat in my pants
Anacletus
Profile Blog Joined April 2012
United States733 Posts
April 29 2012 16:47 GMT
#2669
On April 30 2012 01:38 heroyi wrote:
Show nested quote +
On April 30 2012 01:20 Anacletus wrote:
On April 30 2012 01:16 heroyi wrote:
I was wondering if anyone can recommend some good ol textbooks to read that will sufficiently educate me in w.e programming language I wish to learn. A book that has enough knowledge and sufficient enough to make me to have skills to make me competitive in the..."software employment market?"
I was looking for c++, python, and java for starters.

Any specific recommendations?


Check this site out, it has a lot of books that are highly recommended.

http://hn-books.com/

Scroll through until you find books that peak your interests.

+ Show Spoiler +
Sweet thanks.

Also (to everyone): Has anyone heard of antiRTFM user on youtube? He does videos on c++ and I was wondering what you guys thought about him?
http://www.youtube.com/watch?v=8nHYYWAA2e8&feature=channel&list=UL
this is him on doing pointers and arrays


I found the video quite boring so I only watched about 4 minutes into it. That being said from what I did see he is correct and informative, he seems to have left out some tangentially related material like passing by reference and other small tidbits, but maybe I wasn't far enough in the video to get to the part that he talks about that. I would recommend experimenting with some of these things yourself to get a better idea of what they do and how they can be useful.
http://talk-to-stimey-please.1324083.n2.nabble.com/
svi
Profile Joined October 2010
405 Posts
Last Edited: 2012-04-29 21:22:28
April 29 2012 21:12 GMT
#2670
what are some good books that teaches you some advanced programming?

i've read a bit (not entirely) of 'introduction to algorithms', 'sicp', 'the c programming language', etc so i pretty much understand the basics of programming, but i wanna dive into making some 'larger' programs, so to speak.

ie programs that don't just spit out a few lines of data, but something like a text editor or a emulator, or w/e that can be used for real world value.
Hinanawi
Profile Blog Joined July 2009
United States2250 Posts
April 29 2012 21:22 GMT
#2671
Hey folks, I'm looking to toy around with an Android web browser RPG (text based). It's not a professional project or anything, I just want to get some coding practice done. The Android app will be written in Java using the Eclipse IDE plugin for Android and I'm plenty familiar with it, but I haven't worked with web servers much.

Does anyone have a suggestion for a good webhost? It doesn't need to be free, but cheap would be nice. I don't need much bandwidth, I just want no ads, and support for MySQL and whatever else I'll need to make a browser RPG (storing unique users and player characters, stats, equipment, dungeons, etc.).
Favorite progamers (in order): Flash, Stork, Violet, Sea. ||| Get better soon, Violet!
powerbygood
Profile Blog Joined December 2008
United States54 Posts
April 30 2012 18:29 GMT
#2672
Hey guys, I am doing my project and I am running into a compiler error I can't seem to fix. My error is 'ofstream' has not been declared, but when I included it in my header file it still gets the same error in the .cpp file.
Kaiwa
Profile Blog Joined August 2010
Netherlands2209 Posts
Last Edited: 2012-04-30 18:34:36
April 30 2012 18:30 GMT
#2673
On May 01 2012 03:29 powerbygood wrote:
Hey guys, I am doing my project and I am running into a compiler error I can't seem to fix. My error is 'ofstream' has not been declared, but when I included it in my header file it still gets the same error in the .cpp file.


Have u included a "using namespace std;" at the top or the std:: prefix? (Making it std::ofstream)
시크릿 / 씨스타 / 에이핑크 / 윤하 / 가비앤제이
powerbygood
Profile Blog Joined December 2008
United States54 Posts
Last Edited: 2012-04-30 19:26:04
April 30 2012 18:56 GMT
#2674
Yes, I did. I am still getting the same error. Been googling and to no avail x.x

edit: solved it. thanks for the help. I made a super newbie mistake
lungic
Profile Joined January 2012
Sweden123 Posts
April 30 2012 19:06 GMT
#2675
@svi.
Not to sound condescending, but advanced programming is in a perfect world the simple stuff on a larger scale. Otherwise someone has fucked up. One usually does.

The best way I've found is to simply decide that this is what I want to do and then do it. If you have a lack of imagination then copy a program and try to remake it better. Start out really simple (think bronze or silver league) and work from there. Just so that you can complete the project and not get fatigued. If you finish early then you can go ahead and rewrite it again properly, using all the lessons you've learned.

If you've got a talent for graphics, go that way. If you're a musician play with sounds. Organizational skills play with a database. Statistics or math, play with that kind a stuff. Just make sure you find it fun. If the time flies by, then you're doing it right.
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
April 30 2012 22:53 GMT
#2676
If I were to try to find the best hand in a group of 7 cards, do I need to specifically account for the 2 extra cards?

I'm trying to do this.

Right now I just throw everything into a vector of each suit of size 13 from A to K, and then start comparing the vectors at Straight Flush and working my way down. Is there a difference between having 7 cards and 5 cards this way?
There is no one like you in the universe.
powerbygood
Profile Blog Joined December 2008
United States54 Posts
May 01 2012 00:53 GMT
#2677
Is there anyone here avaible to help? i have a lot of questions to ask. If it's possible through a instant messenger
Abductedonut
Profile Blog Joined December 2010
United States324 Posts
May 01 2012 00:59 GMT
#2678
I can help you if you need help with C/C++/Assembly/Java/General Comp stuff.

I use AIM. Screenname: blackflame121212
Pawsom
Profile Blog Joined February 2009
United States928 Posts
May 01 2012 01:05 GMT
#2679
On May 01 2012 07:53 Blisse wrote:
If I were to try to find the best hand in a group of 7 cards, do I need to specifically account for the 2 extra cards?

I'm trying to do this.

Right now I just throw everything into a vector of each suit of size 13 from A to K, and then start comparing the vectors at Straight Flush and working my way down. Is there a difference between having 7 cards and 5 cards this way?



If you're just referring to poker rules, and not programming, having 7 cards doesn't affect this. You would play the best 5 cards in your hand.
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
Last Edited: 2012-05-01 01:31:54
May 01 2012 01:31 GMT
#2680
On May 01 2012 10:05 Pawsom wrote:
Show nested quote +
On May 01 2012 07:53 Blisse wrote:
If I were to try to find the best hand in a group of 7 cards, do I need to specifically account for the 2 extra cards?

I'm trying to do this.

Right now I just throw everything into a vector of each suit of size 13 from A to K, and then start comparing the vectors at Straight Flush and working my way down. Is there a difference between having 7 cards and 5 cards this way?



If you're just referring to poker rules, and not programming, having 7 cards doesn't affect this. You would play the best 5 cards in your hand.


I understand Poker rules, but I am unsure of how you would account for 7 choose 5 possibilities of hand combinations without running all those possibilities through a function.
There is no one like you in the universe.
Prev 1 132 133 134 135 136 1032 Next
Please log in or register to reply.
Live Events Refresh
LAN Event
18:00
Day 3: Ursa 2v2, FFA
SteadfastSC393
IndyStarCraft 177
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
mouzHeroMarine 499
SteadfastSC 393
White-Ra 211
IndyStarCraft 177
UpATreeSC 142
ProTech125
Railgan 67
ROOTCatZ 43
StarCraft: Brood War
Shuttle 460
Bonyth 69
ivOry 14
Dota 2
Dendi985
Counter-Strike
pashabiceps1182
Foxcn163
Super Smash Bros
Liquid`Ken9
Heroes of the Storm
Liquid`Hasu516
Other Games
Beastyqt728
fl0m665
Mlord452
FrodaN427
shahzam403
KnowMe185
Pyrionflax168
C9.Mang0125
ArmadaUGS115
ToD77
Mew2King74
Trikslyr53
OptimusSC21
Organizations
Counter-Strike
PGL192
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 20 non-featured ]
StarCraft 2
• Adnapsc2 11
• Reevou 9
• Dystopia_ 0
• Kozan
• sooper7s
• AfreecaTV YouTube
• Migwel
• LaughNgamezSOOP
• intothetv
• IndyKCrew
StarCraft: Brood War
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• C_a_k_e 3055
• Ler92
League of Legends
• TFBlade886
Other Games
• imaqtpie1303
• WagamamaTV341
• Scarra290
• Shiphtur221
Upcoming Events
OSC
1h
Replay Cast
2h
OSC
15h
LAN Event
18h
Korean StarCraft League
1d 6h
CranKy Ducklings
1d 13h
LAN Event
1d 18h
IPSL
1d 21h
dxtr13 vs OldBoy
Napoleon vs Doodle
BSL 21
1d 23h
Gosudark vs Kyrie
Gypsy vs Sterling
UltrA vs Radley
Dandy vs Ptak
Replay Cast
2 days
[ Show More ]
Sparkling Tuna Cup
2 days
WardiTV Korean Royale
2 days
LAN Event
2 days
IPSL
2 days
JDConan vs WIZARD
WolFix vs Cross
BSL 21
2 days
spx vs rasowy
HBO vs KameZerg
Cross vs Razz
dxtr13 vs ZZZero
Replay Cast
3 days
Wardi Open
3 days
WardiTV Korean Royale
4 days
Replay Cast
5 days
Kung Fu Cup
5 days
Classic vs Solar
herO vs Cure
Reynor vs GuMiho
ByuN vs ShoWTimE
Tenacious Turtle Tussle
6 days
The PondCast
6 days
RSL Revival
6 days
Solar vs Zoun
MaxPax vs Bunny
Kung Fu Cup
6 days
WardiTV Korean Royale
6 days
Liquipedia Results

Completed

BSL 21 Points
SC4ALL: StarCraft II
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025

Upcoming

BSL Season 21
SLON Tour Season 2
BSL 21 Non-Korean Championship
Acropolis #4
HSC XXVIII
RSL Offline Finals
WardiTV 2025
RSL Revival: Season 3
Stellar Fest
META Madness #9
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.