• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 07:42
CEST 13:42
KST 20:42
  • 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
[ASL19] Finals Recap: Standing Tall8HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0TL Team Map Contest #5: Presented by Monster Energy6
Community News
Flash Announces Hiatus From ASL41Weekly Cups (June 23-29): Reynor in world title form?12FEL Cracov 2025 (July 27) - $8000 live event16Esports World Cup 2025 - Final Player Roster16Weekly Cups (June 16-22): Clem strikes back1
StarCraft 2
General
RELIABLE USDT RECOVERY SERVICE//TECHY FORCE CYBER The SCII GOAT: A statistical Evaluation Statistics for vetoed/disliked maps Esports World Cup 2025 - Final Player Roster How does the number of casters affect your enjoyment of esports?
Tourneys
RSL: Revival, a new crowdfunded tournament series [GSL 2025] Code S: Season 2 - Semi Finals & Finals $5,100+ SEL Season 2 Championship (SC: Evo) FEL Cracov 2025 (July 27) - $8000 live event HomeStory Cup 27 (June 27-29)
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma Mutation # 477 Slow and Steady
Brood War
General
BW General Discussion [ASL19] Finals Recap: Standing Tall BGH Auto Balance -> http://bghmmr.eu/ Help: rep cant save Player “Jedi” cheat on CSL
Tourneys
[Megathread] Daily Proleagues [BSL20] GosuLeague RO16 - Tue & Wed 20:00+CET The Casual Games of the Week Thread [BSL20] ProLeague LB Final - Saturday 20:00 CET
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile What do you want from future RTS games? Beyond All Reason
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
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine US Politics Mega-thread Trading/Investing Thread The Games Industry And ATVI
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [\m/] Heavy Metal Thread
Sports
2024 - 2025 Football Thread NBA General Discussion Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023 NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Blogs
from making sc maps to makin…
Husyelt
Blog #2
tankgirl
Game Sound vs. Music: The Im…
TrAiDoS
StarCraft improvement
iopq
Heero Yuy & the Tax…
KrillinFromwales
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 662 users

The Big Programming Thread - Page 18

Forum Index > General Forum
Post a Reply
Prev 1 16 17 18 19 20 1031 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 1031 Next
Please log in or register to reply.
Live Events Refresh
RSL Revival
10:00
Season 1: Playoffs Day 1
ByuN vs Classic
Clem vs Cham
Crank 1636
Tasteless1233
IndyStarCraft 140
Rex135
3DClanTV 81
IntoTheiNu 63
LiquipediaDiscussion
The PondCast
10:00
Episode 53
CranKy Ducklings32
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Crank 1636
Tasteless 1233
IndyStarCraft 140
Rex 135
Harstem 90
ProTech54
EnDerr 4
StarCraft: Brood War
Britney 35486
Sea 3662
Rain 3520
Horang2 3155
Jaedong 1082
BeSt 716
EffOrt 472
Larva 461
Mini 434
Light 336
[ Show more ]
actioN 313
Stork 278
ToSsGirL 220
Last 155
Killer 155
Pusan 102
Mong 86
ZerO 80
Sharp 69
Snow 68
Mind 51
hero 50
sSak 47
Rush 42
Noble 35
Nal_rA 32
sorry 26
yabsab 25
Shinee 21
Sacsri 18
ajuk12(nOOB) 16
soO 14
Icarus 13
Movie 12
JulyZerg 12
NaDa 9
SilentControl 8
IntoTheRainbow 5
Bale 3
Dota 2
BananaSlamJamma536
XcaliburYe471
420jenkins389
Counter-Strike
shoxiejesuss815
x6flipin557
allub150
Super Smash Bros
Mew2King151
Other Games
B2W.Neo519
DeMusliM477
crisheroes286
Lowko158
SortOf60
Pyrionflax49
ArmadaUGS15
ZerO(Twitch)13
Organizations
StarCraft: Brood War
Kim Chul Min (afreeca) 1401
StarCraft 2
ComeBackTV 840
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• StrangeGG 23
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• iopq 3
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV398
Upcoming Events
WardiTV European League
4h 18m
ByuN vs NightPhoenix
HeRoMaRinE vs HiGhDrA
Krystianer vs sebesdes
MaxPax vs Babymarine
SKillous vs Mixu
ShoWTimE vs MaNa
Replay Cast
12h 18m
RSL Revival
22h 18m
herO vs SHIN
Reynor vs Cure
OSC
1d 1h
WardiTV European League
1d 4h
Scarlett vs Percival
Jumy vs ArT
YoungYakov vs Shameless
uThermal vs Fjant
Nicoract vs goblin
Harstem vs Gerald
FEL
1d 4h
Korean StarCraft League
1d 15h
CranKy Ducklings
1d 22h
RSL Revival
1d 22h
FEL
2 days
[ Show More ]
Sparkling Tuna Cup
2 days
RSL Revival
2 days
FEL
3 days
BSL: ProLeague
3 days
Dewalt vs Bonyth
Replay Cast
4 days
Replay Cast
4 days
The PondCast
5 days
Replay Cast
6 days
RSL Revival
6 days
Liquipedia Results

Completed

Proleague 2025-06-28
HSC XXVII
Heroes 10 EU

Ongoing

JPL Season 2
BSL 2v2 Season 3
BSL Season 20
Acropolis #3
KCM Race Survival 2025 Season 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Championship of Russia 2025
RSL Revival: Season 1
Murky Cup #2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025
YaLLa Compass Qatar 2025

Upcoming

CSLPRO Last Chance 2025
CSLPRO Chat StarLAN 3
K-Championship
uThermal 2v2 Main Event
SEL Season 2 Championship
FEL Cracov 2025
Esports World Cup 2025
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
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 © 2025 TLnet. All Rights Reserved.