1,265 Posted Topics
Re: did you[URL="http://lmgtfy.com/?q=bpsk"] try this[/URL]? | |
Re: what about marriages in Belgium, Canada, Netherlands, Norway, South Africa, Spain, Sweden, Aruba, Antilles, Israel, and the U.S. states of Iowa, Massachusetts, Connecticut, Maine, Vermont, and New York? I believe your algorithm fails. . | |
Re: there are 26*26=676 permutations. that's easy to "brute force" the trickier part will be getting the computer to recognize when the solution has been found. a possible intermediate stage to this program could be to allow the user to choose which letters are substituted, updating the output each time. this … | |
Re: theres no way to tell whats going on by the sparse amount of code you've posted. the problem, i'll wager, is likely in your "load complex" function, whatever that is... | |
Re: holy ESL, Batman. :icon_rolleyes: seriously, though... this is like some sort of advanced undergrad or first-year grad school project. if you've made it this far to be assigned this sort of problem, you damn sure better be prepared and able to do the majority of the work yourself. post some … | |
[B][U]PROBLEM: [/U][/B] noobs are continually posting mountains of unhighlighted code, and its just nearly impossible to read such messes without highlighting... i dont even want to try, it hurts my head. making this worse is the people who need the most help are the same people who are the worst … | |
| |
Re: i'm sorry, but why would anyone WANT to use floats as a boolean type? that's like taking the most basic thing in the world, and purposely making it complicated and unreliable. | |
Re: [QUOTE=serkan sendur;863245] right after the strip club my english sounds like native. [/QUOTE] what are you saying, you can order a beer and a lap dance just like a good ol' boy? your reputation as "creepy internet stalker dude", just keeps getting more and more entrenched. seriously. do you know … | |
Re: ArkM's method is sufficient, but i prefer this way. [code=c]buf[strcspn(buf,'\n')] = '\0';[/code] it's just a single line of code that will replace the newline with a NULL, if a newline is found, or will do nothing if one is not there . | |
Re: How Many Times ... are you going to [URL="http://www.daniweb.com/forums/search8501309.html"]post this same problem in different threads[/URL] what was wrong with [URL="http://www.daniweb.com/forums/thread189653.html"]the advice Narue gave you just four days ago?[/URL] | |
Re: the fact that it doesnt terminate the string with a NULL is the error. a string must have a NULL termination, or else it's just a character array. | |
Re: use sockets. [URL="http://beej.us/guide/bgnet/"]Beej's Guide[/URL] is probably one of the best general-purpose reference guides available. | |
Re: any int variable is inherently an *integer* the value is not stored in any particular base .... hex or decimal or binary, it doesnt matter. the only difference is when you print it. [icode]printf("hex value %04X = decimal value %d\n",Dec, Dec);[/icode] but also, what youre asking to do is to … | |
Re: use "strlen" and check character ranges. look at your ascii table. post some code if you want any more advice. ![]() | |
Re: the prototype for itoa is: [icode]char * itoa ( int value, char * str, int base );[/icode] but it's really a bad function to use as it's not portable. use sprintf, instead: [icode]sprintf(buf,"%d",sum);[/icode] another problem you may be having is, how is "buf" terminated? what do you expect is at … | |
Re: maybe its a problem with ESL but i dont know WTF the OP is saying. | |
Re: I'm jealous of your jello shots. | |
Re: HERE is how you do it: use two pointers. an input and an output, both pointing to the start of the source string. compare the input pointer character to each of your key characters. if you have a match, increment your input pointer only. if you dont have a match, … | |
Re: there are over 39,000 people in the U.S. with my real name. there are 1 or fewer people in the U.S. with my screen name. | |
Re: [QUOTE=bilawal420;862780]plz someone reply me quickly[/QUOTE] well, i was getting ready to reply, but then i got to that last part and just lost interest. | |
Re: no it's not portable. there is no truly portable solution. you'll have to #define the sleep routine according to the detected OS at build time. | |
Re: cycle through each lettter in the alphabet, a through z, and check each letter if it repeats. remember that ascii code character A is decimal 65 and Z is decimal 90. lowercase a is decimal 97 and lowercase z is 122. you can subtract 32 from any lowercase letter to … | |
Re: glad you got it figured out. dont worry about the double posting. it happens to almost everyone at some point, somewhere. there are worse things one could do. :) | |
Re: what's the problem saving the data? as in, what's it doing or not doing that doesn't seem right to you? if you want a new file to be written with the data, then you're using fopen correctly.... "w" (write) will delete the contents of the existing file, if any, before … | |
Re: (1) this thread was dead and buried, until "lolguy" dug up the bloated corpse to defile it even further (2) the original code is an example of what not to do. don't spend any time thinking about it. | |
Re: just because you're in the same Indo-European linguistic family, doenst mean teh language is going to appear to be at all related. it's a HUGE group... :P anyhow, good luck. English is a notoriously difficult language to learn due to the widespread borrowing of words, odd colloquialisms, and multiple exceptions … | |
Re: when you build your program and it complains: "warning: implicit declaration of function `memset'" ... you have to pay attention to that. memset() and memcmp() require that you #include <string.h> theres could be other issues, but start with that and lets see what happens. . | |
Re: wait, what? its been three days ... why haven't you guys finished helping this kid write his spyware program, yet? who do i give neg rep to? | |
Re: maybe i'm missing something here? but i think perhaps you're making this too hard. [icode]*A = *B[/icode] changes the [I]contents[/I] of A to become the same [I]value[/I] as the contents of B. [icode]A = B[/icode] changes the pointer address of A, to point instead to the memory location currently pointed … | |
Re: do you need to be limited to storing 100 bytes? because if you kept a record of all possible 256 bytes, you could make it both faster and more memory-efficient. example: instead of actually copying and storing the value of 256 (or even 100) separate bytes, you really only need … | |
Re: eh, i feel like i'm trapped in an Escher painting. anyhow, metal_butterfly, there could be any number of reasons why your server is refusing the connection from your client [url]http://technet.microsoft.com/en-us/library/cc975854.aspx[/url] | |
Re: i used this library several years ago for a project... it's quite impressive.... however, i don't really remember anything to help you with. so, i don't want to sound dismissive, but i think this sort of highly specialized library you'll probably find more precise help on their mailing list or … | |
Re: that's dumb. what if he wants to add 9999 as one of his numbers | |
Re: LOL WUT? is this a love letter to Narue? well... damn. I just don't know [URL="http://www.thewolfweb.com/photos/00505003.jpg"]what else to say[/URL]. . | |
Re: i call shenanigans. this scheme assumes every city with a population this side of Irvine, CA (pop ~201,000) will be completely devastated. anyhow, the 1980's called: they want their mass scare back. :P . | |
Re: oh, look. here come more 5th graders. :icon_rolleyes: | |
Re: this is C. "bool" types are not allowed. neither are you allowed to declare variables within a for loop's conditional statement. the fact that you are able to get away with it using a C++ compiler doesn't matter. standard C compilers this fails to compile\ that said, ive gone ahead … | |
Re: [QUOTE=siddhant3s;855531] And if two files are different, their md5sum hash will of course be different.[/QUOTE] not true. MD5 is broken. in 2004, Wang et. al. demonstrated that forced MD5 collisions could be generated; in December 2008 the Chaos Communication Group forged an SSL certificate using forced MD5 collisions, in March … | |
Re: Commodore PET. oh gawd, i remember that. my first computer book was "Programming the PET"... i think i still have it somewhere at my folks' house. | |
Re: walt is right: everything is "urgent" ... youre lucky today is a slow day. and don't use feof in a while loop to break on the end of a file. use instead [URL="http://www.cplusplus.com/reference/clibrary/cstdio/fgets/"]fgets()[/URL] to read one full line at a time, and parse what you need out of that line … | |
Re: this assignment has never been given before!!!!11 | |
Re: is strval a single char that is a numeral character between 0 - 9? then you cant just recast it as an int. to convert a character numeral to it's integer value, you have to subtract 0x30 (decimal 48) from the character (ascii) value. [icode]int value = (int)strVal - 48;[/icode] | |
Re: what about an option to "rehabilitate" a banned member who wanted another chance? like a one-chance sort of thing where you're in probationary status, repeat offense would be irrevocable? i guess that would redefine "ban" into something more like a suspension, though. eh, probably not a good idea; just throwing … | |
Re: yeah, i could probably help you with this, but unfortunately you didnt use code tags, so it's all but completely unreadable. next time, try this: [noparse][code=c] your code goes here [/code][/noparse] |
The End.