The Big Programming Thread - Page 18
Forum Index > General Forum |
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
Norway1233 Posts
| ||
Scorcher2k
United States802 Posts
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
United States57 Posts
| ||
catamorphist
United States297 Posts
| ||
Zack1900
United States211 Posts
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
Canada919 Posts
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) | ||
Badjas
Netherlands2038 Posts
| ||
AcrossFiveJulys
United States3612 Posts
This has got to be the dumbest bug I've written. Can you spot it? Rofl.
| ||
catamorphist
United States297 Posts
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. | ||
Cambium
United States16368 Posts
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.
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)
| ||
AcrossFiveJulys
United States3612 Posts
On July 31 2010 14:51 catamorphist wrote: 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
United States3612 Posts
On July 31 2010 15:10 Cambium wrote: 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)
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]
United States2365 Posts
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 ![]() | ||
Badjas
Netherlands2038 Posts
![]() 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. | ||
Frigo
Hungary1023 Posts
Working in C++ using GMP and my own stuff. Willing to help people with C++ or Project Euler problems. | ||
Zack1900
United States211 Posts
+ 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
Netherlands2038 Posts
| ||
Zack1900
United States211 Posts
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
United States2130 Posts
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. | ||
Adeny
Norway1233 Posts
| ||
| ||