6,741 Posted Topics
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 … | |
Re: >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. | |
Re: >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++ … | |
Re: 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: | |
Re: A better place to ask this question would be in the Hardware->Peripherals forum. | |
Re: >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 … | |
Re: >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 … | |
Re: printf sends output to stdout, which is the same destination as cout by default. | |
| |
Re: >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: | |
Re: "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. … | |
Re: >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. … | |
Re: It sounds like you want a [url=http://dinkumware.com/manuals/reader.aspx?b=p/&h=queue.html#priority_queue]priority_queue[/url]. | |
Re: 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: … | |
Re: >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 … | |
Re: By the looks of it, you have several problems. Post more code please, preferably something that we can compile and run as well. | |
Re: >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, … | |
Re: >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? | |
Re: Don't start a new thread for the same problem. | |
Re: >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 … | |
Re: >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. … | |
Re: ># 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' … | |
Re: 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 … | |
| |
Re: >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 … | |
Re: >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 … | |
Re: Try printing out the characters that you read, and compare what you expected to get with what you actually got. | |
Re: >void draw(char, int, int); char is not the same as a two dimensional array of char. | |
Re: 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 … | |
Re: I won't tolerate a thread devoted completely to a bunch of people's "do my work for me" questions. Thread locked. | |
Re: >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] | |
Re: >*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. ;) | |
Re: >What can I do? You can post your question in the Windows forum. This forum is for introductions only. | |
Re: >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 … | |
Re: >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, … | |
Re: 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 | |
Re: >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. | |
Re: >I play a game called JediKnight 3. Jedi Academy? >I got the source code online from a website [edit] Issue resolved. [/edit] | |
Re: 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 … | |
Re: What errors are you getting? Can you post them as well, please? | |
Re: >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, … | |
Re: >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 … | |
Re: >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 … | |
Re: 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++: … | |
Re: >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. | |
Re: >what exactly is this. [url]http://en.wikipedia.org/wiki/Telecommunications[/url] | |
Re: >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 … |
The End.