6,741 Posted Topics

Member Avatar for Narue

I like the look. The operation totally bites though. As a primary example, it annoys me to no end that your collection of ads requires me to hit the back button on my browser multiple times just to move back to the last page I was viewing. I'm also not …

Member Avatar for Dani
0
464
Member Avatar for Rearden

>I dont think you can use the "System" command in linux. I don't know about the "System" command, but the system function is standard C, declared in stdlib.h.

Member Avatar for Rearden
0
327
Member Avatar for thiru.y

>I would like to know how Images r loaded in C++ Very carefully. >and if it can handle and execute basic image manipulations and also filters Sure, why not? >also whats the maximum amount of bitdepth for images (if >there is a upper threshold) that can be handled by c++ …

Member Avatar for Narue
0
226
Member Avatar for rony

Let me get this straight. You want to know how to link FORTRAN (no version given) with Java (no version given), in a C and C++ forum? Bwahahahaha! :cheesy:

Member Avatar for Narue
0
224
Member Avatar for rajasekhar

A better place to ask this question would be in the Hardware->Peripherals forum.

Member Avatar for McReagant
0
186
Member Avatar for pscha3

>Is this a right way of defining it? Every way is the right way as long as it compiles and does what you want. Your question can't be answered as asked. >How do I Modify a file? You read the file, make your changes in memory, then write the changed …

Member Avatar for Narue
0
260
Member Avatar for truxpinoyxrl17

>I need help. Yes. Yes, you do. >here's my confusing code... That's an understatement. Not only did you neglect to use code tags, which killed any formatting your code may have had, the only comments you use are utterly useless. Perhaps instead of just saying "here's my confusing code", you …

Member Avatar for truxpinoyxrl17
0
521
Member Avatar for altheastronut
Member Avatar for bballmitch

printf sends output to stdout, which is the same destination as cout by default.

Member Avatar for Narue
0
313
Member Avatar for Drowzee
Member Avatar for mozira

>How can one be assisted by Dave Sinkula By posting a question. If he's interested, he'll help you. Otherwise, you can just settle for the rest of us who don't "understand C++ very well". :rolleyes:

Member Avatar for Dave Sinkula
0
363
Member Avatar for fba

