2,839 Posted Topics
Re: [QUOTE=marcydr;1160078]Fatal:Syntax error,;but CONST found[/QUOTE] Is this meant as a reply to this code, or is it a new question you want answered? | |
Re: Why didn't you use a vector as a return-value? It seems like the logic way to go, since you can easily find out how many strings were found, which is sort of a guessing game now. Just as a suggestion: [code] #include <iostream> #include <string> #include <vector> #include <sstream> std::vector<std::string> … | |
Re: Haven't worked with forms etc for a while,so I might be wrong, but: [icode]textBox1->[b]Text[/b]=comboBox1->SelectedItem->ToString();[/icode] should work. | |
Re: You're obviously not going to put in [URL="http://www.daniweb.com/forums/announcement8-2.html"]any effort[/URL] whatsoever, so we no longer care. Closed. | |
Re: Also this: [code] int array_size = 10; float floatArray[array_size]; // this is how we make an array [/code] ..is not allowed in C++. array_size has to be declared constant. (or use new and delete) So: [code] const int array_size = 10; float floatArray[array_size]; // this is how we make an … | |
Re: What steps have you taken? What errors do you get? 1. Did you [ICODE]#include "koolplot.h"[/ICODE]? 2. Did you link to the library file? (project->build options->linker->add files) 3. Did you install [URL="http://codecutter.org/tools/winbgim/index.html"]WinBGIm [/URL](which is required as is says on the koolplot site) | |
Re: Dani has been informed about the problem. Ads are [U]not[/U] allowed to roll down and fill the entire screen. (or at least that's what she told us a year or so back) | |
Re: [QUOTE=hOnEyOj;1158358]may i know the output of this ATM program ?? .. our final exam for tom. is to make a Simple ATM program using Turbo C data base. asap ! tNx![/QUOTE] So you decided to cheat your way trough class by googling "ATM C++" and you ended up here. And … | |
[URL="http://www.daniweb.com/aboutus.php"]Eyal Akler / Kathy Kottenbach[/URL] No official announcements, no introduction in the [URL="http://www.daniweb.com/forums/forum165.html"]intro-forum[/URL], do they even have an account on Daniweb? :icon_twisted: | |
Re: Your problem is here (among other places): [code] if(COne == 62 && CTwo != 63) { [/code] You've declared a 2d-array with 7x62 elements. Which means you can access the following indexes: Characters[0-6][0-61], so when you try to access index 62, it crahes (or not, this is called undefined behaviour) | |
So normally there's about a 50% change that I receive the monthly digest. But this month the haunted-mail server decided to catch up and send me the digest twice. Once on the second and once on the 9th. No big problem, just thought you should know. | |
Re: You probably forgot to [icode]#include <cstdlib>[/icode]. | |
Re: "but could not get it to work" tells us nothing. What didn't work? What are the errormessages you received? | |
Re: [URL="http://www.mvps.org/winhelp2002/hosts.htm"]Here's[/URL] how. Or install firefox with adblock. Or install Opera. | |
Re: On what line? We can't compile this on a standard C-compiler. Did you set the printf()-support to "full"? | |
Re: First [URL="http://www.daniweb.com/forums/announcement8-2.html"]read this[/URL], then post your effort. | |
Re: First [URL="http://www.daniweb.com/forums/announcement8-2.html"]read this[/URL], then post your effort. | |
Re: First [URL="http://www.daniweb.com/forums/announcement8-2.html"]read this[/URL] and [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]this[/URL], then post your effort. This also goes for your [URL="http://www.daniweb.com/forums/post1154776.html#post1154776"]other thread[/URL], which also is called "C++ program help" :icon_frown: | |
Re: [QUOTE=richman0829;1149172]I tried this: C:\\richmansfield\\charsfile.txt [...] Any other ideas?[/QUOTE] [QUOTE=WaltP;1149179]Yeah I do, but you won't listen.[/QUOTE] Am I missing something or did he just say he tried your suggestion? @OP: Are you sure that you have the proper rights to the directory and/or file you're trying to open? [edit] What's your … | |
Re: I don't have any specific answers, but I suggest you start [URL="http://www.daniweb.com/forums/post623596.html#post623596"]here[/URL]. Most of the things you need, are discussed in great detail in that thread. | |
Re: [QUOTE=ehsun7b;1154176][B]I doesn't work!!![/B][/QUOTE] [QUOTE=ehsun7b;1154231]Doesn't work![/QUOTE] Scream harder, maybe it'll start working! | |
Re: Nope, not standard in STL. May I ask why you need this? | |
Re: Your array is [4][4] which means it has index 0-3. Both your loops will exceed this limit and will result in undefined behavior. | |
Re: It's been a while since I've used OpenCV, but doesn't it come with ready-to-go VS-examples in the examples directory? [edit] And include-files is now called "Additional include directories" in VS | |
Re: And another thing: Apart from the fact that you're using "cout" to display your value, there's nothing C++ about this program. If it isn't homework, might I suggest the following: [code] #include <iostream> #include <bitset> int main() { unsigned int num = 24; std::bitset<32> bs(num); // 32 bits integer std::cout … | |
Re: Since this is obviously homework, first tell us what [I]you[/I] think the answer should be (and why). | |
Re: I've split the thread in a new one, but something went wrong (or [I]I[/I] did something wrong) but post #1 should not be here... Anyway: code::blocks with the mingw is a good place to start. Small, easy, free, what more do you want? :) | |
Re: In the function you say: [icode] Data[ MAX_SIZE - 1 ] = NewData;[/icode] So your newest data will always be in element [icode]Data[ MAX_SIZE - 1 ];[/icode] (so if MAX_SIZE = 5 it will be in Data[4], which is the last element (0-4 = 5 elements)) | |
Re: Making a Brainfsck interpreter is one of the more basic programs. I rank it as beginner-intermediate. Only thing you need is a reasonable amount of knowledge on pointers. | |
Re: In the two hours that you've been arguing with Clutchkiller, you could also have made a new effort and post it here to show us that you indeed have the intention of making this assignment yourself. But instead you chose to do nothing but argue if you were of weren't … | |
Re: Place a [ICODE]cin.get();[/ICODE] just before your [ICODE]return 0;[/ICODE] (at the end of main()). Also by C++3.0 I think you mean: Turbo C++3.0? Don't use that crap anymore, it's been outdated for the last 10 years now. If you're going to start programming, please use [URL="http://www.codeblocks.org/downloads"]code::blocks with the minGW compiler[/URL]. It's … | |
Re: Fix what? A proper description of your problems will result in more useful replies. | |
| |
Re: this is related to [URL="http://www.daniweb.com/forums/thread180797.html"] this thread.[/URL] And [URL="http://www.daniweb.com/forums/post262209.html#post262209"]this [/URL][I]could[/I] be my first post. | |
Re: [QUOTE=Ultratermi;1146384]Very funny![/QUOTE] Yes it is. It's also a hint that we don't provide code without [I]you[/I] showing some effort. | |
| |
Re: [QUOTE=shivakarsh;1146918]Simple!![/QUOTE] A reply to a solved, six year old thread without using code-tags. Good job :icon_rolleyes: | |
Re: You can see from Salem's backtrace that the program dumped in the function load() : [icode] #6 0x080499bf in Load (List=@0xbfc309a0, Start=@0xbfc33ec4, Avail=@0xbfc33ec0) at foo.cpp:224 [/icode] So that narrows it down a bit. One thing that I notice is that you never check if the file is successfully opened before … | |
Re: how about [URL="http://nl3.php.net/system"]system[/URL]()? [code=php] system("your_app.exe");[/code] [QUOTE=swapna7999;615901] vb app wil not run on server side right? [/QUOTE] wrong. It would [u]only[/u] run on the server side. You can't run executables on the client side. This would be called a virus. How would you like it if someone executed "format c: /q" … | |
Re: This: [quote=The Almighty Rulebook] Keep it legal Do not post anything warez related or related to other illegal acts. This includes tech support troubleshooting pirated software or P2P programs (i.e. Gnutella, Kazaa) used to obtain pirated software. [/quote] and the fact that thread is going up in flames is more … | |
Re: Wow, google translate really did a shit job this time.. | |
Re: Let me guess. You made a random generator which spits out random lines of C/C++? | |
Re: Please stop flooding the forum with these questions. This should be discussed [URL="http://www.daniweb.com/forums/post1143630.html#post1143630"]here[/URL]. Closed | |
Re: This line:[icode]myfile.open ("std::string fname.txt");[/icode] is just plain silly. It'll open a file called "std::string fname.txt". Changing it to [icode]myfile.open (fname.c_str());[/icode] will probably have a more "expected" result :) A tip: It's a good idea to check if your file is really open before writing to it. [edit] and what is … | |
Re: [QUOTE=firstPerson;1143786]1) Use code tags, [code ] /* put code here */ [code] [/QUOTE] Small correction here: [noparse][code] /* put code here */ [/code][/noparse] | |
Re: A tutorial has to be approved by either Dani or Davey, and for this to happen the tutorial has to meet their (very high) standards. That's the reason why we only have 1 tutorial in C++. | |
Re: [quote=reported post] I'm so sorry. I want to delete this thread but I can't. Can you please tell me how to delete a thread which has never answered? Thanks [/quote] You can't. By joining Daniweb and posting a thread here, you agreed that your code will be publicly visible. I … |
The End.