2,867 Posted Topics

Member Avatar for smallpau1

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]

Member Avatar for Salem
0
122
Member Avatar for megabutt

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. :)

Member Avatar for megabutt
0
109
Member Avatar for Aia

No problem buddy. Some people don't acknowledge the help they get, or don't care. So thanks for the thank-you! ;)

Member Avatar for ~s.o.s~
6
136
Member Avatar for Mac.Z

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. …

Member Avatar for John A
0
119
Member Avatar for xokirstieox

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:

Member Avatar for John A
0
104
Member Avatar for Duki

[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 …

Member Avatar for pty
0
198
Member Avatar for The Dude

I got 80% on the test, with #3 and #13 incorrect. Heh heh, and I don't even drive a car (commute everywhere). :D

Member Avatar for Riv3n
0
182
Member Avatar for dynamicdude

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.

Member Avatar for Mix
0
227
Member Avatar for Turbo4reek

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]. :)

Member Avatar for mattyd
1
83
Member Avatar for tradfreak

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!

Member Avatar for mattyd
0
71
Member Avatar for garrisongold

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. …

Member Avatar for mattyd
0
95
Member Avatar for Dani

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 …

Member Avatar for Mix
0
367
Member Avatar for Matt Tacular

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 …

Member Avatar for Matt Tacular
0
75
Member Avatar for WaltP

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 …

Member Avatar for Dani
0
798
Member Avatar for >shadow<

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?

Member Avatar for >shadow<
0
95
Member Avatar for Tauren

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 …

Member Avatar for John A
0
125
Member Avatar for esaguy

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).

Member Avatar for John A
0
186
Member Avatar for Pegasilee

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 …

Member Avatar for John A
0
122
Member Avatar for CurtisBridges

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 …

Member Avatar for John A
0
124
Member Avatar for Jaseva

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.

Member Avatar for Jaseva
0
87
Member Avatar for Matt Tacular

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 …

Member Avatar for Matt Tacular
0
241
Member Avatar for Aia

[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 …

Member Avatar for Ravalon
0
175
Member Avatar for jbennet

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 …

Member Avatar for jbennet
0
160
Member Avatar for hariza

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() …

Member Avatar for hariza
0
5K
Member Avatar for Dave Sinkula

[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 …

Member Avatar for Dave Sinkula
0
619
Member Avatar for FireSBurnsmuP

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 …

Member Avatar for John A
0
179
Member Avatar for jbocker34

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 …

Member Avatar for John A
0
196
Member Avatar for megabutt

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.

Member Avatar for John A
0
99
Member Avatar for Tauren

That's "volume 9", so you will need to master 1-8 before tackling volume 9.

Member Avatar for John A
0
107
Member Avatar for Ancient Dragon

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.

Member Avatar for Dani
0
207
Member Avatar for rasakse

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.

Member Avatar for John A
0
131
Member Avatar for RaCheer

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 …

Member Avatar for ~s.o.s~
0
156
Member Avatar for fesago90

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 …

Member Avatar for Ravalon
0
138
Member Avatar for tech291083

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 …

Member Avatar for tech291083
0
102
Member Avatar for whizz81

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 …

Member Avatar for whizz81
0
264
Member Avatar for flaco

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 …

Member Avatar for jbennet
0
371
Member Avatar for JustBCuz

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! :)

Member Avatar for happygeek
1
8
Member Avatar for mmangai
Member Avatar for jbennet

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.

Member Avatar for WaltP
0
112
Member Avatar for localshredder

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 …

Member Avatar for Madd the Sane
0
15K
Member Avatar for Shaabangbang

[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]?

Member Avatar for Shaabangbang
0
79
Member Avatar for DemonicGoldfish

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 …

Member Avatar for DemonicGoldfish
0
96
Member Avatar for tech291083

Not to mention some newbies start mixing together C and C++, which would only make a moderator's duty even harder... :D

Member Avatar for tech291083
0
132
Member Avatar for tech291083

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. …

Member Avatar for tech291083
0
105
Member Avatar for samernic

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 …

Member Avatar for Nick Evan
0
118
Member Avatar for sree_asrl
Re: Sms

[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 …

Member Avatar for sree_asrl
0
116
Member Avatar for raydogg57

[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]

Member Avatar for John A
0
251
Member Avatar for Duki

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 …

Member Avatar for John A
0
181
Member Avatar for Dysslution

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 …

Member Avatar for John A
0
124
Member Avatar for hariza

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]

Member Avatar for John A
0
143

The End.