"Bucket sort" refers to several different algorithms, where the only link between them is the use of an auxiliary list of "buckets" for evenly distributing the items to be sorted so that they become more sorted in the process. [url=http://www.eternallyconfuzzled.com/tuts/sorting.html#lower-bounds]This[/url] section of my sorting tutorial covers two of these algorithms. …

Member Avatar for Narue
0
115
Member Avatar for yaan

>I was trying to create a function empty() to display the >entire list of entries after a pop That's a poor name for the function. People expect a function with the name empty(), to tell them whether or not the stack is empty, not print the contents of the stack. …

Member Avatar for Narue
0
182
Member Avatar for ferrant

It sounds like you want a [url=http://dinkumware.com/manuals/reader.aspx?b=p/&h=queue.html#priority_queue]priority_queue[/url].

Member Avatar for Narue
0
328
Member Avatar for beetle
Re: stl

This is a quick and easy way that uses an intermediate step of initializing an array, then using the array to initialize the vector. [code] int array[20] = {3,431,4,123,4,52,52}; std::vector<int> v ( array, array + 7 ); [/code] Alternatively, Boost has an assignment library that does just what you want: …

Member Avatar for Narue
0
172
Member Avatar for md16185
Member Avatar for pscha3

>How does it work? Wow, that's an open question. ;) I don't imagine you want an implementors view though. >I want to know if I can display all the files of the object at once and if so how. An fstream object can only refer to a single file at …

Member Avatar for Narue
0
137
Member Avatar for truelies

By the looks of it, you have several problems. Post more code please, preferably something that we can compile and run as well.

Member Avatar for Narue
0
89
Member Avatar for Jon182

>stop a program from crashing if the user enters a char instead of an int by mistake? The program shouldn't crash simply by reading the wrong type. Now, when you actually try to use the value you'll have issues if the variable wasn't initialized to something predictable. Post your code, …

Member Avatar for Jon182
0
444
Member Avatar for xonicide

>I suggest finding a geekish girl, or at least a gamer or anime girl Ha! Geek girls know better than to date geek guys. ;) >how can a half-geek find a decent gf??? Use the other half?

Member Avatar for Cain
0
512
Member Avatar for parisa85
Member Avatar for AhmedHan

>The crap compiler uses 'AT&T Assembly Syntax'. Just because it uses an ASM syntax that you don't know doesn't mean that the compiler is crap. In fact, GNU GCC is a very good compiler that many experts recommend. Good first impression. :rolleyes: >In the normal assambly language There is no …

Member Avatar for fluidDelusions
0
1K
Member Avatar for kharri5

>becuase C++ is so fantastically wonderful at describing its errors of course Java errors are no less cryptic, you're just used to them. >I shouldn't be overstepping the boundaries of the list You shouldn't, but you probably are if you fail to terminate the list at any point with NULL. …

Member Avatar for Drowzee
0
778
Member Avatar for ramow
Member Avatar for karen_CSE

># include <iostream.h> #include <iostream> using namespace std; >void main (void) int main() >char *sentencePtr = set; What is set? Why are you redeclaring sentencePtr? >sentencePtr--; Yea, that'll work. NOT! Try walking to the end of the string, then back: [code] char *p = sentencePtr; while ( *p != '\0' …

Member Avatar for karen_CSE
0
1K
Member Avatar for ramcfloyn

The c_str() method of the std::string class returns a pointer to const char so that you can't modify the result. Unfortunately, there's no good solution, and you can thank the author of the library who didn't write const-correct code. Now, if you know that the function will not modify the …

Member Avatar for ramcfloyn
0
836
Member Avatar for rony
Member Avatar for mmiikkee12

>Okay i really thought servercrash had written winxp in java :rolleyes: >I've even heard you can't do it in c/c++ either...But don't know if that's true or not. It's true, some routines have to be written in assembly (paging and context switching for example), though not many. So an OS …

Member Avatar for Sauce
0
692
Member Avatar for bandm

>I know that my VS C++ 6.0 Visual C++ 6 is a very poor compiler for C++. >automatically sets these arguments when I choose a simple Application Then you should start with an empty project. Unless you're using command line arguments, there's no need to include those parameters in your …

Member Avatar for Narue
0
185
Member Avatar for davidianstyle

Try printing out the characters that you read, and compare what you expected to get with what you actually got.

Member Avatar for indianscorpion2
0
251
Member Avatar for sifuedition
Member Avatar for Narue
0
325
Member Avatar for Rearden

The class is declared in a header file: [code] // c.h #ifndef C_H #define C_H class C { void foo(); }; #endif [/code] The definitions for the class are in an implementation file: [code] // c.C #include "c.h" void C::foo() { //... } [/code] Files that need to use the …

Member Avatar for Narue
0
209
Member Avatar for lax_irtt

I won't tolerate a thread devoted completely to a bunch of people's "do my work for me" questions. Thread locked.

Member Avatar for Narue
0
126
Member Avatar for cpp noob

>is there anyway that it can happen by just entering the digit and not pressing enter after it. Change this: [code] cin>>a; [/code] To this: [code] a = getch() - '0'; [/code]

Member Avatar for Dave Sinkula
0
269
Member Avatar for Quickslvr

>*sPtr = toupper(*sPtr); [code]*sPtr = toupper ( (unsigned char)*sPtr );[/code] Since you can't be sure that *sPtr was a character returned by a standard input function. Better safe than sorry in these situations. ;)

Member Avatar for aismm
0
6K
Member Avatar for tpaley

>What can I do? You can post your question in the Windows forum. This forum is for introductions only.

Member Avatar for Narue
0
117
Member Avatar for synth

>Lately I purchased VC++ 6. If by "lately", you mean in the last four years, you really should work on shopping around instead of buying the first thing you see. I hope you didn't pay much for it. Not only is VC++ 6 old, it was crappy when it was …

Member Avatar for winbatch
0
236
Member Avatar for Drowzee

>It's quite all right if MFC isn't really familiar to anyone, by the way. Thanks for assuming that we're all ignorant just because your question wasn't promptly answered to your satisfaction. Technically, this forum is for C and C++ language issues, and non-standard library questions should be directed elsewhere. However, …

Member Avatar for Drowzee
0
273
Member Avatar for TheWebJunkie

Cell Phone iPod C algorithm book C++ algorithm book C++ data structure book. Japanese-English dictionary Little black book Television remote control The Incredibles DVD (widescreen) Mini screwdriver

Member Avatar for JJ___
0
467
Member Avatar for winbatch

>is there any way in C/C++ to keep track of milliseconds? No, the smallest portable measurement is a second. However, most systems provide a way to have sub-second measurements. Check your man pages.

Member Avatar for winbatch
0
316
Member Avatar for erfg1

>I play a game called JediKnight 3. Jedi Academy? >I got the source code online from a website [edit] Issue resolved. [/edit]

Member Avatar for Narue
0
119
Member Avatar for kronos

Can you post the contents of main.css? It looks like the page uses the relative div with auto margins trick. If that's the case, then you'll see something like this: [code] div#wrapper { position:relative; width:70%; margin-left:auto; margin-right:auto; } [/code] Change width from whatever it is to 100%, that should fix …

Member Avatar for kronos
0
130
Member Avatar for freemind
Member Avatar for tundeakins

>but i don't know how to do it Then you deserve a failing grade. Seriously, if you get far enough into a course to be assigned such a non-trivial program, and you don't have any clue how to do it, then you didn't pay attention, didn't take notes, didn't study, …

Member Avatar for Narue
0
162
Member Avatar for gluber

>sorry but I really need code for locking folder If I recall correctly, you never specified what you think "locking a folder" means. So, instead of starting a new thread with the same stupid question, why not try asking a better question, as I suggested in your last thread? >not …

Member Avatar for Narue
0
197
Member Avatar for fEaRdArEaPeR

>i do not know anything abt coding. Then what are you doing here? You wanted someone to suggest a "script" that you clearly lack the computing literacy to run on a forum that expects you to know enough to actually make an attempt at writing one. >isnt there any program …

Member Avatar for Narue
0
231
Member Avatar for Fanion

Fanion, you seem to be confused about what language you're learning. <iostream.h> is not C. In fact, it's no longer valid C++. However, ignoring the fact that you have no idea what your question is, I'll give you a few reasons for using iostreams instead of C-style I/O in C++: …

Member Avatar for Narue
0
90
Member Avatar for fm_chicago

>the problem is that I can't use the getch. Then you have to write a routine with equivalent functionality. There's no standard way to do what you want.

Member Avatar for Narue
0
364
Member Avatar for Koteswar

>what exactly is this. [url]http://en.wikipedia.org/wiki/Telecommunications[/url]

Member Avatar for Narue
0
84
Member Avatar for schoolgirl05

>Can someone please explain to me why converting a base class pointer to a >derived class pointer is considered dangerous by the compiler. It's not "dangerous" as you say, but it does go against the rules of implicit conversions, so conversion without a cast is illegal, and most of the …

Member Avatar for Narue
0
151

The End.