2,867 Posted Topics
Re: Some points:[LIST] [*]Don't use void main for reasons discussed in the link in my signature.[/LIST][LIST] [*][inlinecode]square()[/inlinecode] is not a function in the standard template library. You'll have to define it yourself.[/LIST][LIST] [*]Likewise [inlinecode]intpow()[/inlinecode] has not been declared. I assume it's an integer overload function for the regular [inlinecode]pow[/inlinecode] function.[/LIST] | |
Re: Sounds liike you're trying to access memory which hasn't been allocated. Probably got something to do with your pointers. And the best way we can help you solve the problem is if you post your code. :) | |
Re: No problem buddy. Some people don't acknowledge the help they get, or don't care. So thanks for the thank-you! ;) | |
Re: Regarding your question about cin input: You're getting input problems with your input stream. If you only grab 1 charecter from the stream, what happens if the user enters more than 1? That's right, they just stay there waiting. This is the major drawback of using cin >> for input. … | |
Re: I assume you are using Windows. What version are you using (95, 98, XP, Vista)? What version of Internet Explorer are you using? Have you tried cleaning your monitor lately? :cheesy: | |
Re: [quote=Duki;310048]I have no clue how to install drivers (or programs for that matter). I need drivers for my graphics card (Radeon 9700?) and my scroll wheel on my Logitech mouse doesn't work.[/quote] There's multiple ways of installing Linux programs and drivers. For open source programs, the most common way to … | |
Re: I got 80% on the test, with #3 and #13 incorrect. Heh heh, and I don't even drive a car (commute everywhere). :D | |
Re: Although there are legitimate reasons to use wireless sniffers, it seems like most of them are used to break into secured wireless networks, which is [URL="http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies"]against the rules[/URL] (see "keep it legal" section) to discuss here (and it's illegal to do such a thing). Sorry. | |
Re: Hello there, welcome to DaniWeb. Specific questions about tech and other stuff should be asked in the appropriate forums, as this is only for introductions. However, since I'm nice I'll point you to a useful piece of free forum software: [URL="http://www.phpbb.com/"]phpBB[/URL]. :) | |
Re: Hey there Sean. Glad to have you here, and we'd love to help you with your programming problems. I'm a C/C++ programmer, so maybe I'll see you in the programming forums. [B]Note[/B]: if you post code, please wrap them in between [noparse][code] and [/code][/noparse] tags. Thanks! | |
Re: Welcome here! I'm sure you aren't boring; there's probably no one who does less than I do, yet no one calls me boring (at least not to my face, I'm not sure what they say behind my back... ;)). I'm sure you'll learn lots from this site, as I have. … | |
Re: There are definitely disadvantages to Macs. Customizability is quite an issue for expert PC users. You certainly can't build a custom Mac, and for many buyers the products Apple offers don't suit their needs/budget. Perhaps they don't want to spend more than $1000 on a laptop. Secondly, you have to … | |
Re: Arrays seem to be what you want. Static arrays are declared before hand, and you can store data in them. [code] int intArray[20]; // stores up to 20 integers cin >> myArray[5]; // user enters a number into the 6th element[/code] Of course, statically allocated arrays have their problems, so … | |
Re: I especially like the way the hyperlinks are now without an underline; it makes the whole design look cleaner. The blogs look especially good. :) [quote=Dani]Wow, what a relief! I was so afraid I would get lots of criticism about the missing forum descriptions and last thread info.[/quote] What would … | |
Re: Nice. :) I always like the LCD screens on the front of the case; it looks very cool. Maybe someday I'll get around to creating my own custom PC. Where did you get the LED lighting gizmo thing from? | |
Re: A game engine is basically a C++ (or C, but OOP programming is generally used) wrapper to your graphics API. So you're going to first need to learn the API you're planning to base your game engine on. Examples include OpenGL, DirectX, SDL, etc. Once you've learned that, creating the … | |
Re: If you know which port the camera operates on, you can set up port forwarding (say, to port 80) to allow you access from the internet. Of course, throw out any ideas of security for your camera... (anyone with your IP address could also view your photos). | |
Re: My favorite method is to do this: [LIST=1] [*] I use the [URL="http://mozilla.org/firefox"]Firefox[/URL] extension [URL="http://javimoya.com/blog/youtube_en.php"]VideoDownloader[/URL] to download the flash video from YouTube. [*]I use [URL="http://www.isquint.org/"]iSquint[/URL] to convert the video from Flash video to a QuickTime-compatible format. [*]Now I can burn the video to DVD. How to do that is completely … | |
Re: Please use proper indentation for your code. Doing it is a good habit, and most editors have an option that enables automatic indentation. That way we can read your code eaiser. :) >I thought that catching problems was up to the compiler. It is, but not entirely. A compiler can … | |
Re: I recommend either Acer or Toshiba. I've found them both to be very reliable, and decent machines. If it doesn't matter to you about Vista, I'm sure you can save lots of money by opting-out for a cheaper model running XP. | |
Re: You seem to be making this program needlessly complicated. Consider doing the following things:[LIST] [*]Nesting 2 loops inside each other [*]The first loop goes (y) through all the numbers until [I]x[/I] [*]The second loop (z) goes from 2 to [I]y[/I]-1 [*]Inside the second loop, check if [I]y[/I] can be divided … | |
Re: [quote]Do I have to repeat the string using "printf"?.[/quote] Nope, if you think about it really hard it prints itself out automatically. The computer's smart enough to figure out your thoughts. No, but seriously what did you expect? Just repeat the printf() statement, although to make it easier you may … | |
Re: Why do you continually suggest SuSE as an option for a distro when you hate the updater so much? Of course don't pick a distro that you hate. Perhaps you should install Ubuntu and see how fast it runs initally when using basic applications; if it's too slow than try … | |
Re: I don't know why you would want to do that... and as far as I know, all the C string functions automatically copy the terminating NULL charecter, because it's needed to tell the end of the string. Why exactly do you need to remove the null charecter? Of course, strlen() … | |
Re: [quote=WaltP;309494]And the way [I]cprogramming[/I] does it makes no sense at all. The different sizes for the left box looks so sloppy. I didn't like it when they switched to that fomat.[/quote] Are you kidding me? That's the worst update they've ever done to vBulletin! It looked fine before, but now … | |
Re: Well, first of all, you'll need to figure out the image loading. Every image file format I know of is contained inside a binary file, and each has a special way of reading it. I recommend [URL="http://www.wotsit.org/"]wotsit[/URL] for information on reading in image data. Outputting images is another matter. If … | |
Re: You'll want to make sure that you have a crossover cable for the connection between the cable modem and the router. Although many routers can automatically do the crossover, some can't, and it's best to do that if you have one lying around. Connect the cable modem to the router's … | |
Re: Can you post the source code you're trying to compile? Otherwise it should just be a simple switch or something. Perhaps you're just looking in the wrong directory. | |
Re: That's "volume 9", so you will need to master 1-8 before tackling volume 9. | |
Re: There's not really much we can do about it, though. The only explanation I have is that maybe the users tried to manually color each line with the WYSIWYG editor, but didn't realize that [code=c] doesn't accept colors. Perhaps it could? That would solve *some* of the problems. | |
Re: It probably will, although you'll need the lines [code]#include <sys/types.h> #include <unistd.h>[/code] at the top of your program to have the slightest chance of compiling it. | |
Re: Hello there. You'll probably want to change those [inlinecode]else { if() {[/inlinecode] statements to simply [inlinecode]else if()[/inlinecode] - much shorter, and it makes your code look neater. Speaking of which, please use code tags. :) (more info on my signature) There's several ways you can calculate the highest and the … | |
Re: The only way I know of (other than ways similar to the one already mentioned) is to create an array out of the data, and then you can access it with a number. You could also create an accessor function, such as Info::getData(int data) that would do the same thing … | |
Re: Is there any way for you to verify the internet connection itself? To me, it sounds like this is an ISP related problem and not Linux, because Linux detected your network card. Tests you can try: Ping: [code]ping google.com[/code] (Should return packets, "cannot look up host" is a sign the … | |
Re: From the sounds of it, Linux detects your hard-wired ethernet port, but needs a driver for the wireless card. In fact, Linux by default doesn't support very many wireless cards at all. You're usually forced to download the drivers. So, you'll first need to find the exact name and model … | |
Re: I refuse to vote because I like most operating systems. I happen to use Macs the most, but I like Linux quite a bit, and I often use Windows. They're all decent operating systems, and I'm not about to say that Mac OS X is the "best" operating system out … | |
Re: We're glad to have you here. DaniWeb's a place where you can both teach and learn, so we hope you enjoy it here. Welcome! :) | |
Re: Heh, I think I read this somewhere but I can't remember where... Unfortunately I am not as informed about world politics as some, which is ultimately the humor in this message. | |
Re: Alright, a little bit of information here. Mac OS X is indeed a POSIX operating system, built on top of FreeBSD, which is a Unix clone. It can run all tools that Unix/Linux can run, although since it's Unix [I]clone[/I], it's a bit modified and often Linux programs need to … | |
Re: [code=c] int j, size, S[20], i, largest_position, largest, start, counter = 0; while (size > 0) { scanf ("%d", &size); for (j = 0; j < size; j++) { scanf ("%d", &S[j]); } } [/code] Perhaps it might be a good idea to initalize [inlinecode]size][/inlinecode]? | |
Re: A "bit" is a digital storage unit that is either 1 or 0. All subsequent storage units, such as byte, kilobyte, etc are made up of bits. So what does this mean in computing? Well, generally speaking, 32 bit computing means that most of the data transfers done inside your … | |
Re: Not to mention some newbies start mixing together C and C++, which would only make a moderator's duty even harder... :D | |
Re: Drivers by nature are complex, because they have to talk directly with the hardware in C. For example, on Windows, you don't seem to see very many people writing their own drivers for hardware. In the open source world however, much of the ground work is done for you already. … | |
Re: You aren't storing the random numbers in a container, which is basically the idea behind this project. How else is the program supposed to know afterwards which numbers were generated? As for moving the integers around - make a copy of the integer you plan to move once you've found … | |
Re: [quote] I am new to C++.[/quote] [quote] I didnt say that i dont know C++ language.[/quote] Did I misread? Anyway, I see a bunch of things wrong here. For one thing, you don't even know what SMP is. Bad, bad. Never even [I]think[/I] about programming with something that you know … | |
Re: [quote] & tested this function with Turbo C++ version 3.0, it worked fine.[/quote] Yep, if it compiles with the old crappy Turbo, the code must be fine. :rolleyes: [LIST] [*]You didn't use code tags [*]Stop using ugly colors [*]This function has nothing to do with the OP's question[/LIST] | |
Re: Hello there. Sharing printers over a network generally tend to be more difficult than file sharing, as printers have problems of their own. However, it shouldn't be too difficult for you, especially since you've already got a working network. I'm referring to the machine that has the printer connected to … | |
Re: You made an 8 gb partition, or an 8 gb image file? Hopefully you didn't partition your physical hard disk! Basically you create an image file in VMWare. This is your virtual hard drive. Make sure in the settings for the virtual machine that the hard drive image you created … | |
Re: Don't use a newline charecter (\n) and then when you get input, the cursor will stay on the same line. To print out quotes, you'll need escape charecters for quotes: [code]printf("This is a \"fun\" test.\n"); // should print out: // This is a "fun" test[/code] |
The End.