5,237 Posted Topics
Re: The ncurses API supports random positioning of text on screen. The Win32 Console API supports the same thing. State your OS and compiler for a more specific answer. | |
Re: > I need some help with the program below. Such as? Does it compile? If not, what are the error messages. Does it run? If not, what input did you provide, and what incorrect output did you see. > The program is supposed to use functions to perform some simple … | |
Re: [url]http://www.ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html[/url] | |
Re: > sumX = X + X[i]; X is an array, X[i] is an array member - what are you trying to do here? | |
Re: A lot of the initial (and small-scale) stuff happens on paper and white boards. | |
Re: You seem to have missed this key thread on your way in. [url]http://www.daniweb.com/forums/announcement125-2.html[/url] | |
Re: [url]http://www.catb.org/~esr/faqs/smart-questions.html#urgent[/url] Sorry, but we're only able to help people who show up with code and a reasonable amount of time to be able to do something about it. Showing up with nothing to show except some tale of how much life sucks and how useless you are are programming, dumping … | |
Re: > p1hp -= attack; This isn't the value you calculated. | |
Re: > (841.0 KB, 4 views) Consider a better approach than just zipping everything and dumping it for someone else to fix. | |
Re: [URL="http://www.google.com"]Yes[/URL] Seriously, I mean, what is the point. While you're at it, try defining "good". | |
Re: In the project settings in the IDE, you need to list ALL the source files (all 5 of them). | |
Re: Read this before your next project. [url]http://cboard.cprogramming.com/showthread.php?t=88495[/url] | |
Re: Perhaps you could explain the thread title while you're at it. | |
Re: The 'ps' command (or one of it's options at least) will tell you how much memory is allocated to the process in total, but it won't tell you anything about the "3D array-ness" of some subset of that allocation. | |
Re: Automatic code generation. | |
Re: [url]http://www.daniweb.com/forums/thread94461.html[/url] | |
Re: [url]http://en.wikipedia.org/wiki/Oed[/url] But there are plenty of common word lists on the web, for the want of a bit of [URL="http://clusty.com/search?query=word+lists&sourceid=Mozilla-search"]searching[/URL]. | |
Re: > What did I do wrong?? Not look at the post dates to realise that the person you're replying to hasn't been to this board in the last 2 years. Post a new question, don't just dig up threads from the graveyard. | |
Re: Perhaps because only 50 times round the loop is nothing to a modern 64-bit machine. Add some calls to sleep, or some other substantial amount of work, and then it'll tick nicely. | |
Re: Call srand() just ONCE at the start of the program, not every time you want a rand(). At best, it achieves nothing. At worst, it prompts "Why does rand() always return the same value" questions on the message boards. | |
Re: main always returns a value whether you like it or not, no matter whether you declare void main, or whether your compiler doesn't complain about it. [url]http://c-faq.com/ansi/maindecl.html[/url] > so I wanted to know the reason behind this. You're comparing a float to a double. In the context of the if … | |
Re: Why are you still using an antiquated compiler with an equally ancient view of what a display is? | |
Re: You want something like [ICODE]char marker_code[NUM_CODES_IN_FILE][LENGTH_OF_CODE+1];[/ICODE] You're only allocating space to store a single code at the moment, and your loops are only reading single characters (and overflowing the bounds) as a result. Edit: Beaten | |
Re: Read up on templates. | |
Re: Some functions which modify parameters are NOT getting the reference parameters they should be. | |
Re: > 74:error: Stropy was not declared in the scope > 77:error: Stromp was not declared in the scope You wrote these out didn't you, rather than copy and paste them? If you transcribe this stuff by hand, you're just going to add to the errors which are already there, and … | |
Re: [url]http://beej.us/guide/bgnet/[/url] | |
Re: Delete it and start again, after reading this. [url]http://cboard.cprogramming.com/showthread.php?t=88495[/url] Write code a few lines at a time, then press compile to make sure you're still on track. Writing several hundred lines and dumping the whole sorry mess on a message board for someone else to fix isn't going to work. … | |
Re: Chances are, that's a local variable, and being local, the space will be reclaimed when the function returns. If you really need to store the string result in memory for an extended period of time, then you can do what you're doing at the moment, then use malloc and strcpy … | |
Re: Perhaps the first number stored in the data file could be the number of students? Eg. 2 Fred Flintstone Barney Rubble Or use a vector, which you can add to arbitrarily std::vector< std::string > studentID; fin >> aStudent; studentID.push_back( aStudent ); | |
Re: You need to assign the result on line 20. | |
Re: Then it's just a stream of bytes (eg. unsigned chars). So you read it using whatever OS/Compiler specific functions you have for reading the serial port, and store those bytes in some kind of array (or some C++ equivalent if that's where you're going). After that, you pretty much have … | |
Re: > or as soon as it's clear they won't get a "satisfactory" answer. s/satisfactory/spoon-fed/ According to 1 reference, Members: [COLOR="Red"]317,794[/COLOR] According to another, Showing results 61001 to 61100 of [COLOR="Red"]240345 [/COLOR] Whichever upper number you choose to believe, only 61000 (+ change) have actually posted [B]AT ALL[/B]. All the rest … | |
Re: Perhaps post error messages? Perhaps [ICODE]#include <string>[/ICODE] Perhaps say [ICODE]std::string cdtype;[/ICODE] One thing you must NOT do however is be tempted to putting [ICODE]using namespace std;[/ICODE] inside your header files, because you're too lazy to type [ICODE]std::[/ICODE] a few times. Anyone including your file would then get the whole std … | |
Re: > didn't know how to make the code more readable and things... It's only mentioned at least 5 times in the things you should have read before posting. | |
Re: You can certainly do it with this [url]http://en.wikipedia.org/wiki/Visual_Basic_for_Applications[/url] Probably with Perl, using [url]http://search.cpan.org/~johanl/Win32-Word-Writer-0.02/lib/Win32/Word/Writer.pm[/url] Maybe with Python, using [url]http://sourceforge.net/projects/pywin32/[/url] > Ok what I'm trying to do is that I have over 400+ .doc And I'm guessing that since you mention "revision" that it's not going to be a one-off thing either. … | |
Re: And I thought this was going to be about solar ellipses and lunar ellipses ;) Oh well... | |
Re: ifstream fin fin.getline cin and cout just happen to be streams already opened for you. Otherwise, everything else is identical. | |
Re: And if they don't take them off, put them in the microwave for a pretty, and brief, lightshow. | |
Re: nobody knows nothing, somebody knows something, everybody knows [URL="http://clusty.com/search?v%3afile=viv_958%4026%3atwXHgZ&v%3aframe=list&v%3astate=root%7cN874&id=N874&action=list&sw=%7cWide%20Area%20Network%7c&sec=1209017612&"]everything[/URL] | |
Re: [url]http://www.catb.org/~esr/faqs/smart-questions.html#urgent[/url] Like you're in too big a hurry to even bother to use code tags. | |
Re: Sounds like something else is trashing memory, clobbering your stream in the process, so that when you next refer to you stream you get the problem you see. | |
Re: Does this crash? [code] int main ( ) { ACE_OS::fopen("demo.txt", ACE_TEXT("a")); } [/code] If not, then there's a bug somewhere else in your program and what you're seeing is fallout from the result of your real bug. | |
Re: Like the thread two posts above yours, which is not surprisingly, also called "c++ books" [url]http://www.daniweb.com/forums/thread70096.html[/url] | |
Re: [url]http://en.wikipedia.org/wiki/Swig[/url] |
The End.