1,684 Posted Topics

Member Avatar for caseg
Member Avatar for candykane69

candykane, the first is a warning, which means your code is not technically incorrect there. But you have a variable named 'array1', which you aren't using for anything at all! The compiler, being nice and friendly (in a sarcastic sort of way) is telling you this, since maybe it means …

Member Avatar for candykane69
0
99
Member Avatar for rasheed1982
Member Avatar for Ancient Dragon
0
138
Member Avatar for bg123
Member Avatar for WolfPack
0
131
Member Avatar for magikman

Notice that you have a bug where you write, [code]if(nextchar = '\n')cin.ignore();[/code] I think you meant nextchar == '\n'.

Member Avatar for Rashakil Fol
0
497
Member Avatar for tyczj

Your function definition says that 'size' is of the same type as the data pointed at by the first parameter. You meant to use int, not TYPE, in declaring the type of the size argument.

Member Avatar for Rashakil Fol
0
135
Member Avatar for brianotieno

How about I do your homework for you if you do my homework for me. Deal? :rolleyes: But actually, no, I'd rather not, because then I'd be wasting a lot of money spent on this education.

Member Avatar for Rashakil Fol
0
104
Member Avatar for Tlhokomelo
Re: Java

It's a simple matter of finding a security hole in the JVM implementation.

Member Avatar for Rashakil Fol
0
106
Member Avatar for niceguy21

If you can't figure it out now, get some sleep and think about it tomorrow. And then if you can't figure it out then, think about it the next day. This subject is hard; that's just the nature of the beast, and it can't be helped. Do you think Watson …

Member Avatar for Bench
0
143
Member Avatar for thehakan

Write your own ADT that uses a stack and keeps a count of how many elements are in the stack.

Member Avatar for thehakan
0
184
Member Avatar for stackOverflow

[QUOTE=sunnypalsingh]OOOOOOh....you'll be listening very soon from someone[/QUOTE] Good call!

Member Avatar for Bench
-1
318
Member Avatar for Acidburn

You're trying to pass a memory address of a character to a function that, as declared, expects you to pass an individual character. Passing a character by reference is not the same thing as passing a pointer to a character.

Member Avatar for Rashakil Fol
0
142
Member Avatar for tomoyo_13m

I don't see why you would need any help, so how can I know how to help you? You could be a bit more specific about where you're having problems.

Member Avatar for iamthwee
0
125
Member Avatar for bashi

[QUOTE=bashi]Design and implement a class hierarchy for any organization, employees.[/QUOTE] Why would I want to do that?

Member Avatar for Bench
-1
261
Member Avatar for muthuivs

I'm not sure what you mean exactly by "using char instead of string," but if that means something like [code] for (int i = 0; i < s.size(); ++i) { s[i] = toupper(s[i]); }[/code] then you should be fine.

Member Avatar for beuls
0
253
Member Avatar for Dani

Yes, it [i][b]is[/b][/i] hard to find. I can't see it anywhere on this thread's page. You need to have it clearly visible on every page. People probably usually find the site by visiting a search engine, reaching this forum, and not finding their answer. You need a New Topic button …

Member Avatar for MartyMcFly
0
208
Member Avatar for Nurul Dee
Member Avatar for Subterraneus

system expects the memory address of an array af characters. Your code is not valid C++ syntax. You could write [inlinecode]system("echo 9");[/inlinecode]. Or you could use a stringstream to build a string dynamically. [code]std::ostringstream s(""); int x(9); s << "echo " << x; std::system(s.str().c_str()); [/code]

Member Avatar for Subterraneus
0
154
Member Avatar for Nickol

No. If you don't solve this problem yourself, you won't be solve the problem that comes after this one, or the problem that comes after that. You'll might be able to squeak by with a passing grade, but you'll have learned nothing.

Member Avatar for Nickol
0
121
Member Avatar for kharri5
Member Avatar for kharri5
0
347
Member Avatar for nxt2thrill
Member Avatar for tristan17

The other two statements are [i]opening[/i]files (one file each) for appending and reading. After they succeed, DIRLOG is the filehandle for writing or reading from the file. Then print DIRLOG "blah.."; writes some text to the end of the file, and close(DIRLOG) closes the file. The third red statement opens …

Member Avatar for tristan17
0
97
Member Avatar for fevershark

[QUOTE=iamthwee]Use kode tags :eek: then we mite help u. Next time u ask a question don't just post ur kode and say help me with the missing parts? Pin point an exact problem. Then we mite help u?[/QUOTE] If you're going to harass newbies about the way they form their …

Member Avatar for iamthwee
0
375
Member Avatar for taha umar
Re: hi

[QUOTE=Ancient Dragon]no its not -- it is still just a pointer, it just contains the address of a c++ class.[/QUOTE] In the interest of not confusing the other poster, I'd like to point out that A.D. means 'address of an object [of type string]'.

Member Avatar for ITgeneration
0
332
Member Avatar for kharri5

You can use getenv to get the contents of a certain environment value (such as "PATH"). Use man getenv for details. The reason it seems like it's running another instance of your current shell is because you've forked your shell into a new process. So the program's doing [i]exactly[/i] what …

Member Avatar for kharri5
0
164
Member Avatar for yoshi4483
Member Avatar for qlp
Member Avatar for rculley1970

You're declaring your main function wrong. Another problem is the compiler you're using.

Member Avatar for iamthwee
0
108
Member Avatar for faedia

Content content content. Put stuff on your site that is informative and accessible. Your site does have a focus, right? Content is king.

Member Avatar for weber2web
0
167
Member Avatar for The Dude

[quote]I am trying to find out who is the most hated out of a list of things i hear ppl complaining about..[/quote] No you're not.

