5,237 Posted Topics

Member Avatar for web_master

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.

Member Avatar for jephthah
0
3K
Member Avatar for Sleepwalker817

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

Member Avatar for Salem
0
355
Member Avatar for mrynit
Member Avatar for Salem
0
104
Member Avatar for programmer01

> sumX = X + X[i]; X is an array, X[i] is an array member - what are you trying to do here?

Member Avatar for Lerner
0
212
Member Avatar for scru

A lot of the initial (and small-scale) stuff happens on paper and white boards.

Member Avatar for Lardmeister
0
104
Member Avatar for jaiprakashraju

You seem to have missed this key thread on your way in. [url]http://www.daniweb.com/forums/announcement125-2.html[/url]

Member Avatar for Salem
0
32
Member Avatar for anifreak

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

Member Avatar for William Hemsworth
0
131
Member Avatar for Black Magic
Member Avatar for zawpai

> (841.0 KB, 4 views) Consider a better approach than just zipping everything and dumping it for someone else to fix.

Member Avatar for zawpai
0
112
Member Avatar for vesper967

[URL="http://www.google.com"]Yes[/URL] Seriously, I mean, what is the point. While you're at it, try defining "good".

Member Avatar for Salem
0
75
Member Avatar for Nemoticchigga
Member Avatar for joshmo

In the project settings in the IDE, you need to list ALL the source files (all 5 of them).

Member Avatar for joshmo
0
147
Member Avatar for dinozulf
Re: help

Read this before your next project. [url]http://cboard.cprogramming.com/showthread.php?t=88495[/url]

Member Avatar for Salem
0
170
Member Avatar for computers08
Member Avatar for Salem
0
95
Member Avatar for kalpana0611

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.

Member Avatar for Salem
0
59
Member Avatar for crwtom
Member Avatar for GrimJack
Member Avatar for Salem
0
252
Member Avatar for marti3a3
Member Avatar for tb808kid

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

Member Avatar for tb808kid
0
181
Member Avatar for iamnoangel26

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

Member Avatar for gazoo
0
215
Member Avatar for tymk

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.

Member Avatar for Salem
0
5K
Member Avatar for Mark515
Member Avatar for Black Magic

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.

Member Avatar for Black Magic
0
157
Member Avatar for kbehemoth

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 …

Member Avatar for Salem
0
154
Member Avatar for arunkp

Why are you still using an antiquated compiler with an equally ancient view of what a display is?

Member Avatar for Salem
0
79
Member Avatar for Brent.tc
Member Avatar for Princequarles

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

Member Avatar for Salem
0
107
Member Avatar for y25zhao
Member Avatar for NinjaLink

Some functions which modify parameters are NOT getting the reference parameters they should be.

Member Avatar for NinjaLink
0
86
Member Avatar for dpfaff

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

Member Avatar for dpfaff
0
173
Member Avatar for Black Magic
Member Avatar for spuddy1515

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

Member Avatar for spuddy1515
0
526
Member Avatar for sreehari.rk

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 …

Member Avatar for Duoas
0
1K
Member Avatar for Wza

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

Member Avatar for mitrmkar
0
87
Member Avatar for Black Magic
Member Avatar for MAS12

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 …

Member Avatar for Salem
0
64
Member Avatar for techbound

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

Member Avatar for Salem
0
195
Member Avatar for henpecked1

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 …

Member Avatar for henpecked1
0
100
Member Avatar for complexcodes
Member Avatar for WeNeedThat

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

Member Avatar for WeNeedThat
0
99
Member Avatar for yournamehere

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

Member Avatar for Salem
0
124
Member Avatar for bamabambhole01

And I thought this was going to be about solar ellipses and lunar ellipses ;) Oh well...

Member Avatar for bamabambhole01
0
88
Member Avatar for Waseemn

ifstream fin fin.getline cin and cout just happen to be streams already opened for you. Otherwise, everything else is identical.

Member Avatar for Salem
0
90
Member Avatar for anonymous_cutie

And if they don't take them off, put them in the microwave for a pretty, and brief, lightshow.

Member Avatar for jbennet
0
245
Member Avatar for Debo24d

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]

Member Avatar for techbound
0
102
Member Avatar for sisi

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

Member Avatar for sisi
0
167
Member Avatar for LindaWiklund

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.

Member Avatar for Salem
0
87
Member Avatar for amitpawar007

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.

Member Avatar for Salem
0
172
Member Avatar for Indianblues

Like the thread two posts above yours, which is not surprisingly, also called "c++ books" [url]http://www.daniweb.com/forums/thread70096.html[/url]

Member Avatar for Salem
0
65
Member Avatar for PirateTUX

The End.