• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 07:55
CET 13:55
KST 21:55
  • 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
Behind the Blue - Team Liquid History Book15Clem wins HomeStory Cup 289HomeStory Cup 28 - Info & Preview13Rongyi Cup S3 - Preview & Info8herO wins SC2 All-Star Invitational14
Community News
ACS replaced by "ASL Season Open" - Starts 21/0218LiuLi Cup: 2025 Grand Finals (Feb 10-16)23Weekly Cups (Feb 2-8): Classic, Solar, MaxPax win2Nexon's StarCraft game could be FPS, led by UMS maker10PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar)13
StarCraft 2
General
How do you think the 5.0.15 balance patch (Oct 2025) for StarCraft II has affected the game? Nexon's StarCraft game could be FPS, led by UMS maker Terran Scanner Sweep Behind the Blue - Team Liquid History Book Weekly Cups (Jan 12-18): herO, MaxPax, Solar win
Tourneys
RSL Season 4 announced for March-April LiuLi Cup: 2025 Grand Finals (Feb 10-16) PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar) RSL Revival: Season 4 Korea Qualifier (Feb 14) Sparkling Tuna Cup - Weekly Open Tournament
Strategy
Custom Maps
Map Editor closed ? [A] Starcraft Sound Mod
External Content
The PondCast: SC2 News & Results Mutation # 512 Overclocked Mutation # 511 Temple of Rebirth Mutation # 510 Safety Violation
Brood War
General
Which units you wish saw more use in the game? StarCraft player reflex TE scores [ASL21] Potential Map Candidates Gypsy to Korea ACS replaced by "ASL Season Open" - Starts 21/02
Tourneys
Escore Tournament StarCraft Season 1 [Megathread] Daily Proleagues Small VOD Thread 2.0 KCM Race Survival 2026 Season 1
Strategy
Fighting Spirit mining rates Zealot bombing is no longer popular? Simple Questions, Simple Answers Current Meta
Other Games
General Games
Path of Exile Diablo 2 thread Nintendo Switch Thread Battle Aces/David Kim RTS Megathread ZeroSpace Megathread
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
Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia TL Mafia Community Thread
Community
General
US Politics Mega-thread Ask and answer stupid questions here! European Politico-economics QA Mega-thread The Games Industry And ATVI Russo-Ukrainian War Thread
Fan Clubs
The IdrA Fan Club The herO Fan Club!
Media & Entertainment
[Req][Books] Good Fantasy/SciFi books [Manga] One Piece Anime Discussion Thread
Sports
2024 - 2026 Football Thread
World Cup 2022
Tech Support
TL Community
The Automated Ban List
Blogs
ADHD And Gaming Addiction…
TrAiDoS
My 2025 Magic: The Gathering…
DARKING
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
StarCraft improvement
iopq
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1728 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
uThermal 2v2 Circuit
12:00
Bonus Cup #3
uThermal275
Liquipedia
LiuLi Cup
11:00
2025 Grand Finals Playoffs
Clem vs MaruLIVE!
Rogue vs TriGGeR
ByuN vs Serral
RotterdaM1846
ComeBackTV 1617
PiGStarcraft583
IndyStarCraft 356
BRAT_OK 207
Rex154
3DClanTV 71
IntoTheiNu 25
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RotterdaM 1846
PiGStarcraft583
IndyStarCraft 356
uThermal 275
BRAT_OK 207
Rex 154
goblin 87
MindelVK 20
StarCraft: Brood War
Britney 45683
Barracks 6970
Jaedong 1458
Flash 1304
Hyuk 1079
Stork 558
Soma 536
firebathero 412
Light 390
Soulkey 381
[ Show more ]
Snow 250
Rush 205
Last 171
Leta 142
Pusan 107
Killer 85
Aegong 63
Movie 54
sorry 42
Free 34
Hm[arnc] 32
soO 31
Sharp 27
yabsab 25
ToSsGirL 25
Terrorterran 24
Bonyth 23
IntoTheRainbow 22
Shine 18
910 18
JulyZerg 17
HiyA 17
zelot 13
Shinee 12
ivOry 5
Calm 0
Dota 2
Gorgc2641
XcaliburYe165
Counter-Strike
olofmeister2780
fl0m1773
byalli432
Super Smash Bros
Mew2King98
Heroes of the Storm
Khaldor237
Other Games
singsing2447
B2W.Neo1076
crisheroes448
KnowMe49
ArmadaUGS39
Organizations
Counter-Strike
PGL20810
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• Berry_CruncH119
• Adnapsc2 5
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• FirePhoenix6
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Jankos2844
Upcoming Events
PSISTORM Gaming Misc
4h
RSL Revival
5h 5m
AI Arena Tournament
7h 5m
Replay Cast
11h 5m
Sparkling Tuna Cup
21h 5m
LiuLi Cup
22h 5m
Ladder Legends
1d 5h
Replay Cast
1d 11h
Replay Cast
1d 20h
Wardi Open
1d 23h
[ Show More ]
Monday Night Weeklies
2 days
OSC
2 days
WardiTV Winter Champion…
2 days
Replay Cast
3 days
WardiTV Winter Champion…
3 days
Replay Cast
4 days
PiG Sty Festival
4 days
The PondCast
4 days
KCM Race Survival
4 days
WardiTV Winter Champion…
4 days
Replay Cast
5 days
PiG Sty Festival
5 days
Epic.LAN
5 days
Replay Cast
6 days
PiG Sty Festival
6 days
CranKy Ducklings
6 days
Epic.LAN
6 days
Liquipedia Results

Completed

Escore Tournament S1: W8
Rongyi Cup S3
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
LiuLi Cup: 2025 Grand Finals
Nations Cup 2026
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
SL Budapest Major 2025

Upcoming

Escore Tournament S1: King of Kings
[S:21] ASL SEASON OPEN 1st Round
[S:21] ASL SEASON OPEN 1st Round Qualifier
[S:21] ASL SEASON OPEN 2nd Round
[S:21] ASL SEASON OPEN 2nd Round Qualifier
Acropolis #4
IPSL Spring 2026
HSC XXIX
uThermal 2v2 2026 Main Event
Bellum Gens Elite Stara Zagora 2026
RSL Revival: Season 4
WardiTV Winter 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
FISSURE Playground #3
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
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.