Member Avatar for The Dude
0
221
Member Avatar for vegaseat

If there is a built-in limit in the C++ language, then hell is frozen over. There are practical issues -- you don't want to run out of memory or with two billion nested loops, each having its own counter variable, but the restriction there isn't from nested for loops, it's …

Member Avatar for Narue
0
212
Member Avatar for Virii

[QUOTE=Narue]When it comes to a beginner's book on C++, there's only one choice: Accelerated C++ by Andrew Koenig and Barbara Moo.[/QUOTE] Seconded.

Member Avatar for Rashakil Fol
1
201
Member Avatar for thorne44

That's not your code; it doesn't output anything at all. While doing a global search, Perl continues just after the end of the previous match.

Member Avatar for thorne44
0
103
Member Avatar for Kob0724

GIMP doesn't have a limitation of 256 colors.... I've found the Linux version better than the Win32 port. It's great for me, since I'm a hobbyist (sub-hobbyist, really) with no money.

Member Avatar for dojo
0
327
Member Avatar for fsloke
Member Avatar for anant

Hi; welcome to Daniweb. While most people here try to be accomodating when others post in a foreign language (though I don't speak for everybody else), it's usually advisable to post in English. You'll probably get more and better answers if you post in the language everybody's using. You can …

Member Avatar for Dave Sinkula
0
323
Member Avatar for hruzam

[QUOTE=hruzam]I need to evaluate the definite integral from 1 to 2 of 5/(8)(x to the 6th power) dx. From my notes from years ago, I know the answer is 31/256, but I keep coming up with 29/256.[/QUOTE] Rewrite this as (5/8)*x^(-6) (where ^ is an operator indicating exponentiation). Then an …

Member Avatar for hruzam
0
377
Member Avatar for inparanoia

Only part of your post made any sense, but who cares? Welcome to the community!

Member Avatar for Rashakil Fol
0
55
Member Avatar for iamnoangel26

This has got to be the weirdest reply I've read. [QUOTE=iamnoangel26]Umm newbie here... just want to know what basics do i must know in order to become a computer engineer... im in my 2nd yr college now and studying about networking.... And i dont understand a single thing... except making …

Member Avatar for iamnoangel26
0
197
Member Avatar for frankieb

[QUOTE=frankieb]Can anyone give me examples of what "Canned" software is? Is it software like MS Works or MS Office or is it more like MS Access and MS Excel type off the shelf programs?[/QUOTE] All those you listed are canned. Some examples of uncanned software would be a department of …

Member Avatar for Dani
0
145
Member Avatar for iamlearning

Unicode is not an encoding, the actual storage specification is the character encoding. Unicode is more accurately described a coded character set.

Member Avatar for Rashakil Fol
0
191
Member Avatar for comwizz

[QUOTE=comwizz]I am having this problem with precedence of operators. Its with the increment and decrement operators. [code] int i,j=1; i=(j++)+(++j)+(j++); [/code] this evaluates to 6 instead of 7 . Why does this happen. It would be of great help to me. Thanks, comwizz[/QUOTE] It looks like you're expecting the expression …

Member Avatar for Rashakil Fol
0
173
Member Avatar for cybergirl
Member Avatar for LordJayno

You are trying to assign something of type Node** to something of type Node*. [QUOTE=LordJayno] [CODE] Node *temp; temp = array; [/CODE] [/QUOTE] Here, you're acting like the value 'array' is of type Node*. But as you've said, it's actually an array of node pointers. (To speak precisely, it's a …

Member Avatar for Rashakil Fol
0
176
Member Avatar for mforeman

Please put your code in CODE tags in the future, on any forum. > for ($i = $l; $h; $i++) This loop will terminate when the middle expression evaluates to a false value. You seem to want $i <= $h, not $h. ($h will just return something like 2 or …

Member Avatar for Rashakil Fol
0
156
Member Avatar for akki_freak

[QUOTE=akki_freak]Write a C++ program without using any loop (if, for, while etc) to print numbers from 1 to 100 and 100 to 1;[/QUOTE] [code]puts("5 9 2 37");[/code] These are all numbers from 1 to 100 and 100 to 1, and I'm printing them.

Member Avatar for Rashakil Fol
0
354
Member Avatar for Dabdob

I'm not aware of any GNU compiler or interpreter for Ruby. You can get the Ruby interpreter at <[URL]http://www.ruby-lang.org/[/URL]>. You may redistribute the interpreter under the GNU General Public License. Ruby is a well-designed language. If you ask me, the Ruby [i]language[/i] is better than Python's. Also, there is no …

Member Avatar for Rashakil Fol
0
100
Member Avatar for aarya

[QUOTE=aarya]i have atextare in my form. when i fill the text are with this suppose "article's" after submission of the page send it o databse . when i try to retrive from tahe databse i get artice/'s. why i am getting / . pls any body help[/QUOTE] You probably mean …

Member Avatar for aarya
0
79
Member Avatar for SpS

[QUOTE=server_crash]Any funny comment you care to share?[/QUOTE] You weren't asking me, but meh. Here's a good one: I got called "Stupid muslim terrorist." in regard to [URL=http://daniweb.com/techtalkforums/showthread.php?p=144155#post144155]this[/URL])

Member Avatar for server_crash
0
394
Member Avatar for optimak

[QUOTE=optimak]Im trying to define a function seg, which is supposed to take a finite list xs as its argument and returns the list of all the segments xs. What is meant by a segment, is a list of adjacent elements i.e. seg [1,2,3] = [[1,2,3], [1,2], [2,3], [1], [2], [3]] …

Member Avatar for optimak
0
134

The End.