• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 05:48
CEST 11:48
KST 18:48
  • 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 #22 - Voting & Ladder Map Selection1Code S Season 2 (2026) - RO8 Preview4[ASL21] Finals Preview: Two Legacies21Code S Season 2 (2026) - RO12 Preview2herO wins GSL Code S Season 1 (2026)7
Community News
StarCraft II 5.0.16 PTR Patch Notes may 26th107Weekly Cups (May 18-25): MaxPax wins doubles0Crank Gathers Season 4: BW vs SC2 Team League4Weekly Cups (May 11-17): Classic wins double1Code S Season 1 (2026) - RO8 Results2
StarCraft 2
General
SurgeHack Recovery Experts Helped Me Get Back My $ The death of cheese, from a professional cheeser. TL Poll: How do you feel about the 5.0.16 PTR balance changes? StarCraft II 5.0.16 PTR Patch Notes may 26th Changing from 12 to 8 is just asking for StarCraft
Tourneys
RSL Revival: Season 5 - Qualifiers and Main Event GSL Code S Season 2 (2026) Maestros of The Game 2 announcement and schedule ! Sparkling Tuna Cup - Weekly Open Tournament Crank Gathers Season 4: BW vs SC2 Team League
Strategy
[G] Having the right mentality to improve
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players
External Content
The PondCast: SC2 News & Results Mutation # 528 Infection Detected Welcome to the External Content forum Mutation # 527 Hell Train
Brood War
General
Soma's ASL Finals Review BGH Auto Balance -> http://bghmmr.eu/ FlaShFTW vs A.Alm Grudge Match Event VPN experiences OGN to release AI-upscaled StarLeague from Feb 24
Tourneys
[ASL21] Grand Finals [Megathread] Daily Proleagues Escore Tournament StarCraft Season 2 [BSL22] WB Final & LB Semis - Saturday 21:00 CEST
Strategy
Any training maps people recommend? Muta micro map competition [G] Hydra ZvZ: An Introduction Fighting Spirit mining rates
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread ZeroSpace Megathread Path of Exile Dawn of War IV
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
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Trading/Investing Thread Things Aren’t Peaceful in Palestine Dating: How's your luck?
Fan Clubs
The herO Fan Club!
Media & Entertainment
[Manga] One Piece Anime Discussion Thread [Req][Books] Good Fantasy/SciFi books
Sports
McBoner: A hockey love story 2024 - 2026 Football Thread TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread Facing Challenges in Mobile App Development
TL Community
The Automated Ban List
Blogs
Esportsmanship: How to NOT B…
TrAiDoS
Why RTS gamers make better f…
gosubay
ramps on octagon
StaticNine
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2074 users

The Big Programming Thread - Page 18

Forum Index > General Forum
Post a Reply
Prev 1 16 17 18 19 20 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.
Adeny
Profile Blog Joined January 2009
Norway1233 Posts
July 23 2010 14:48 GMT
#341
MadVillain, I'd love to discuss/co-operate on some Project Euler tasks or anything similar. How many tasks have you completed?
Scorcher2k
Profile Joined November 2009
United States802 Posts
July 23 2010 15:52 GMT
#342
So I'm just getting into programming again and took an intro to C++ class. The class however was extremely extremely slow moving and although I made homework much harder than it needed to be it still moved at a sluggish pace. At the end of the semester we had only been assigned a single assignment to build a class which of course means no experience with OOP. I did start to go into building a text game which would go way beyond the scope of my class but as summer started and class ended I found myself drawn into other things. Now I'm trying to get back into it in preparation for the upcoming semester and I'm curious about a few things.
1. Should I move to visual express 2010 and begin learning the new changes or stick with 2008?
2. Does anyone know of any good projects to start out with when starting into OOP?
3. Anything fun or challenging to do/read at my level would be appreciated!
nonsence
Profile Joined July 2010
United States57 Posts
July 23 2010 15:56 GMT
#343
Read Memory as a Programming Concept in C and C++.
OMG Bear is driving! How is that possible?
catamorphist
Profile Joined May 2010
United States297 Posts
July 23 2010 16:07 GMT
#344
If you're learning C++ right now and intend to keep learning it, I strongly suggest that you learn C++0x. As such, you would probably be better off with VS2010 than 2008, because it has better IDE support for the new language features.
http://us.battle.net/sc2/en/profile/281144/1/catamorphist/
Zack1900
Profile Joined January 2010
United States211 Posts
July 30 2010 14:11 GMT
#345
I suddenly can't create any programs. When I go to make a C++ or masm program I get an error. It says "fatal error LNK1136: invalid or corrupt file" every time I go to compile a program. I downloaded the key logger from http://win32assembly.online.fr/source.html and extracted everything except the exe file. Read through the program and tried to make it. This is the first time I can recall having an error. AVG anti viris complained about the dll that I extracted and the first time I let it kill it. The second time (because I was having a hard time making the dll) I told it that the dll was okay. After I some messing around I decided to try to compile a (masm)program that I knew was good, but I still receive the error. This error carries over to known working C++ files using microsoft visual studio express 2010

