2,045 Posted Topics
Re: See this: [url]http://www.bobpowell.net/faqmain.htm[/url] Caveat is the examples are in C# and VB.NET, but the usual dot used for namespace in C# changes to C++ :: ,and dot used for member method in C# changes to -> (if the variable in question is a pointer) will apply. Look on MSDN to … | |
Re: [quote] I would really like us to have a whole new range of digits from next year[/quote] That doesn't buy you anything. Well, it helps with ad revenue, I suppose, but what kind of site would it be if that increase in numbers consisted of 80,000 homework assignments? | |
Re: I have been in graduate school in the mighty neurosciences in the past, and I'll tell you that it's nice to be able to program, but Matlab should probably be your main focus. There are options to compile it (into mex files) and to generate C code from it. There … | |
Re: Grab the string textbox.Text into a string mystring and march along it with the index (so mystring[0] is the first character, mystring[1] being the 2nd, etc.) | |
Re: That's really neat. My first thought is talk about a way to blow through your disk space! [quote]at least for average amounts of infinity [/quote] Sure... :) | |
Re: I remember something about the Objective-C++ compiler not including glibc++ by default as g++ does. Try including the argument [icode] -lstdC++ [/icode] (along with all of the appropriate switches for the other libraries). @Fbody [icode]#import[/icode] does work on Objective-C, so I'm not sure what the nuances are for Objective-C++. | |
Re: How about "Oh, what a Daniweb we weave when first we practice to inform" (*as he ducks the thrown tomatoes). or "Do IT on our site" | |
Re: [icode]#include <iostream> [/icode] to get the standard header. Then you need either [icode] using std::cout; [/icode] at the top or qualify it in the body of your code with std::cout <<"Yada"; You can also go the using namespace std; route but that brings its own problems. EDIT: Dang... JH, does … | |
Re: Do you have [URL="http://social.msdn.microsoft.com/Forums/en/vcgeneral/thread/fc2e32b5-e55f-416f-8c74-c018d0f793ab"]Service Pack 1 [/URL] installed? Otherwise, try reinstalling VS. | |
Re: Get rid of lines 10-13, you can't have two mains. Change line 15 to [icode]int main()[/icode] as per the standard. | |
Re: If you are not at that level yet, start [i]simple[/i]. -Can you have the user enter a line of text? If not, find out how via Google. -If the user makes a mistake, can you have them show where in the line the change needs to happen? Example, change all … | |
Re: It looks like you have somewhere around Qt 4.4. There is now Qt 4.7 which comes with mingw 4.5, which is much more up to date. It could be a corrupt installation of mingw, so reinstalling your version might help, but try the latest version. | |
![]() | Re: If you look below the signature editing box in the control panel, there's a box [code] Signature Permissions Allow Basic BB Code Yes Allow Color BB Code No Allow Size BB Code No <SNIP> Allow Smilies No Can Upload Images for Signature No <----****---- Can Upload Animated GIF for Signature … |
Over the past day and a half or so, I've had multiple occasions in which the page "stalls" before loading all the way. The text is all there, but the "bullseye"/solid purple icons next to the posts, and all of the FB/Twitter regalia take a few seconds to come up. … | |
Re: What does the code look like in MainScreen_DragDrop, MainScreen_DragEnter, and MainScreen_DragOver? | |
| |
Re: Just omit the break in the middle. Switch statements "fall through" until they reach a [icode] break;[/icode] [code] case 'a': case 'A': //do stuff here break; [/code] | |
Re: Please don't bump your threads so soon, have a bit of patience. I was actually just about to give you: [icode] e = d.Base::operator*(1.0); [/icode] I'm fairly sure that in cases like this you lose the more aesthetic syntax, but I believe that this works. | |
Re: Does your program run in a window, or is it a command line program? | |
Re: What are the error messages? (it looks like you're missing the [icode]std::[/icode] qualification on [icode]cout, endl [/icode] etc. The best way to deal with that in your case is to put [code] using std::cout; using std::endl; using std::cin; [/code] at the top and leaving the rest of the code alone. … | |
Re: Ivor Horton's is pretty good. It covers a lot of other material, but he teaches some C++/CLI (the "dialect" of C++ required to do programming on the CLR) [url]http://www.amazon.com/Ivor-Hortons-Beginning-Visual-Programmer/dp/0470500883[/url] As an added bonus, it has some information about some of the feature in the newly approved standard (the book came … | |
Re: What are your requirements, and how would you define "best"? Take a look through [url]http://en.wikipedia.org/wiki/List_of_widget_toolkits#Based_on_C_or_C.2B.2B_.28including_bindings_to_other_languages.29[/url] and check out, e.g., Qt and wxWidgets. Both are very popular. There's always the traditional MFC route, or using the raw Win32 API. | |
Re: If you think about the abstraction of the data structure, it doesn't make sense to. It is a last in/first out (LIFO) system. If you need a queue or even a deque, then you should use those data structures instead. | |
Re: Chars are really integers (see any ASCII table). [code] char grade = 'A'; grade++; std::cout<<grade; //'B' [/code] but this requires you to go up when you are going down in grades, and the skip between D and F would require some extra logic. What would be even easier, though, is … | |
Re: That is a lot of code to go through. You should whittle it down to compilable snippets of the source files in question. ![]() | |
Re: [quote]relative information on recent developed softwares[/quote] Code that my aunts and uncles developed? All kidding aside, you are going to have to be a lot more specific if anyone is going to be able to answer that question. Information relative to what? What types of software? | |
Re: Select the tab control, go to the properties window (usually on the right side, but you may need to go to View/Other Windows/Properties Window), go to the [icode]Multiline[/icode] property and change it to [icode]True[/icode]. | |
Re: Do you have a team? People experienced doing that sort of program? A good database of virus binaries to draw from? A marketing unit to lure customers from the big named products? | |
Re: [icode]getdim()[/icode] is declared as public in the base class, and the inheritance is public, so the derived classes will have access to this method (as public). This method retrieves the values of the [icode]dim1[/icode] and [icode]dim2[/icode] variables by reference. In [iCODE]triangle[/iCODE] and [iCODE]rectangle[/iCODE], the values of [iCODE]d1[/iCODE] and [iCODE]d2[/iCODE] are … | |
Re: What type of project did you select? Make a new project with [icode]Win32 Console [/icode] as the type. Don't select empty project, and you can uncheck Precompiled Headers. | |
Re: Read [icode]training.txt[/icode] into another vector of strings, call it [icode]trainingVec[/icode] or something. Return just [icode]personNames[nearest-1][/icode] (so you have it in a [icode]std::string[/icode] representation. Step through trainingVec, using the [icode].find()[/icode] method of each of the strings to see if it contains [icode]personNames[nearest-1][/icode] If it does, use [icode].find()[/icode] on that same element … | |
Re: [quote] I don't know about database securities and how to implement them. [/quote] Just to pick on your one example, it's very good to know the theory of these types of things and be aware of them. However, unless this is your passion, leave the implementation up to people that … | |
Re: Which is faster to get through midtown traffic, a car or a bicycle? If cars are already bumper to bumper, you definitely want the bike. What qualifications are you using to measure "better"? (Ed: not implying anything about C or C++ here as being analogous to either one, just trying … | |
Re: Paste in one of your case statements and a screenshot of your control (if available), and someone should be able to run you through it. You might be able to shortcut some of your logic based on the characteristics of the controls. | |
Re: I'm not sure whatever global function [icode] Show()[/icode] is will do the job. Instantiate a form2 object and call it's method: [code] form2^ fm2 = gcnew fm2(); fm2->Show(); [/code] should work. If you want fm2 to persist outside of the current method, declare it as a private member of [icode] … | |
Re: How did you specify the header's and library's directories in the Visual Studio settings? After you built the source, you should have had the static libraries (.lib) files and the DLLs (which I think come prebuilt with the installer if you go that route). You don't have to go into … | |
Re: [QUOTE=Nick Evan] He had too few Geek genes[/QUOTE] Perhaps he should have tried khakis. | |
Re: [QUOTE=AndreRet]I also get problems in receiving my mails after a member has posted a reply. I need to constantly refresh the pages where I had replies to see if there was any other replies added. This happened yesterday and the day before for a while, then all of a sudden … | |
Re: Glad to see you're back! I just figured this out, as I happened to run into one of your old posts and saw that your avatar changed. Good times. | |
Re: [QUOTE=WaltP]Time to ban [B]ardav[/B] for overuse of sarcasm.[/QUOTE] Boooy, THAT'll be the day! Uh-oh! Me? (*ducks and covers) | |
Re: [quote]Post your code between the code tags like so: /* code tags intro */[/quote] I think your idea is great, but you could plaster that statement diagonally across the page in glowing "emergency orange" arial bold (I know, that's not really a web font), and people would still ignore it. … ![]() | |
Re: From the [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]member rules[/URL] [quote] Keep it Clear -Do post in full-sentence English [/quote] Since you are on the thread already you can remind the user that this is the case. Otherwise the punishment is being forced to interact with the site using a 1980 Motorola cell phone with a … | |
Re: The best thing to do is go through and check all of your braces again, even if you don't think that's what it is. Go to the Tools menu/Options/Text Editor and turn on "Automatic Delimiter Highlighting". After that go to the end of your file and clear out all the … | |
Re: [quote]to save the images in more then one Picturebox at a time? [/quote] I'm assuming you're doing this as a winforms project? (it seems like that, but there's some ambiguity). To save more than one picturebox into a bitmap at a time, you're going to have to make a [icode] … | |
Re: 30 days hath September, April, June, and November ;) What code have you tried so far? | |
Re: Nobody is going to do it for you. What tonyjv says is true, you must show some effort before anyone is going to help you. As it stands, you have dumped off a handful of programs with no other explanation. The only way we can interpret that is "do this … |
The End.