- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 7
- Posts with Upvotes
- 6
- Upvoting Members
- 4
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Software Engineer
- Interests
- Hip Hop, Drum and Bass, Computers, and Doctor Who
- PC Specs
- Thinkpad T40
66 Posted Topics
Re: [QUOTE=Saxo]Would anyone have a C++ program that will prompt the user to enter the number of students and subjects that have been marked, the user should be able to enter the names of the students and subjects and the user should also enter the associated exam results. The program should … | |
Re: Have you ever heard of a stack? And what the hell is with void main()? | |
Re: [QUOTE=Paul.Esson]So in conclusion I think C is a great language to learn since its so powerful :)[/QUOTE] here, here! | |
Re: Richard Stallman is coming to speak at the University of New Mexico on Wednesday :) | |
Re: [QUOTE=cscgal] Why am I getting errors: 'process' : 'struct' type redefinition 'node' : 'struct' type redefinition 'queue' : 'class' type redefinition[/QUOTE] My first guess is you're using Visual C++ :) It compiles fine with g++, maybe try: [CODE]struct process { int pid; // process id char* file_name; // file name … | |
Re: [QUOTE=red_evolve]Hi, I am just another newbie to Linux and am picking a suitable one to start with. Err...reading thru all the replies, why none of you guys mentioned Free BSD ? :?:[/QUOTE] Because the original poster was asking about Linux? Not UNIX? My first distro was Slackware 1.2.3 | |
Re: Quality posts = bandwidth well spent + advertising revenue | |
Re: [QUOTE=Maurice306]My internet explorer keeps shutting down. I can open it up but if I try to go to another website it just shuts down. Now I'm also getting an error message in outlook2000 saying that there is a problem with my pst file. I've done the detect and repair for … | |
Re: You need to flush the: printf("What street do you live on? "); to stdout. | |
Re: [QUOTE=freebie]Just installed the apache RPM package and run /usr/sbin/httpd There are too many lines in the apache config file to go over. Just post and ask anything you might want to know and we'll asnwer it. As for email server, kill the default sendmail and install Qmail. It claims qmail … | |
Re: Why not use fgetc? I don't really use C++ constructs, so in C it would be (and I'm just writing this on the fly so expect some errors): #include <stdio.h> #include <stdlib.h> int main() { char myChar; FILE *in = fopen("myfile.txt", "r"); // Open myfile.txt read-only while((myChar=fgetc(in)) != EOF) { … | |
I find it interesting that QBASIC is mentioned for several reasons: 1. This language and any of its predacessors are hardly used these days. And, if they are, it's most likely for nostalgic reasons. At one time, I remember, some schools used it for introductory programming courses. For a time, … | |
Re: [QUOTE=Forse]RedHat is evil....it's just another windows with loads of wizards and 1000000 services running by default plus not to mention the RPM hell. Be a man get getoo and learn how to configure config files :twisted:[/QUOTE] I'd rather build all my applications from ground up. I don't like RPMs *ugh* | |
Re: [QUOTE=cscgal]You have to be in text mode to install video card drivers - or else you'll be trying to update files that are currently in use.[/QUOTE] No you dont, edit /etc/XF86Config(-4) with the correct information and reboot the X-server... of course you have to know the driver, monitor vertical and … | |
Re: [QUOTE=lestont]Hi. Yes I managed to create a boot disk and I can access fedora now.But where and how can I manage to change the grub utilities?Sorry I'm new to linux,I tried reading the grub manual but I can't really get what I'm trying to do.Your help will be appreciated...[/QUOTE] First, … | |
Re: [QUOTE=crestaldin]:p [FONT=Comic Sans MS][COLOR=RoyalBlue]Hello , Ps I need someone to direct me to any site where I can get some challenging programming tasks that will enable me develop my C++ programming skills. I'm tired of reading books and tutorials and need to lay my hands on something practical this summer. … | |
Re: [QUOTE=cscgal]If you guys who frequent the forum think that there are enough C questions posted to warrant their own forum, I have no problems with it. But please ensure that this would be a smart move - I agree with Julienne about the cross-posting and the people who aren't going … ![]() | |
Re: [QUOTE=cscgal]Nice article. I'm not so sure if I agree with you, though. I seem to think that CPA affiliates never work for me. I can generate a decent amount of revenue due to banner/text link clicks, but not when it comes to my visitors actually having to sign up for … | |
Re: Fiyona, I don't want to get on your case, but would it be too hard to "Preview" what you've written before you submit? We all make spelling and grammatical errors (God knows I do), but you've just about breached the threshold between comprehensible and incomprehensible. If English is not your … | |
Re: [code] #include <fstream> using namespace std; int main([b]int argc, char **argv[/b]) { ifstream file; if (argc == 2) { file.open([b]argv[1][/b]); ..... } ..... return 0; } [/code] Or something :) | |
Re: [QUOTE=Narue]>It is skipping some of the datas. Which parts of the data are being skipped? Help us to help you by narrowing down the problem as much as possible. Otherwise we'll just ignore you.[/QUOTE] Or talk about you on IRC :) Hah j/k | |
Re: Hello... your code... is well.... um, yeah... here is a [u]very[/u] basic example of how to get input from the keyboard in C (in the console) that I whipped up just for you [i]Generated: Fri May 13 01:22:44 2005 [/i] [code] [[b][u]001[/u][/b]] [b]#include <curses.h>[/b] [[b][u]002[/u][/b]] [[b][u]003[/u][/b]] int main() [[b][u]004[/u][/b]] { … | |
Re: [QUOTE=JANINE]guys, i must say thanks for this lovely juicy information you have provided. i'll be frank in saying i've never used linux but as a techie im always up for new things and info. someday it'll be useful.:D keep smilin ur doing gr8[/QUOTE] Don't use an emulator :) Install [i]stage1[/i] … | |
Re: [QUOTE=admdvv]At runtime I obtain an instance of descendant of TObject (for example its name is TGoodForm). The definition of TGoodForm is unknown at compile time (I know that it is TGoodForm from TObject::ClassName()). [B]The question: how to create new instance of TGoodForm ?[/B] In another words, can I get address … | |
Re: [QUOTE=theinsaneone]Dear friends I am asking anybody to please provide me with a round robin scheduler in C programming. I have a non preemption program, but i need a preempted one. Please help.[/QUOTE] Why can't you program it yourself? | |
Re: [QUOTE=some one]beleve me she descuss the homework after we give it to her so I need it to be right thanks[/QUOTE] Write out your program out in pseudo-code (how you think its suppose to work) and post it. I can begin to help (and teach) you, then. | |
Re: [QUOTE=Acidburn][code] int hangman::checkstatus() { for ( int i = 0; i < 5; i++ ) { if (encryption[i] == '*' ) { return i; [b]cout << i;[/b] [b]break;[/b] } } if ( i == 4 ) { cout<<"You win!"<<endl; } return 0; } [/code] [/QUOTE] Maybe you can tell me … | |
Re: [QUOTE=raghavendrak]Hi Friends, I want to write a MP3 player with minimum GUI for Linux (Fedora) I dont know where to start with I have knowledge of C/C++ programming, but not much knowledge of creating a GUI. I use Eclipse. I want to write for KDE. Can you please guide me … | |
Re: [QUOTE=SquirrelProdigy][CODE]if(cmd=="new"){ string name,desc; cout<<"Name? "; cin>>name; Setcursor(Conloc); cout<<"Desc? "; cin>>desc; Setcursor(Bodyloc); Invitem Item(name,desc);[/CODE] When the values of the string desc is set through cin, if a space is used, all text after that space isn't used. Also, If two words are used when setting name, it will give the second … | |
Re: [QUOTE=winbatch] Also, in the syntax you are using for inserting into the map(which I've never seen before), what int is being assigned for the value?[/QUOTE] Beautiful isn't it? | |
Re: Write [b]MergeSort[/b] [i]iteratively[/i] and you'll see a performance gain, I bet. | |
Re: [QUOTE=nizar4445] for(j=0;j<5;j++) [/QUOTE] [code] [b]tmp.c[/b]: #include <stdio.h> int main() { int err; int i = 0, j; FILE *f; f = fopen("tmp_file", "r"); if (!f) { perror("fopen"); return -1; } else while ((j = fgetc(f)) && !feof(f)) printf("%c", j); return 0; } [b]tmp_file[/b]: efefewf efewgfrewgrwgrewgttrf fewfrewrwer 1 2 4243 4324 … | |
Re: [QUOTE=winbatch]As seen in another thread, I'm working on a Log class. I'm running into an issue that if I delete the file that's being written to, the Log class doesn't detect it and continues to 'think' it's writing even though the file is gone... (Note that this is on sun … | |
Re: Uh.... this looks like [bad] [i]psuedo[/i]-code to me... which you probably copied, thus making it [b]not[/b] yours (at least in terms of origin). This question is so foolish and remedial, it'd do you (and the rest of humanity) some good to figure it out on your own methinks. I mean … | |
Re: [QUOTE=Raza]im going to make an operating system...after completing my boot and kernel work....not i have just created a simple c++ program for my os....now i wan to convert that c++ .cpp into .bin so i can write it into floppy sector...bcoz my os will be base on floppy disk... question … | |
Re: [QUOTE=innocent_one]I am trying to get a simple round-robin scheduler working....using the fcfs..[/QUOTE] The correct acronym is FIFO (First-in, First-out). It's important when working with data structures and algorithms to use the correct terminology. Even though I was able to infer what you meant, a good way to develop yourself as … | |
Re: [QUOTE=bobr_1013] [CODE] void initializeStudent (student_rec &any_student) { any_student.name[30] = ' '; any_student.ss[9] = ' '; [/CODE][/QUOTE] You have to be kidding me. I'm assuming (I'm hoping) this was your intention: [CODE] memset(any_student.name,0,sizeof(any_student.name)); .. [/CODE] I'm assuming this barbaric [b]system("PAUSE")[/b] is a Windows thing, but because we all know that good … | |
These two languages, for the most part, are completely different; especially now. From culture to paradigm. So let's get a seperate C forum going. | |
Re: Running GNOME and / or KDE on that laptop isn't going to be very fun. I'd suggest something more lightweight like XFCE if you have to have a window manager. Even then the X server itself is going to kill you on space. Anyway, if the harddrive space is such, … | |
Just looking at all the difficulties people are having with MS Windows :) Now seems like a good time to switch to Linux :) :) :) -- I don't have [u]any[/u] of these problems. But, I also don't play video games or use Photoshop either ;) | |
Re: Using C memory allocation routines in C++ programs is BAD FORM. | |
Re: [QUOTE=trashed]i have a workstation with broken cd drive and i was intrested in installing linux. what alternative methods can i use to do it, and with which distros? tnx[/QUOTE] I'm assuming your workstation is currently a Windows box? Do you have a floppy drive or a USB ThumbDrive? I've not … | |
Re: [QUOTE=Jpowers22]Recently we have been asked to create a hybrid sort based upon quicksorting down to a certain point and insertion sorting from then on. We are to calculate the efficency based upon previous tests. I had very little problems implementing a quicksort algorithm, but for the life of me, I … | |
Re: a switch statement is a mechanism of flow control that can be translated to something like this (provided you return/break after each case), [code] int cond; // case 1: if(cond == 1 { // case 2: } else if (cond == 2) { // case 3: } else if (cond … | |
Re: [QUOTE=hopeolicious]I have to use a while loop to display everything 3 times and then i have to use a do while loop to do the same thing when i added my while and do while loop it keeps on repeating like a millions times and i cant stop it can … | |
So, in my spare time I'm working on a little OpenGL particle engine. I'll give this little guy it's own website and release the source code in a week or so. It's written in 100% C... it's quite ugly right now, but I hope to fix it up. The capabilities … | |
Hi, I use to visit this site some time ago but got really really busy. I graduated with my BSCS at the University of New Mexico and moved to Austin, TX to work at IBM's Linux Technology Center in the Linux OS Security group. Now that I'm a little more … |
The End.