2,867 Posted Topics
Re: [quote=kararu;288390]How can I link my c++ program with html/javascript code?[/quote] I don't think that's possible... then again, I could be wrong. In any case, I know it's [URL="http://msdn2.microsoft.com/en-gb/library/dx3d2ftc%28VS.80%29.aspx"]possible to do this in DHTML[/URL]. Other ways to call C++? I think there's other ways, but personally, I think the best way … | |
Re: [code] float calcMode(ifstream& inFile, int freq[], int size); ... ... float calcMode(ofstream& report, int frequency[], int size) {[/code] You still haven't updated your function to match your prototype. That's why you're getting that linker error. | |
Re: [quote=elcrapo;285777]i have given up on the array idea[/quote] Listen to what ~s.o.s~ said. Use arrays! If you can't figure out how to use arrays, avoiding it isn't going to help. Even if you do manage to avoid it now, what is going to save you when you are forced to … | |
Re: .bin files are usually incomplete downloads or part of something else -- I don't think you're supposed to run that. On the aMSN website, it gives the [URL="http://amsn-project.net/linux-downloads.php"]following instructions for Linux[/URL]: [LIST=1] [*]Download the [URL="http://prdownloads.sourceforge.net/amsn/amsn-0.96-2.tcl84.x86.package"]Autoinstaller[/URL] [*]When the download is complete, follow the instructions on [URL="http://www.autopackage.org/docs/howto-install/"]how to install using an autopackage[/URL][/LIST]Nothing … | |
Re: [quote=linux;287873] Another question is with plug-ins in Firefox and in Opera. I can't get a Flash Player or Windows Media Player plugin for Opera, and I can't get a Window Media Player plugin for Firefox. Is there a way to get these, or is there another browser I can use … | |
Re: Chances are you've got some spyware or other nasty happily sucking up your CPU cycles. It would definitely be a good idea to post the top processes. Especially if your computer is just idling. Hope this helps | |
Re: Get your user input first. Number of CPUs, and which range. First loop goes through the programs. If there's 18 programs, it goes for 18 iterations. Second loop's iterator variable [I]starts[/I] and the starting range variable that you inputted eariler, and goes to the end of the range of CPUs. … | |
Re: Please use code tags. See my signature for more information. You're taking the long-way approach to this problem when you come to the point of getting the user to pay. First of all, you'll need to validate the menu choice. You don't want the user entering some random number that … | |
Re: I think wombats are one of the cutest animals I've ever seen (well, I've only seen pictures)! [IMG]http://upload.wikimedia.org/wikipedia/en/thumb/9/96/Wombat-Narawntapu.jpg/180px-Wombat-Narawntapu.jpg[/IMG] And if it weren't for DMR, I would have never found out about them. | |
Re: [quote=manutd;286956]Sharky, do you just go around supporting all new forums in [B]bold[/B]?[/quote] Of course not! [URL="http://www.daniweb.com/techtalkforums/post286657.html#post286657"]This post here[/URL] doesn't have 1 bold tag. :D But I do agree with manutd; there are times where bold isn't necessary (it gets annoying when excessive bold is used, I've noticed it in some … | |
![]() | Re: [quote]Well when you were in school how did you study.[/quote] Read the book and lecture notes carefully. Put them away. Repeat every night until the chapter(s) is/are memorized. :D |
Re: Me, I get about 8-9 hours of sleep. On weekends when I'm really lazy, sometimes I sleep for nearly 12 hours. :cheesy: ZZzzzzz....... [quote=~s.o.s~;283857]So in the end my signature stands correct.[/quote] On what basis do you make this judgement? If you're an atheist, do you [I]really[/I] believe that you "evolved … | |
Re: Hello, "Undefined symbol" errors result from the linker unable to find the actual code for a function, even if it's been defined. This means that there is a problem with your preprocessor commands. Try adding a [inlinecode]#include "queue.h"[/inlinecode] to queue.cpp. In queue.h, you should have this added to avoid multiple … | |
Re: Use code tags. And post in the [URL="http://www.daniweb.com/techtalkforums/forum9.html"]correct forum[/URL]. | |
Re: A number of errors in the above code: [code=cplusplus] float mean = 0; float median = 0; float mode= 0; int numbers[ MAX_SIZE ], size; getNumbers( numbers, size,MAX_SIZE); createFrequency(size,frequency[],NUM_RANGE); // you never declared "frequency", so why are you trying to use it? createHistogram(frequency, NUM_RANGE); mean=calcMean(ofstream& inFile, numbers, size ); // … | |
Re: [quote=soulsmith;286967]Just bought an ipod. It won't connect with my G4 which is runnining 10.2.8. Says I need I Tunes 7, which I've tried to upgrade to. But Apple tell me i need to update my system software to 10.4 (or thereabouts) to get I tunes 7[/quote] I didn't know that. … | |
Re: [quote] Huh? What's a pointer?[/quote] Do you think this will help? [URL]http://www.cprogramming.com/tutorial/lesson6.html[/URL] I'm sorry if everyone is starting to be sarcastic with these question marks we don't mean anything, hopefully it doesn't offend you? I mean... :cheesy: | |
Re: [quote=purple rainx;286349]"kindness and compassion will get you stepped on?" Well, in your case, I can see it happening because you don't illustrate either.[/quote] First of all, don't judge people until you know enough about them to do so. Best of all, don't judge people at all. You simply don't know … | |
Re: I prefer large numbers of wombats. (Well, since there's no large numbers, I've voted for "0" to be neutral.) | |
Re: You mean like this? [code] 4 _ 6 [/code] I think that's the best you can do. Print the numerator, newline, _ (underscore), newline and the denominator. Looking good. :) | |
Re: [quote=purple rainx;283134]What city do you live in? Are you from there originally?[/quote] As you can tell, I keep it very well hidden. I live somewhere along the west coast of Canada... although I have a lot of German background. | |
Re: I'm using the free [url]http://dhost.info[/url] to host my website, it offers PHP/MySQL support, 100 MB of webspace, and best of all, no ads. Sorry no CP, although it does have FTP access. | |
Re: [quote=iubike]The first, I need all input data to display as red[/quote] There is no standard for changing colors. I'm assuming you're on Windows. I don't see you using windows.h... which is needed for Windows console color. Here's a little example: [URL]http://www.daniweb.com/code/snippet83.html[/URL] If you're using a *nix based system, you'll need … | |
Re: Hello, First of all to solve the problem, you need to analyze all the things you must do. You will need to:[LIST=1] [*]Create an array with account numbers in it [*]Get user's input [*]Validate the input [*]Print out the result[/LIST]Except for the first step, all the others should be in … | |
Re: Several possibilities.[LIST] [*]Do you even have a DVD burner? CD burners cannot burn DVDs, although it's possible for a DVD burner to burn CDs. [*]If you're trying to make an audio CD, it's not going to work very well if you're trying to burn a DVD, as I don't think … | |
Re: [quote=Bardongg00;285974]I don't understand how to use structures and arrays together.[/quote] You've got a problem when you're passing the array to GetInfo(). You're passing the object, so when you modify the variable, you're actually modifying variables inside GetInfo's scope, and when the function returns, the variable will go out of scope. … | |
Re: Try researching a little bit. Obviously we are not going to give you the answers, although if you notice, Narue does give some hints ;). Here's some information for you: [url]http://www.parashift.com/c++-faq-lite/ctors.html[/url] [url]http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.xlcpp8a.doc/language/ref/cplr376.htm[/url] You won't understand all of this, but gather what you can to help you understand these questions. | |
Re: Assuming you've correctly installed it with "make install", the only thing you should have to do now is run [inlinecode]xvidcap[/inlinecode] from the command line. Of course, you might want to create a shortcut on your desktop, as typing that each time you want to start it becomes a little bit … | |
Re: [quote=willy2511;285506]Hi, I've got a "Segmentation Fault" error in C++ when trying to allocate a vector with a dimension of 2 million.[/quote] Mmm... not enough memory? If that's not it, try posting some code (or at least the part where the error occurs). Thanks. | |
Re: Farewell... Thanks for posting at DaniWeb; your posts have always been extremely helpful. | |
Re: I think you need to use [URL="http://research.microsoft.com/invisible/IBaseRtl.htm#_tcscpy"]_tcscpy()[/URL] to do the conversion. Hope this helps | |
Re: [B]Google[/B] is your friend. [url]http://www.google.ca/search?q=C%2B%2B+ip+address[/url] | |
Re: The iTunes store is free to create an account, although you need a credit card to complete the registration process. You can also use .Mac or AOL/AIM accounts, although if you've never used them with iTunes, you'll still have to enter in your credit card number. Hope this helps | |
Re: I think those errors are related to the content in your xorg.conf file. What it looks like is that Gambas is trying to access a device referenced/listed in the xorg.conf file, and it's non-existent. And as long as everything worked, no I don't think you need to worry about it … | |
Re: Look for pointers and dynamic memory allocation. Oh and if you want us to help you find the error, maybe you should post some code (or at least up to the point where it freezes). Thanks. | |
Re: Just post your code here and we might be able to help you (use code tags, indentation, and don't use [INLINECODE]void main[/INLINECODE]). The mods here don't like it when you post your email address and get it off-site, so don't be suprised if they snip your Yahoo address... Thanks. | |
Re: About the only music I listen to is Pop and Rock. Favorite artists include U2, Switchfoot, Avril Lavigne, Kelly Clarkson. I also have a huge collection of classic rock which I used to listen to lots, but not so much any more. | |
Re: Thanks for coding this feature, although if I remember correctly, this was [URL="http://www.daniweb.com/techtalkforums/thread57370-1.html#post264434"]suggested a few months ago[/URL]. | |
Re: [quote=jbennet;283463]Since i did a kernel upgrade from 2.4 to 2.6 nothing works (in fact like 90% of all 2.6 distros fail on it)[/quote] Are you sure you're configuring the kernel correctly before you compile it? One of the biggest problems I have when compiling a new Linux kernel is that … | |
Re: I think it's perfectly fine. I also can't understand why people panic when they see that it's a text-only installer. "Oh no, I'm not in a GUI anymore!" It's so clearly laid out that people should have no problem figuring it out. And it probably does them some good to … | |
Re: What are you trying to use to write your game? (You do need to know a programming language.) For 2D graphics, you'll usually want to use either DirectX or OpenGL. Check up at the top of this forum for a sticky listing some starting places. Then, you need careful planning … | |
Re: [quote] letters = 'A','T','C','G'; [/quote] That doesn't make any sense. Perhaps you wanted an array, but forgot the []? | |
Re: My guess would be that it's a router hidden somewhere that the original owners forgot somewhere. Have you tried entering its IP address into your web browser? And what range is the IP address that you get in? That might yield some hints. If it's broadband, the connection probably won't … | |
Re: Oooh... many different ways of programming in Linux. There's the bare-bones programming in Vi or some other text editor, and then compiling with gcc/g++. This is best for small projects, because anything larger, and the syntax becomes too complex. There are also LOTS of IDEs out there for Linux. You've … | |
Re: Use loops. Then use the iterator variable as variable that references the array. Eg [code=c] for (int i=0; i<50; i++) { fscanf(file, "%i", salary[i]); // ... } [/code] Of course, I'm assuming a lot of things here. If you're using C++ instead of C, you would be using [inlinecode]ifstream[/inlinecode] and … | |
Re: Hello, I suspect that the startup disk on your drive is set incorrectly. To manually select which operating system you would like to boot when your computer is starting up, try holding down the Option key. You should be given a choice between Windows and Mac OS X; choose the … | |
Re: Please use code tags. Find more information about them [here](http://www.daniweb.com/techtalkforums/announcement8-3.html): Your sorting algorithm is fundamently flawed: for ( int next = 0; next < ArraySize; next++ ) { if ( strncmp(Array[next],Array[next-1],3) == -1) I don't quite understand what you're doing here. In the first iteration of the loop, `next` will … | |
Re: You're not doing it correctly -- you might want to try something like: [code=cplusplus] A a; int *pointer; pointer=a.x; [/code] I haven't actually tried this code out, so it may not compile. | |
Re: Haven't you ever heard of Gabbly? Simply place gabbly.com in front of any URL, and a window floats over the website that you can use to chat to any people currently viewing the website. For example... [URL="http://gabbly.com/daniweb.com"] gabbly.com/daniweb.com[/URL] IRC is SO old school... | |
Re: You could try using a different video codec (format). If you have QuickTime Pro, after you open the movie, you can select File->Export... and then choose one of the several formats listed. Probably some of the best ones to use are WMV, DV if the file is small, or perhaps … |
The End.