958 Posted Topics
Re: Does code have to be "brand-new", can you pull stuff out of old projects, or use bits used from your old challenge? | |
Re: Did you read how to setup projects in Dev-C++? New Project -> Project Options -> Set the include and library directories -> Parameters, Linker, name of the static library. | |
Re: Uhmm... First enclose code used by for, while, if, etc. in brakets [icode]}{[/icode]. It's hard to spot where things end and begin without them. And where does it crash? Have you tried breakpoints in a debugger, or even just putting couts/printf in the code to see where you are? Why … | |
Re: Class awsome is not a pointer you don't use [icode]->[/icode]. Oopy.cpp missing something on the include? Your class is missing a semicolon to finish it. | |
Re: Learn to program first, get GCC, then preferably learn the ASM for your arch. Simple isn't it? | |
Re: Guitars, basses, violins, string instruments I love! ^_^ Most of my experience is with my electric guitars, with .12 gauges in C-standard, or .9 in B (yes that is hanging) while doing pinch harmonics. | |
Re: Try a test setting the file attribute-CX to 1, for read-only, and see if CF is set then. | |
Re: Take the initial time with[icode]time()[/icode], use inside a loop take the time again, then use [icode]difftime()[/icode] to check the diffrence between the two; if it's greater than the max time, break the loop. | |
Re: [QUOTE=amerninja2;751692]No Windows API is different. Console applications are the DOS window.[/QUOTE] Actually they're just Window console apps, using the command prompt. They're not true DOS programs, unless you have a compiler compiling for DOS. I think you're just confusing the OSes with command prompt. | |
Re: Possibly in a register entry, that sets it for the whole system. Which that's a very Windows related question, which you might be better off in a Windows related forum in finding it. I assume you're trying to alter it for the whole system/user? Once you find it, just look … | |
Re: Can't you simplify Alpha, and Morse like this: [icode]string Alpha = "abcd...7890";[/icode] [icode]vector<string> Morse;[/icode] You probably could come up with an algorithm to push_back() all the elements, for Morse. Or for now, do it manually for the first few ones, just to test it out. | |
Re: Well as they already said reset sum to zero; next problem in month two would be, you forgot quotes [icode]"[/icode] in cout, and I'm assuming the lack of int before main() is a copy-paste oversight. You could create a class that holds all of the months, extra info and functions … | |
Re: He did, by telling you, "you need a question, if you want an answer"(in other words). Try what Freak_Chris posted. | |
Re: [QUOTE=FTProtocol;749884]lol im not lucky it works 100% :P[/QUOTE] Then what's the point of this thread, anymore? | |
Re: A list of things to do: Use code tags, realize you're programming in C++ not BASIC avoid [icode]goto[/icode], avoid [icode]system()[/icode] whenever possible(it's slow, often unportable, and insecure in some cases), and reformat your code because someplaces look like errors but I can't tell. | |
Re: Tell them to use it, and search for the char with [icode]'.'[/icode]. | |
Re: I saw people asking this, in Yahoo Answers last week. I like this funnier leaning tree version(I don't have a life to be writing this stuff): [code]for(int i = 0; i < 16; i++) { for(int j = 0; j < 16 - i; j++) { for(int l = 0; … | |
| |
| |
Re: [QUOTE=DemonGal711;746827] And if I try to use the Print(); funtion, that makes the program close. Any help?[/QUOTE] What [icode]Print()[/icode] function? | |
Re: Get the input as a string, then check if it's a number or not. | |
Re: You're trying to declare functions in mainMenu, not calling them. You don't need to declare the type while calling it. | |
Here's what I'm trying out: [icode]Substitute characters into values with no set left bits; check if the next position is a vowel(or whatever), turn it into a value with no right bits set, join the two characters into a single byte, delete the unused position now.[/icode] Here's the code using … | |
Re: In the case the you only had to use ASCII values 32-126, you then could share a single byte for two values. You could even use a truth table that points out the positions of a nibble that is really its opposite extended version 128-255. | |
Re: There's good beer, and there's bad beer. For instance, Corona taste like piss and I almost puked having one, but recently I had some German one(don't know the name) and it tasted like a sort of roll my aunt makes, on the holidays, that I love. | |
Re: C++ has its own file methods, look up "C++ file io". You don't need an API. | |
Re: Or are they making fun of the "Angry German Kid" video? | |
Re: Turkey tail. Thanks-Giving is the day Lincoln decided that all Americans should get fat. | |
Re: Replace: [icode]char *str;[/icode] with [icode]string str;[/icode] and fix: [icode] str.length[/icode] with [icode]str.length()[/icode] | |
Re: You can always save a decade old machine from the recycle, and use DOS or Win 9x; and then it's easy to do in C. That way you could also dedicate it to your project[s]. For Inpout32.dll look at Test2.c, here: [url]http://www.hytherion.com/beattidp/comput/pport.htm[/url] That was rather painless. Some more links: [url]http://logix4u.net/Legacy_Ports/Parallel_Port/Inpout32.dll_for_Windows_98/2000/NT/XP.html[/url] | |
Re: uhhmmm..... No, that shouldn't be the problem, since .o files are compiler produced. | |
Re: What type of input, and what sort of format is it in? | |
Re: Main() must return a zero for successful operation. | |
Re: Didn't see the difference(I think most languages are the same anyway). | |
Re: Look up "Bubble sort", slow, but should work for what you described. | |
Re: ughhhhmmmm...... No, and we're aware that this is the C++ forum, your title doesn't need to point that out. If this is a homework assignment, then all you have to do is "design one", not create some commercial piece of software. | |
Re: Don't use macros as types. [code]typedef unsigned int uint;[/code] | |
Re: You can put the BinaryNode struct outside of the class and make the class look a little more cleaner. Why are you including the .cpp file, it's not a header? Shouldn't the destructor test if the pointers are NULL first? | |
Re: You can put all of that delay crap in a loop. | |
Re: I pretty sure there's a better way of drawing the scene with an initial array that you print in a loop, then add the new characters to the array every new state. | |
Re: You have to check if you have enough room before you use [icode][i+1], [j+1][/icode]; because you're going past the your array boundaries. See how it goes past at [0][2]: [code]MatrixC[0][0] = (MatrixA[0][0] * MatrixB[0][0]) + (MatrixA[0][1] * MatrixB[1][0]); MatrixC[0][1] = (MatrixA[0][1] * MatrixB[0][1]) + (MatrixA[0][2] * MatrixB[1][1]);[/code] | |
Re: Look up, "Bitwise operators C++", then try something like this: [code]unsigned char a = 1; for(int i = 255; i > 0; i--) { a |= i; a ^= i - 1; }[/code] Would have an effect like this: [code]00000001 00000011 00000100 00000101 00000101 00000111 00001000 00001001 ... 11111111[/code] In … |
The End.