• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 17:38
CEST 23:38
KST 06:38
  • 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
Serral wins HomeStory Cup 2914Serral wins Maestros of the Game 243ByuL, and the Limitations of Standard Play3Team Liquid Map Contest #22: Results and Winners7Code S Season 2 (2026): RO4 and Finals Preview12
Community News
IntoTheTV X SOOP SC2 League : Weekly & Monthly4Clem: "I don't have that much hope in Blizzard"7ZeroSpace Early Access is Now Live!34Weekly Cups (July 13-19): Terran & Protoss rise; Zerg falters2Balance hotfix patch 5.0.16b (July 16)104
StarCraft 2
General
Clem: "I don't have that much hope in Blizzard" Balance hotfix patch 5.0.16b (July 16) Terran or Protoss How would you feel about frequent/monthly balance patches for SC2? 3kb/s downloading patch..... are we back to 1998?
Tourneys
PIG STY FESTIVAL 8.0! (13 - 23 August) RSL Revival: Season 6 - Qualifiers and Main Event IntoTheTV X SOOP SC2 League : Weekly & Monthly INu's Battles#18 - Cure, herO, Rogue & ByuN Master Swan Open (Global Bronze-Master 2)
Strategy
[G] Having the right mentality to improve
Custom Maps
[M] (2) Industrial Park New Map Maker - Looking for Advice - Love or Hate
External Content
Mutation # 536 Railroad Switch The PondCast: SC2 News & Results Mutation # 535 Assembly of Vengeance Mutation # 534 Burning Evacuation
Brood War
General
BW General Discussion ASL22 General Discussion BGH Auto Balance -> http://bghmmr.eu/ Recent recommended BW games screpdb: new Starcraft reporting tool
Tourneys
2v2v2v2 Tournament Star Con San Diego 2026 Escore Tournament - Season 3 [Megathread] Daily Proleagues
Strategy
Fighting Spirit mining rates Simple Questions, Simple Answers PvT advise for noobs
Other Games
General Games
Path of Exile ZeroSpace Early Access is Now Live! Stormgate/Frost Giant Megathread General RTS Discussion Thread Nintendo Switch Thread
Dota 2
Looking for a Dota Mentor Official 'what is Dota anymore' discussion
League of Legends
TSM pausing esports and CLG Dead
Heroes of the Storm
Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Power Rank TL Mafia Community Thread NeO.D_StephenKing vs This Guy From 1 Million Dance
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Artificial Intelligence Thread European Politico-economics QA Mega-thread How to buy a book - shipping from Korea to Europe
Fan Clubs
The IdrA Fan Club The HerO Fan Club!
Media & Entertainment
Movie Discussion! Anime Discussion Thread Series you have seen recently... [Req][Books] Good Fantasy/SciFi books
Sports
2024 - 2026 Football Thread 2026-27 Football Thread placeholder TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion MLB/Baseball 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread Simple Questions Simple Answers FPS when play League Of Legend on laptop
TL Community
Northern Ireland Global Starcraft The Automated Ban List
Blogs
Games, Hormones, and "Dark" …
TrAiDoS
Hello guys!
LIN1s
ASL S22 English Commentary…
namkraft
Poker (part 2)
Nebuchad
An Exploration of th…
waywardstrategy
Customize Sidebar...

Website Feedback

Closed Threads



Active: 6685 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 12h 22m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
ByuN 480
IndyStarCraft 180
ZombieGrub171
SteadfastSC 156
ProTech89
StarCraft: Brood War
NaDa 31
yabsab 15
League of Legends
Doublelift3527
Super Smash Bros
PPMD80
Other Games
Grubby3687
ToD720
shahzam647
Mlord563
Liquid`Hasu262
Pyrionflax176
C9.Mang0165
Livibee116
JuggernautJason108
UpATreeSC94
Mew2King45
Trikslyr39
Organizations
Other Games
BasetradeTV79
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 17 non-featured ]
StarCraft 2
• StrangeGG 64
• RyuSc2 14
• Kozan
• Migwel
• AfreecaTV YouTube
• sooper7s
• intothetv
• IndyKCrew
• LaughNgamezSOOP
StarCraft: Brood War
• Eskiya23 20
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• C_a_k_e 2671
• masondota21943
Other Games
• imaqtpie896
• Shiphtur532
Upcoming Events
Sparkling Tuna Cup
12h 22m
INu's Battles
13h 22m
Cure vs herO
ByuN vs Rogue
PiGosaur Cup
1d 2h
The PondCast
1d 12h
Kung Fu Cup
1d 13h
Patches Events
1d 18h
Replay Cast
2 days
CrankTV Team League
2 days
OSC
2 days
Replay Cast
3 days
[ Show More ]
Escore
3 days
CrankTV Team League
3 days
Replay Cast
4 days
Afreeca Starleague
4 days
RSL Revival
4 days
ByuN vs SHIN
Solar vs Lambo
WardiTV Summer Champion…
4 days
Afreeca Starleague
5 days
RSL Revival
5 days
Clem vs Serral
herO vs Rogue
WardiTV Summer Champion…
5 days
WardiTV Weekly
6 days
Liquipedia Results

Completed

Acropolis #4
SCTL 2026 Spring
Eternal Conflict S2 Finale

Ongoing

CSL 2026 Summer (S21)
KCM Race Survival 2026 Season 3
RSL Revival: Season 6
CranK Gathers Season 4: BW vs SC2 Team League
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026

Upcoming

Escore Tournament S3: W5
ASL Season 22: Qualifier #1
ASL Season 22: Qualifier #2
Acropolis #5
CSLAN 4
ASL Season 22
Acropolis #5 - TRS
HSC XXX
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
PiG Sty Festival 8.0
Light Tournament 2026
ESL Pro League Season 24
Stake Ranked Episode 4
Logitech G Connect 2026
SL StarSeries Fall 2026
FISSURE Playground #5
BLAST Open Fall 2026
Esports World Cup 2026
BLAST Bounty Summer 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.