• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 14:02
CEST 20:02
KST 03:02
  • 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
[ASL21] Ro24 Preview Pt2: News Flash10[ASL21] Ro24 Preview Pt1: New Chaos0Team Liquid Map Contest #22 - Presented by Monster Energy18ByuL: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book20
Community News
Weekly Cups (March 23-29): herO takes triple6Aligulac acquired by REPLAYMAN.com/Stego Research8Weekly Cups (March 16-22): herO doubles, Cure surprises3Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool51Weekly Cups (March 9-15): herO, Clem, ByuN win4
StarCraft 2
General
Rongyi Cup S3 - Preview & Info Team Liquid Map Contest #22 - Presented by Monster Energy Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool What mix of new & old maps do you want in the next ladder pool? (SC2) Aligulac acquired by REPLAYMAN.com/Stego Research
Tourneys
RSL Season 4 announced for March-April Sparkling Tuna Cup - Weekly Open Tournament StarCraft Evolution League (SC Evo Biweekly) WardiTV Mondays World University TeamLeague (500$+) | Signups Open
Strategy
Custom Maps
[M] (2) Frigid Storage Publishing has been re-enabled! [Feb 24th 2026]
External Content
The PondCast: SC2 News & Results Mutation # 520 Moving Fees Mutation # 519 Inner Power Mutation # 518 Radiation Zone
Brood War
General
ASL21 General Discussion Gypsy to Korea so ive been playing broodwar for a week straight. Pros React To: JaeDong vs Queen BSL 22 Map Contest — Submissions OPEN to March 10
Tourneys
[ASL21] Ro24 Group F Escore Tournament StarCraft Season 2 [Megathread] Daily Proleagues [ASL21] Ro24 Group E
Strategy
What's the deal with APM & what's its true value Fighting Spirit mining rates Simple Questions, Simple Answers
Other Games
General Games
Stormgate/Frost Giant Megathread Starcraft Tabletop Miniature Game Nintendo Switch Thread General RTS Discussion Thread Darkest Dungeon
Dota 2
The Story of Wings Gaming Official 'what is Dota anymore' discussion
League of Legends
G2 just beat GenG in First stand
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 TL Mafia Community Thread Five o'clock TL Mafia
Community
General
US Politics Mega-thread The Chess Thread Russo-Ukrainian War Thread NASA and the Private Sector Things Aren’t Peaceful in Palestine
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Manga] One Piece [Req][Books] Good Fantasy/SciFi books Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion Cricket [SPORT] Tokyo Olympics 2021 Thread General nutrition recommendations
World Cup 2022
Tech Support
[G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Broowar part 2
qwaykee
China Uses Video Games to Sh…
TrAiDoS
Funny Nicknames
LUCKY_NOOB
Iranian anarchists: organize…
XenOsky
FS++
Kraekkling
ASL S21 English Commentary…
namkraft
Electronics
mantequilla
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1506 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 14h 58m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
ProTech133
Railgan 67
StarCraft: Brood War
Calm 4302
Mind 685
actioN 288
Hyuk 150
Dewaltoss 111
Sexy 37
Hm[arnc] 23
GoRush 18
yabsab 18
Terrorterran 13
[ Show more ]
soO 12
NaDa 10
Dota 2
Gorgc5698
qojqva3440
420jenkins335
Counter-Strike
fl0m3446
zeus467
edward89
Heroes of the Storm
Khaldor183
MindelVK17
Other Games
Grubby2294
FrodaN1783
Beastyqt718
ArmadaUGS128
Livibee71
Trikslyr66
C9.Mang054
Organizations
StarCraft 2
angryscii 25
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 18 non-featured ]
StarCraft 2
• Adnapsc2 21
• Reevou 2
• intothetv
• Kozan
• sooper7s
• Migwel
• AfreecaTV YouTube
• LaughNgamezSOOP
• IndyKCrew
StarCraft: Brood War
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• WagamamaTV756
• lizZardDota267
League of Legends
• Nemesis1807
• Jankos1703
Other Games
• imaqtpie764
• Shiphtur222
Upcoming Events
CranKy Ducklings
14h 58m
Sparkling Tuna Cup
15h 58m
PiGosaur Cup
1d 5h
Replay Cast
1d 14h
Kung Fu Cup
1d 17h
Replay Cast
2 days
The PondCast
2 days
CranKy Ducklings
3 days
WardiTV Team League
3 days
Replay Cast
4 days
[ Show More ]
CranKy Ducklings
4 days
WardiTV Team League
4 days
uThermal 2v2 Circuit
4 days
BSL
5 days
Sparkling Tuna Cup
5 days
WardiTV Team League
5 days
BSL
6 days
Replay Cast
6 days
Replay Cast
6 days
Wardi Open
6 days
Liquipedia Results

Completed

Escore Tournament S2: W1
RSL Revival: Season 4
NationLESS Cup

Ongoing

BSL Season 22
CSL Elite League 2026
ASL Season 21
CSL Season 20: Qualifier 2
CSL 2026 SPRING (S20)
StarCraft2 Community Team League 2026 Spring
Nations Cup 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026

Upcoming

Escore Tournament S2: W2
IPSL Spring 2026
Escore Tournament S2: W3
Acropolis #4
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
uThermal 2v2 Last Chance Qualifiers 2026
RSL Revival: Season 5
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 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.