293 Posted Topics
Re: [QUOTE]The syntax is either way off for C or so confuscated as to be unreadable. Semicolons are missing or misplaced. It's hard to tell if there are function declarations or variable declarations. Etc. [/QUOTE]It's not only C syntax. It has bad style even FOR C and I don't think it … | |
Re: Great video AD, except for those comments made by those who have never useD a PC before. | |
Re: What compiler do you use on netbeans? The Netbeans itself can be a problem, since it is a Java IDE. I suggest you compile it with VC++ and then link the library to Netbeans. | |
Re: [QUOTE]You could find some open source project that sucks and improve it. [url]www.sourceforge.net[/url][/QUOTE] Impossible! Open Source projects never suck :D BTW. It is usually better to work on the once that DON'T suck, since it is most often easier to read, use, and improve them. And to tell you something … | |
Re: You should not use Dev-C++, just because it's old and un-supported. I tried to compile wx on Windows some time ago (about 2 years ago, when I still knew little about programming), but it was just too complicated. On linux, I think WxWidgets came pre-build with Code::Blocks, so all I … | |
Re: It depends what is in the file you are trying to open. | |
Re: 3 great computer people died this month! McCarthy contributed so much to A.I.! Lisp is on top of my languages-to-learn list. R.I.P. :( | |
Re: [QUOTE]Plus your kids' school might beable to *gasp* afford up-to-date textbooks. [/QUOTE] Chinese probably spend 3x less money on schools, but they get 2x the education in US. Not all problems can be solved by money *gasp*, some require change in attitude *gasp*. | |
Re: My original goal was learning and discovering new things about computers, and to know how they work inside. Nowadays, I program just for fun, but I still learn a lot of new things. | |
Re: I sometimes use my Kindle xD. It is really slow though lol, and I do it only when I am really bored. | |
Re: I thought CDROM was an object not integer? You should use [CODE]int deleteCD(CDROM *one, CDROM *two) { delete one; delete two; return 0; [/CODE] | |
Re: [CODE]#include <stdio.h> int main() { (void) printf("goodbye, world!"); return 0; }[/CODE] Really sad. RIP. | |
Re: I am not really familiar with Visual Studio, but your programs had errors while building so the path to the program executable does not contain executable itself (or the path in the project build target is specified incorrectly). First correct the errors in the program. | |
Re: Please specify which platform. Windows does not support Posix threads natively, and Linux and Mac do not support Windows threads at all. | |
Re: G++ and all C compilers support it. But it is not C++ standard so use what gerard4143 said. [CODE] int size; cin >> size; int *array = new int[size]; [/CODE] You can now treat it almost like a real array with indexing. | |
Re: The normal array is not returnable. You can use pointer array instead OR vector [CODE] type* func(int size) { type *array = new type[size]; return array; } [/CODE] | |
Re: [QUOTE]So does this mean I have to live for 68 years and succeed in doing so?[/QUOTE] That number is dangerously close to the number 69 ;) [QUOTE]...or if you're still in puberty: don't worry, you'll get over it and in a few years all your current problems will look silly … | |
Re: Show us some effort that you actually tried to do this. Don't just copy and paste your homework! Programmers hate it and most likely no-one will help. Try to do it on your own and you you have any problems we will help you! | |
Re: [QUOTE]ArtificialPerson bob; ArtificialPerson clone(bob);//CLONING!!![/QUOTE] I don't get the joke, or the joke does not make sense. I think bob is supposed to be of the type Person and clone should be of the type Artificial person. Also since clone is the same as a normal person, you can just copy … | |
I don't get why ISO don't include VLAs in C++ standard. C++ is supposed to be a C extension, and C99 clearly supports VLAs. It is not hard to implement and does not break any existing C++ code. It is useful for beginners, who do not yet know pointers, and … | |
Re: [QUOTE]thank you.. but since i am a beginner, i really need a good topic.. can you suggest me one, so that i can work on it and show it to you people before submitting it?[/QUOTE] You don't need a "good topic", you just need a one that works. Start out … | |
Re: Instead of posting many threads, you could have used EDIT button. Just a tip ;) | |
Re: First of all try to improve your spelling. Even if your English is bad, it does not give you a right to misspell words so horribly. "soz,airplan, not capitalized sentences and words, sh1t" My step-brother is doing some programming for American Army planes. He uses a lot of Assembly and … | |
Re: This is not Objective-C forum. Please move it to "other" languages. | |
Re: Tell your CS teacher, that Prolog is old and not used anymore and its time to switch. | |
OMG. I can't believe it. I don't like Mac, but Steve Jobs was a great smart person. I was just reading daily news and I saw it! He was only 56 years old and he died of cancer. R.I.P. | |
Re: [QUOTE]ROLF I thought one of them was a troll[/QUOTE] I am not sure who I prefer being in this argument. I think I prefer being a calm camel, to being a screaming girl? I am not sure :D | |
It seems like when invoking a function explicitly, it should be compiled at compile-time with a specific variable type, but I am not sure how implicit function invokation works. I don`t think compiler will create a different function for evey datatype available (since there can be many different data-types in … | |
Re: C++ is WxWidgets? | |
Re: I think my grandfather used to program in that stuff... the big, ancient, room-sized computers. | |
Re: No, I would not recommend Visual C++. M$ has a free version of it, (Visual C++ Express Edition), but I dislike VC because it is slow and ugly. The IDE is called IDE, but there is no "SDK". There is a compiler, that IDE uses to produce the .exe files. … | |
Re: Whats wrong with the good ol' + operator? [CODE] string sztext2; string sztext3; cout << "Debug 2:" << endl; cin >> sztext2; cout << "Debug 3:" << endl; cin >> sztext3; string fullstr = sztext2+sztext3; cout << fullstr;[/CODE] | |
Re: It flushes the input buffer i.e. writes everything to the output stream. Some systems don't write all the input buffer contents to the screen until newline character is encountered so to write everything to the screen fflush() can be used. | |
Re: I did not look over the whole program, so I am not sure what you are trying to do with that function. But [CODE]employee::search_for_employee( int choice, name_temp[20] , email_temp[50])[/CODE] is wrong because the function has to have a type of a variable passed to it, and name_temp[20] is an array … | |
Re: Add #include <cstdlib> at the top. Tip: Next time you have a problem, try to write the error messages you have, and if it is possible, isolate the part of the program where you get the error. | |
Any decompiler/debugger can convert machine program written in C/C++ to Assembly, but that Assembly is really hard to read, and corresponds to each particular instruction in machine language, not to a C/C++ instruction. So my question: is there a decompiler, that decomplies the C source code to Assembly, not to … | |
Re: This is clear example of overly-commented code. If someone ever says "there is never enough commenting" to me, I am going to send them link to this. Now to your assignment: This is one of the worst programs I ever saw, and I am "taking it easy lol". You did … | |
Re: 1. Free Rider 2 Try canvas rider (canvasrider.com), it is almost the same. I am actually making a program right now, to draw ramps and other stuff for the tracks. My list: 1.canvasrider (actually it is not flash, but HTML :D) 2.boxheads 2 | |
Re: [CODE]char password[50]; scanf ("%p",password); [/CODE] If you want to display the fancy stars(*) or you don't want the users to see the password he typed, you can use non-standard conio-windows function getch(), to get 1 char from input buffer, and ouput a star *. | |
Re: If the compiler has it, then why are you asking it on this forum? getch() is not a standard [URL="http://www.parashift.com/c++-faq-lite/input-output.html#faq-15.17"]function[/URL], therefore compiler does not have to implement it. In your case all the forums are going to be the "wrong forums". If you don't like C++ ANSI/ISO standards, create your … | |
Re: This is really annoying and works differently on different OSes and compilers. For example with G++ on Ubuntu I can output Unicode characters with cout, but on windows it is harder. Try messing around with setlocale(), wchar_t, wcout, and don't forget to include <locale>. I don't have a VC++ installed … | |
In all the new IDEs when using open and close curly brackets the auto-formatting usually indents, and uses the extendable block (with the + sign) even if it is not necessary. For example, I like when all my functions have there own little extendable block but when I place them … | |
Re: The OS will not allocate memory, if it can only allocate a portion of the memory you requested. So if matrices is not a NULL pointer after malloc() then you have your 4 ints. | |
Re: The variable sizes are determined by compiler, not the processor. I think sizeof() is a compile-time function (as opposed to run-time). The bitness is usually the size of registers in a processor. Generally, the bigger the registers, the faster the processor operates. | |
Re: [QUOTE] one thing is, there is no best. Best can manageably be defined as as function of the application you want to design[/QUOTE] Well, we all agree that there is better once for particular purposes. One can go even more general and say there is better languages for one's learning … | |
Re: I just joined. I hope we can get to top 100 or at least 1000 |
The End.