When I try to redownload masm it will not build the libraries, but instead gives me the same linker error.

I would appreciate any help that allowed me continue to learn about programing.
CheAse
Profile Blog Joined July 2009
Canada919 Posts
July 30 2010 15:11 GMT
#346
This is something my friend wrote for me to make fun of my bad spelling, and my love for natchos and chease

arraylist<chease> CHEATOS = new arraylist<chease>()
CHEATOS.add(mozzarella)
CHEATOS.add(cheddar)

while (natchoes.cheaseyweight < 15){
for (chease lol : CHEATOS)
lol.grate()
natchoes.addchease(lol)

natchoes.microwave(120)
CheAse.sethappy(true)
SCV good to go sir
Badjas
Profile Blog Joined October 2008
Netherlands2038 Posts
July 30 2010 22:55 GMT
#347
Zack, clear your temporary compilation files (object files, .obj or .o) Perhaps that'll do the trick. The linker links together object files, and library files (.lib typically, but these are often from an external source so deleting them might be inconvenient) to create a dll or exe file.
I <3 the internet, I <3 you
AcrossFiveJulys
Profile Blog Joined September 2005
United States3612 Posts
Last Edited: 2010-07-31 05:48:48
July 31 2010 05:39 GMT
#348
oh. my. fucking. god.

This has got to be the dumbest bug I've written. Can you spot it? Rofl.


double BIRLDist::getMaxReward(MDPModel* mdp){

double max = mdp->getRewardProb(0,0,2);
for (int s=1; s<mdp->m_states; s++){

if (mdp->getRewardProb(s,0,2 > max))
max = mdp->getRewardProb(s,0,2);

}
return fabs(max);
}
catamorphist
Profile Joined May 2010
United States297 Posts
July 31 2010 05:51 GMT
#349
On July 31 2010 14:39 AcrossFiveJulys wrote:
oh. my. fucking. god.

This has got to be the dumbest bug I've written. Can you spot it? Rofl.


double BIRLDist::getMaxReward(MDPModel* mdp){

double max = mdp->getRewardProb(0,0,2);
for (int s=1; s<mdp->m_states; s++){

if (mdp->getRewardProb(s,0,2 > max))
max = mdp->getRewardProb(s,0,2);

}
return fabs(max);
}


Wow, it's really gay that you don't get a compiler warning from that. Chalk another one up in the "C++ fucks you again" book.
http://us.battle.net/sc2/en/profile/281144/1/catamorphist/
Cambium
Profile Blog Joined June 2004
United States16368 Posts
July 31 2010 06:10 GMT
#350
On July 31 2010 14:39 AcrossFiveJulys wrote:
oh. my. fucking. god.

This has got to be the dumbest bug I've written. Can you spot it? Rofl.


double BIRLDist::getMaxReward(MDPModel* mdp){

double max = mdp->getRewardProb(0,0,2);
for (int s=1; s<mdp->m_states; s++){

if (mdp->getRewardProb(s,0,2 > max))
max = mdp->getRewardProb(s,0,2);

}
return fabs(max);
}

2 > max)

