293 Posted Topics

Member Avatar for physicist

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

Member Avatar for Schol-R-LEA
0
416
Member Avatar for Ancient Dragon

Great video AD, except for those comments made by those who have never useD a PC before.

Member Avatar for cwarn23
0
226
Member Avatar for badnack

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.

Member Avatar for badnack
0
652
Member Avatar for f4fjks

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

Member Avatar for StuXYZ
0
121
Member Avatar for Azmah

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 …

Member Avatar for Azmah
0
486
Member Avatar for dgreene1210
Member Avatar for ithelp
Member Avatar for BitBlt

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

Member Avatar for cwarn23
3
163
Member Avatar for Destluck
Member Avatar for pseudorandom21

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

Member Avatar for GrimJack
0
234
Member Avatar for cwarn23

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.

Member Avatar for jackmaverick1
0
124
Member Avatar for jingda

I sometimes use my Kindle xD. It is really slow though lol, and I do it only when I am really bored.

Member Avatar for cwarn23
0
198
Member Avatar for karmstrong

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]

Member Avatar for karmstrong
0
129
Member Avatar for Salem

[CODE]#include <stdio.h> int main() { (void) printf("goodbye, world!"); return 0; }[/CODE] Really sad. RIP.

Member Avatar for cwarn23
3
129
Member Avatar for jimbakl

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.

Member Avatar for Ancient Dragon
0
113
Member Avatar for techyworld

Please specify which platform. Windows does not support Posix threads natively, and Linux and Mac do not support Windows threads at all.

Member Avatar for techyworld
0
121
Member Avatar for George_91

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.

Member Avatar for gerard4143
0
160
Member Avatar for glut

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]

Member Avatar for sergent
0
277
Member Avatar for cwarn23

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

Member Avatar for Netcode
0
158
Member Avatar for cijeh90

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!

Member Avatar for azwan91
0
313
Member Avatar for pseudorandom21

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

Member Avatar for Netcode
0
98
Member Avatar for sergent

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 …

Member Avatar for mike_2000_17
0
220
Member Avatar for aKiLa.. :)

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

Member Avatar for sergent
0
217
Member Avatar for Mona..
Member Avatar for Mona..
0
184
Member Avatar for Panathinaikos22

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 …

Member Avatar for WaltP
0
177
Member Avatar for JuloF26
Member Avatar for TPBarnett
0
624
Member Avatar for rosey_fci

Tell your CS teacher, that Prolog is old and not used anymore and its time to switch.

Member Avatar for sergent
0
175
Member Avatar for ~s.o.s~
Member Avatar for sergent

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.

Member Avatar for AliTheChamp
0
330
Member Avatar for WolfShield

[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

Member Avatar for Netcode
0
1K
Member Avatar for sergent

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 …

Member Avatar for stereomatching
0
180
Member Avatar for senriz
Member Avatar for moosworksinc

I think my grandfather used to program in that stuff... the big, ancient, room-sized computers.

Member Avatar for sergent
0
200
Member Avatar for Limiter

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

Member Avatar for sergent
0
223
Member Avatar for Tom_Weston

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]

Member Avatar for Tom_Weston
0
137
Member Avatar for Leaningnew

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.

Member Avatar for Narue
0
90
Member Avatar for dudekill123

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 …

Member Avatar for nightcrew
0
152
Member Avatar for pce369

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.

Member Avatar for pce369
-1
263
Member Avatar for sergent

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 …

Member Avatar for GunnerInc
0
134
Member Avatar for blt007

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 …

Member Avatar for blt007
0
630
Member Avatar for blackcathacker

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

Member Avatar for Justinedeleon
0
252
Member Avatar for rohtash

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

Member Avatar for Ich bin würdig
0
103
Member Avatar for BCBTP

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 …

Member Avatar for BCBTP
0
509
Member Avatar for ankur3000

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 …

Member Avatar for sergent
0
181
Member Avatar for sergent

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 …

Member Avatar for dospy
0
100
Member Avatar for dev90
Member Avatar for DmytriE

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.

Member Avatar for DmytriE
0
118
Member Avatar for Leaningnew

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.

Member Avatar for sergent
0
184
Member Avatar for OblibSystems

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

Member Avatar for sergent
0
391
Member Avatar for Dani
Member Avatar for mitrmkar
4
2K

The End.