560 Posted Topics
Re: Look in the folder /dev. In that folder you will see a whole bunch of files. Beleive it or not, those files are the link to your hardware on a low level. If you wish to access the device an a low level, just read and write from the corresponding … | |
Re: Yeah, I kinda don't like the idea of google making an os... I can see google becoming an open source version of microsoft, trying to dominate every single market it see's. I don't think windows seven will run vary well on my poor little aspire one, so I have to … | |
Hey guys. I decided to do another project euler problem, and got this problem: [CODE]You are given the following information, but you may prefer to do some research for yourself. * 1 Jan 1900 was a Monday. * Thirty days has September, April, June and November. All the rest have … | |
Re: [QUOTE=boyjim32;921648]do i need to code it first???[/QUOTE] Well, for a simple problem like this, you might. But for bigger problems, planning out the program is a must. Uhh... Why would someone who dosent know how to program in the first place be asked this? What ever the reason, [URL="http://www.cprogramming.com/tutorial.html#c++tutorial"]here[/URL] is … | |
Re: Making the gui is not vary hard. Learning how to make it however may take effort. If you want to make a simple gui without learning too much, consider using a gui builder. [URL="http://en.wikipedia.org/wiki/Graphical_user_interface_builder"]This[/URL] wikipedia page may be useful. Good luck. | |
Re: Use code tags and format you code please, it's hard to read. :) You can't make a boolean function in C. Use int instead (zero and nonzero). Why do you have so meany headers? All you need is stdio.h and math.h Also, I think the line: [CODE]limit=sqrt(double(num))+1;[/CODE] Was ment to … | |
Re: Here is a little more in-depth answer. >[COLOR="Red"]So my question is, how does C++ work? Like if you put the C++ code in notepad, save it, open it, will it work? I bet it won't.[/COLOR] Well your right. Lets take it from the beginning. A program is a set of … | |
Re: Uhh... 2 Nested loop's with 3 counters? | |
Re: Come here with your code if you have a problem with it, and we will point you in the right direction. Remember, google is your friend. Good luck with your project. :) | |
Re: Awsome. Some of those look pretty good, might watch one this summer. | |
Re: The code you written is C not C++. A C++ or C compiler should be able to compile that code. [URL="http://visualbasic.about.com/od/vbnetspecialtopics/a/bldykleapyra.htm"]Here[/URL] is a link to a page which has some vb code at the end to calcuate leap years. It should be easy to understand, even if you don't know … | |
Re: You shouldn't ask you question only in the title, but i'll make an exception. >[COLOR="Red"]please can any1 help me with this program[/COLOR] The answer is yes, I can help you with this program. Hope I was able to help! | |
Re: [QUOTE=Ancient Dragon;919229]I know that could be done with Microsoft MFC. Probably even wxWindows. You might search [url]www.codeproject.com[/url] to see if they have anything useful. I know they have a plotting program written if MFC.[/QUOTE] wxWidgets formally known as wxWindows is a cross platform api. It cam be used for free … | |
Re: Why do you suck? Thats an odd question if I must say so myself. [CODE=C] #include <stdio.h> #define suck 0 #define awesome 1000 int main() { int scru = awesome; while(scru != suck) scru--; if(scru == suck) { printf("scru sucks\n"); scru /= 0; } else printf("scru dosen't suck\n"); return 0; … | |
Re: Hmm, you have a problem. I am also unable to find a converter. You may, however, be able to open the file in notepad (if you are on windows) and extract the information manually. Expect to see gibberish along with your text. This is normal. Also note that the text … | |
Re: Will, I'd personally open 2 sample files for all three types in a hex editor, and see if I can find the propery values in them and try and find a pattern to where they are located. After that I would write a program to open the file up, index … | |
Re: It's hard to tell whats wrong without the source, so if you need to know why your program dosen't work, upload the source. Never programmed in VB for a while, but [URL="http://www.homeandlearn.co.uk/NET/nets12p4.html"]this[/URL] should help. I found it using an online service called [URL="http://www.google.com/"]Google[/URL]. Its completly *free, no sign-up required, and … | |
Re: >[COLOR="Red"]* Is it possible that if the user tries to kill the service, the service will automatically change license code and kill software X before being killed itself?[/COLOR] No, not directly. However you can use cryptography to make it alot more harder. See below. >[COLOR="Red"]* If the user changes the … | |
Re: [QUOTE=shtikk;917700]can you help me make a typing game of falling letters(randomly), and as the player presses the key of the letter, the letter being pressed will vanish and points will be gained by the player. Thank You.[/QUOTE] Next time make a new thread. | |
Re: Try making a smaller example of the problems... that program looks a over complicated. If what you have work's, exept for a few errors, don't worry about changing it. Here's how I would go around doing it: First read the description file to make a sscanf string, and make two … | |
Re: [URL="http://www.algorithmist.com/index.php/Sorting"]Here[/URL] is a webpage that has a list of sorting algorithms and pseudo-code. | |
Re: A quick search on google "C++ searching local directory for dll" and I found [URL="http://stackoverflow.com/questions/327093/add-custom-dll-search-path-application-startup"]this[/URL] on the first link. Hope it helps. | |
Who the daniweb mascot? You know, the dude that you see when you don't log in with really long and skinny legs? The picture of his head is just below the "Site Search" button. Does he have a name? Wife? Does he have a house? A car? Whats his blood … | |
Re: [QUOTE=MosaicFuneral;915620]How do we know it's not a US ploy to zealously lock-down and censor the internet?[/QUOTE] Becouse no one has control over the internet. That would be against it's own design. | |
Re: You welcome in advance :P There are 64-bit verisons of Windows, Linux, and some unixes (like freebsd). I don't know of any 64-bit OS that does not support 64-bit adressing (besides running 32-bit apps in 32-bit mode). I'm sure windows has a 64-bit compiler for C/C++. Unix/Linux has gcc which … | |
Re: So whats wrong? Just implement what you have written down. | |
Re: Just thought I'd post that google chrome OS is going to be based on linux. They also said that the whole thing will be open source, so they'll only be able secretly collect info by making most of the desktop online. I'm still going to stick to comfortable ubuntu. | |
Re: Tutorials: [URL="http://www.cprogramming.com/tutorial/c/lesson3.html"]Loops[/URL] [URL="http://www.cprogramming.com/tutorial/c/lesson8.html"]Arrays[/URL] Make up some code using those, and if it dosent work, come back here so we can correct you. Good luck. | |
Is it possible in C to pass a 2d array without eather of the sizes known? Something like this maybe: [CODE=C]#include <stdio.h> void somefunction(int *array); int main(void) { int array[3][3] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}; somefunction(array); return 0; } void somefunction(int *array) { printf("%d\n", array[3][2]); … | |
Re: Make your own from your computer (unlikely your ip addr is blocked... yet.) Maybe hide it in an 'educational website' and have a ssl secured 'administrator's login'. | |
Re: [QUOTE=gustyJoey;913517]can yo pls help me the full codes of militlitary time convert to 12 hours time.[/QUOTE] I can't really help you fill lines of code (it would requre altering your neural system.) Modulo 12.60 should do it, with floating point integers. EDIT: Sorry Ancient Dragon, didn't see your post :P | |
Re: Ahh, thats what you were asking. Try subracting two asterics from each row (and 4 on the next, etc..), and adding a space in front (again, 2 on the next etc..). You need somewhere to stop it though, or it might turn into a triangle!:P Again, it looks like your … | |
Re: I'm my school, I've never seen a programmer smoke (there is a large number of smokers in our school). We'll, I guess if you count one of the "programmers" in CS class who can't make a simple prime number tester after 5 months without copying someone elses code, than I … | |
Re: What are all those headers for? Comments would also be nice so we can see what your doing. Are you incrementing every character by one, and if the input is 'n', you increment every number again? What happens when you go past the printible character range? | |
I'm trying to write my own function from scratch to add large numbers. This function takes the input of an unsigned long long array, with each number being 10 didgets long (the reason for the long long signed is becouse I might expand it) and adds it to the output … | |
Re: Here's the english version: [CODE]If input is peso to dollar Multiply input by 0.08775 (canadian dollars) (use double datatype) print product to the screen if input is dollar to peso Divide input by 0.08775 (canadian to peso) print result to the screen[/CODE] Just change that decimal to 0.076208 for us … | |
Re: Hmm. Sorry I dont know mips assembly but on line 12 [CODE]ori $s3, $0, 2[/CODE] It looks like your resetting something back to 2. Just an educated guess.;) Good luck! | |
Hey guy's. Can't get this seemingly simple function to work. It is suppost to get a string and return the first 10 characters, than the next time you call it, it returns the second 10 cheracters and so on. I did this in basic a while ago without problems, C … | |
Re: Fear.. It created becouse ancient animals with the random trait of fear survived better than the ones without, so they were the one's who had the next generation. We tend to bevieve anything that we should stay away from thats dangerous, even if it dosent exist. We also are also … | |
Re: Take a look [URL="http://www.cprogramming.com/"]here[/URL] for some more information. Remember google is your friend, and post here for help. Good luck learning C++. | |
I'm not sure where else to post so forgive me:( I know how to mark a post as solved, but how do I chose who solved it? Sorry if you solved one of my threads and didn't get a forum solved point.:scared: Thanks. | |
Re: Here we help people learn and understand programming. We don't answer questions without the questioneer doing work to understand what the problem is and attempting to fix it... Judging from the filename I'd say this is homework and you have no idea what your doing. Unless, of course, your "just … | |
Re: Hmm. Mac addreses should not go past the modem. I bet you that in order to track the location of a computer, they have to ask the isp (which who would probably only give to law enforcement after a good reason.) Everyone connected to the internet has equal right. Law … | |
Re: Print "Debug" to the screen at diffrent spots in the program. if you see the word "Debug" on the screen, you know its lower, if you don't see "Debug" its higher. I do this al the time befor I use a debugger. Good luck. | |
Re: I find if somethings too complicated to do with little abstaction, make it more abstract. In C, that basicly means making more functions to do smaller tasks. I suprized myself what I can do with this technique. I reccomend making a function to seperate the words one by one, and … | |
Writting a program which involves tallying generated numbers. I'm having problems with the tallying part. It takes a number, and finds it in the second row of an array, and tallies (add 1) to the same position in the first row. Here's my extracted code: [CODE=C]#include <stdio.h> void tally(int number, … | |
Re: Euler problem 3? The printf symbol for long long unsigned int is %llu. Just look for some malloc examples on google or look at [URL="http://www.cproggraming.com"]http://www.cproggraming.com[/URL]. Good luck! | |
Warning, this post contains code for Euler problem 5. Try to solve it youself without looking at anyones code. Its alot more satisfying if you do it yourself. Hello, just found an interesting website called project euler. I managed to get to problem 5 without a too many problems. Anyways … ![]() | |
Re: If your going towrite your own, think of how you would do it on paper. I tried to write one for any size number (limited by memory). Didn't work but the concept is pritty simple. |
The End.