But I wouldn't do it like that regardless

You are making an unnecessary call (unless getRewardProb outputs different results for same input)


prob = mdp-> getRewardProb
if( prob > max )
max = prob
When you want something, all the universe conspires in helping you to achieve it.
AcrossFiveJulys
Profile Blog Joined September 2005
United States3612 Posts
July 31 2010 06:13 GMT
#351
On July 31 2010 14:51 catamorphist wrote:
Show nested quote +
On July 31 2010 14:39 AcrossFiveJulys wrote:
oh. my. fucking. god.

This has got to be the dumbest bug I've written. Can you spot it? Rofl.


double BIRLDist::getMaxReward(MDPModel* mdp){

double max = mdp->getRewardProb(0,0,2);
for (int s=1; s<mdp->m_states; s++){

if (mdp->getRewardProb(s,0,2 > max))
max = mdp->getRewardProb(s,0,2);

}
return fabs(max);
}


Wow, it's really gay that you don't get a compiler warning from that. Chalk another one up in the "C++ fucks you again" book.


I think the issue originates from the fact that booleans didn't exist as a type in C, and integers were used in their place... so when C++ was introduced, they didn't want to start throwing errors when people interchanged booleans and integers, since that function has legitimate style use.
AcrossFiveJulys
Profile Blog Joined September 2005
United States3612 Posts
July 31 2010 06:16 GMT
#352
On July 31 2010 15:10 Cambium wrote:
Show nested quote +
On July 31 2010 14:39 AcrossFiveJulys wrote:
oh. my. fucking. god.

This has got to be the dumbest bug I've written. Can you spot it? Rofl.


double BIRLDist::getMaxReward(MDPModel* mdp){

double max = mdp->getRewardProb(0,0,2);
for (int s=1; s<mdp->m_states; s++){

if (mdp->getRewardProb(s,0,2 > max))
max = mdp->getRewardProb(s,0,2);

}
return fabs(max);
}

2 > max)

But I wouldn't do it like that regardless

You are making an unnecessary call (unless getRewardProb outputs different results for same input)


prob = mdp-> getRewardProb
if( prob > max )
max = prob


getRewardProb just accesses an array. In that case, it's probably not worth changing, since the cost of pushing another variable onto the stack instead of accessing memory that's already cached is hard to compare.
Dave[9]
Profile Blog Joined October 2003
United States2365 Posts
July 31 2010 06:58 GMT
#353
Hey guys, I just started a new worksheet in excel and noticed that it uses VBA as it's programming language for macros and whatnot. Anyways, What I want it to do is to basicall replicate the find button into a cell so I can search for something in a certain row and have it go to that item. I'm working with a 500x500 worksheet and it can get dicey as far as data goes. Any ideas onhow to do this in either excel language or VBA? I have some decent amount of knowledge with C++ and I've been told visual basic is really easy to pick up. But please, if you can help, go ahead and respond to me.

Also, if it's even more possible, to have a drop down menu type thing in one cell and have it go to the row the selected option is in, or have it return an entire row of information. The only problem is with that is that if i have it return an entire row, it must take into consideration merged cells.

Hopefully someone can help, I've been working on this for so long with no progress
http://www.teamliquid.net/forum/viewmessage.php?topic_id=104154&currentpage=316#6317
Badjas
Profile Blog Joined October 2008
Netherlands2038 Posts
July 31 2010 09:00 GMT
#354
VBA is nothing like visual basic. The biggest chunk of knowledge that you need programming VBA is the object model of the application you're programming with. In your case Excel. You're lucky that Excel has a somewhat decent programming interface

I'll give you some pointers. Giving you some more productive help would involve me opening Excel and figuring it all out as I find a lot of those ideas you mention get shape only with trial and error.
Open the class definition view (F2). Most helpful bit of documentation in my opinion.
Most likely, there's a method for selecting cells. Refer to the documentation (;
There should be methods or collections available for iterating over the selected cells. Which should take merged selections into account but you got to test this at the very least.
A drop down menu can be populated with all available options in a given selection. That's a standard excel function. There is an onchange event which you need to implement where you detect changes in such cells (although the event will trigger for any and all changes in any cell, you need to filter) and based on the new selected value you need to scan the relevant cells, set a sleection, and perhaps it is possible to call the selection into view. There's a separate view class/object in Excel that might expose such functionality.

Good luck.
I <3 the internet, I <3 you
Frigo
Profile Joined August 2009
Hungary1023 Posts
July 31 2010 13:56 GMT
#355
Project Euler solver here as well, currently at 100/299.
Working in C++ using GMP and my own stuff. Willing to help people with C++ or Project Euler problems.
http://www.fimfiction.net/user/Treasure_Chest
Zack1900
Profile Joined January 2010
United States211 Posts
July 31 2010 19:03 GMT
#356
Thank you badjas for your help. Since you made it clear you wanted to continue the discussion on the tread I'll post the pm.
+ Show Spoiler [pm] +

Typically, a compiler has a bunch of source files (.asm or .c and so). Depending on your setup, you have these files in a directory structure. At the root of this directory structure the compiler will create an output subdirectory 'obj' or 'bin', typically. Basically everything in such an output directory should be able to be safely deleted. Of course, make a backup copy of what you delete in case you break things further. Another option is to rename the output directory as an automatic backup/delete method as the compiler won't be able to find its old output directory/linker input files and create new things.

Since your error was quite vague, it is not sure that this will help. Linker errors can also be caused by unforeseen weirdness in obj or lib files, or because of a wrong format of obj/lib files. If you use linker input files from third parties, compatibility is by no means guaranteed.

If you want to discuss this more, I ask you to use the thread. That way, any positive information from this discussion is readable for everyone.

-----------------------------------------
Original Message:
I appreciate your input, but I don't know how to do this. I may know much more than the average computer user, but things like this are currently over my head. Could you help me purge my temporary compilation files?


The problem actually arose after I had already successfully used the program many times. It just stopped working. I would not be surprised if it had something to do with my antivirus since the only time it was tripped in relation to my programing things stopped working, but I'm not entirely sure it is the problem. I tried reinstalling the masm package witch uses link.exe to build the libraries. It can not successfully build the libraries, but instead displays the same error in the cmd window that lets you monitor the library building process. Another site that I've posted the question on suggested uninstalling AVG and disabling UAC (user account control). When both were done there was no change.
Badjas
Profile Blog Joined October 2008
Netherlands2038 Posts
July 31 2010 19:09 GMT
#357
Zack, if you are talking about a key logger, for whatever purpose, then it does not surprise me that antivirus picks up a code signature from that. With your antivirus disabled, it should not interfere, but I have no idea if it has done any blocking attempts to your binary files (object/lib files or exe). Maybe it even has messed with the linker depending on how aggressive that antivirus is. I think that's all I can say, you gotta figure out the rest yourself, by patience and perseverance.
I <3 the internet, I <3 you
Zack1900
Profile Joined January 2010
United States211 Posts
Last Edited: 2010-07-31 20:31:12
July 31 2010 20:00 GMT
#358
Thank you badjas. I chose the key logger since it contains key reading, file I/O, and dealing with windows api, all while being interesting. I to was not surprised when the anti virus complained about the dll that I extracted (accidentally since I wanted to build it from source after I decided it was safe ). I'm not asking for help getting the key logger working, but instead to be able to do anything programing related. The anti virus should be a non issue now since it has been uninstalled and reinstalled.

Each time I want to see if I've fixed my problem I delete the masm directory (since it will not install over an existing directory) which includes link.exe. I then extract the installation file from a zip and run it. While installing (as an administrator) the same link error appears why it is building libraries.

The only suggestion I've gotten that I haven't tried is to uninstall the OS and start from scratch. I would highly prefer not to do that for obvious reasons (since he is that sites biggest troll I don't think he has the best answers).

I think this may be a larger problem than I thought at first since Visual C++ uses a diffrent link.exe than masm and neither will work (or am I showing off my lack of knowledge again?).

I hope that someone can help since google isn't getting me very far and I'm stumped.
mmp
Profile Blog Joined April 2009
United States2130 Posts
Last Edited: 2010-08-01 03:51:54
August 01 2010 01:45 GMT
#359
Found a cool scheme interpreter written in js. Bonus: Talk from the author.+ Show Spoiler +

Enjoy.

Edit: OP, you really should list jQuery.org as an HTML/CSS/JS resource. It doesn't completely cover prototype's capabilities, but exceeds in most areas and any web programmer should know about it.
I (λ (foo) (and (<3 foo) ( T_T foo) (RAGE foo) )) Starcraft
Adeny
Profile Blog Joined January 2009
Norway1233 Posts
August 02 2010 20:35 GMT
#360
Got a question (using C# btw). Basically what I want is to be able to grab a picture from a webBrowser control inside of a form, save it to a bitmap or w/e, then display it. I found a function that was undocumented by the intellisense, webBrowser.DrawToBitmap or something similar, but I assume this is deprecated?
Prev 1 16 17 18 19 20 1032 Next
Please log in or register to reply.
Live Events Refresh
Next event in 2h 13m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
WinterStarcraft754
StarCraft: Brood War
Calm 15832
Horang2 1356
actioN 330
Pusan 239
Leta 181
Soma 169
Zeus 152
Rush 135
Dewaltoss 95
Backho 74
[ Show more ]
PianO 71
ToSsGirL 68
EffOrt 56
Jaedong 52
Liquid`Ret 38
Shine 33
sSak 27
JulyZerg 20
NaDa 18
soO 16
ZerO 15
Sacsri 13
IntoTheRainbow 12
Light 11
Noble 9
zelot 5
Dota 2
XcaliburYe68
League of Legends
JimRising 457
KnowMe26
Counter-Strike
olofmeister1519
shoxiejesuss963
allub117
Super Smash Bros
Mew2King89
Other Games
ceh9620
Pyrionflax166
ZerO(Twitch)2
Organizations
Counter-Strike
PGL209
Other Games
BasetradeTV174
StarCraft: Brood War
UltimateBattle 68
lovetv 19
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 13 non-featured ]
StarCraft 2
• LUISG 15
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• iopq 2
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Nemesis4363
Upcoming Events
Wardi Open
2h 13m
Monday Night Weeklies
6h 13m
Replay Cast
14h 13m
Sparkling Tuna Cup
1d
WardiTV Spring Champion…
1d 1h
Maestros of the Game
1d 5h
The PondCast
2 days
Kung Fu Cup
2 days
uThermal 2v2 Circuit
2 days
Maestros of the Game
2 days
[ Show More ]
Replay Cast
2 days
Replay Cast
2 days
WardiTV Spring Champion…
3 days
Maestros of the Game
3 days
Replay Cast
3 days
uThermal 2v2 Circuit
4 days
Maestros of the Game
4 days
Replay Cast
4 days
Solar vs Classic
uThermal 2v2 Circuit
5 days
GSL
5 days
herO vs Rogue
Maru vs Cure
uThermal 2v2 Circuit
6 days
BSL
6 days
Replay Cast
6 days
Liquipedia Results

Completed

KK 2v2 League Season 1
RSL Revival: Season 5
Heroes Pulsing #1

Ongoing

BSL Season 22
IPSL Spring 2026
KCM Race Survival 2026 Season 2
Acropolis #4
CSCL: Masked Kings S4
YSL S3
SCTL 2026 Spring
WardiTV Spring 2026
Maestros of the Game 2
2026 GSL S2
Murky Cup 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026

Upcoming

BSL 22 Non-Korean Championship
CSLAN 4
Blizzard Classic Cup 2026
Kung Fu Cup 2026 Grand Finals
CranK Gathers Season 4: BW vs SC2 Team League
HSC XXIX
uThermal 2v2 2026 Main Event
Heroes Pulsing #3
Heroes Pulsing #2
Esports World Cup 2026
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 2026
IEM Cologne Major 2026
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...

Disclosure: This page contains affiliate marketing links that support TLnet.

Advertising | Privacy Policy | Terms Of Use | Contact Us

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