Friday, July 31, 2009

What's wrong with my vb C program???

#include "stdAfx.h"


#include %26lt;stdlib.h%26gt;


#include %26lt;string.h%26gt;


#include %26lt;ctype.h%26gt;


#include %26lt;conio.h%26gt;


#include %26lt;windows.h%26gt;





int create();


void inputData();


void createFile();


int addRec();


void DisplayTrans();


int update();


void addFile();


void deleteRec();





void printfRecord();


int isFound(char *target,int cnt);


void deleteRec(char *target,int cnt);





void displayTitle();


void search(char[],int*,int*);


void displayRec();


void updateRec(int);


void searchUpdate();


void searchNdisplay();





struct


{


char transNum[5];


char studID[11];


char dateBorrowed[11];


}trHeaderRec,trHeaderTemp[4];








FILE *trHeaderFile;











int main (void)


{


int choice;





trHeaderFile = fopen("TRHEADER.DAT","r");





if((trHeaderFile = fopen("TRHEADER.DAT","r"))==NULL)


trHeaderFile = fopen("TRHEADER.DAT","w+");


printf("File could not be opened!");





else


{


switch(choice)


case 1: create();


break;


case 2: DisplayTrans();


break;


case 3: addRec();


break;


case 4: deleteRec();


break;


default:searchNdisplay;


break;


}





int create()


{


char response;





trHeaderFile = fopen("TRHEADER.DAT","rb");





if(trHeaderFile != NULL)


printf("FILE ALREADY EXISTS...\n");





do


{


fflush(stdin);


printf("Hit 'Y' to OVERWRITE, otherwise hit 'N'?\t");


scanf("%c",%26amp;response);


}while(toupper(response) != 'Y'%26amp;%26amp;toupper(response) != 'N');





if(toupper(response) == 'Y')


{





createFile();


fclose(trHeaderFile);


}





else


{


createFile();


fclose(trHeaderFile);


}








return 0;


}





void createFile()


{


char response;


trHeaderFile = fopen("TRHEADER.DAT", "wb");


do


{


inputData();


fwrite(%26amp;trHeaderRec, sizeof(trHeaderRec), 1, trHeaderFile);


do


{


printf("Hit 'Y' to ADD MORE, hit 'N' to save and exit....\t");


fflush(stdin);


scanf("%c", %26amp;response);





}while(toupper(response) != 'Y' %26amp;%26amp; toupper(response) != 'N');





}while(toupper(response) == 'Y');


}








void inputData()


{


system("cls");


printf("4-character Transaction Number: ");


scanf("%s", trHeaderRec.transNum);


printf("10-character Student I.D.: ");


scanf("%s", trHeaderRec.studID);


printf("10-character Date Borrowed[mm/dd/yyyy]: ");


scanf("%s", trHeaderRec.dateBorrowed);





}





//display





void DisplayTrans()


{





system("cls");





trHeaderFile=fopen("TRHEADER.dat","r")...


if((trHeaderFile= fopen("TRHEADER.dat","r"))==NULL)


{


printf("The file does not exist.");


}


else


{


fread(%26amp;trHeaderRec,sizeof(trHeaderRec)...





if(feof(trHeaderFile))


printf("File is empty");











else





{








printf("\t\t\t ***Transaction Report***\n");


printf("\n%5s%s%8s%s%4s%s", "", "TransNum", "", "studID", "", "dateBorrowed", "");








}





do





{





printf("\n%7s%s%12s%s%8s%s", " ", trHeaderRec.transNum, "", trHeaderRec.studID, "", trHeaderRec.dateBorrowed, "");


fread(%26amp;trHeaderRec,sizeof(trHeaderRec),1...











}while(!feof(trHeaderFile));














}fclose(trHeaderFile);





}





//add

















int addRec()


{


char reply;





trHeaderFile=fopen("TRHEADER.DAT","wb"...





if(trHeaderFile!=NULL)


printf("THE FILE ALREADY EXISTS\n");





do


{


fflush(stdin);


printf("Overwrite[Y/N]?\n");


scanf("%c",%26amp;reply);


}while(toupper(reply)!='Y'%26amp;%26amp;toupper(...





if(toupper(reply)=='Y')


{ addFile();


fclose(trHeaderFile);


}


else


{ addFile();


fclose(trHeaderFile);





}


return 0;


}








void addFile()


{


char reply;


trHeaderFile=fopen("TRHEADER.DAT","wb...


do


{


inputData();


fwrite(%26amp;trHeaderRec,sizeof(trHeaderR...


do


{


printf("Add more[Y/N]?:");


fflush(stdin);


scanf("%c",%26amp;reply);


}while(toupper(reply)!='Y'%26amp;%26amp;toupper(r...





}while(toupper(reply)=='Y');


}








//void deleteRec()





//{


//headerFile=fopen("TRHEADER.DAT","r"...


//if(headerFile==NULL)


// {





// printf("The file does not exist!\n");


// printf("Press any key to end!!");


// fflush(stdin);


// getch();


// }


// else


//{


//fread(%26amp;headerRec,sizeof(headerRec)...


//if(feof(headerFile))


// {


// printf("The file is empty");


// fflush(stdin);


// getch();


// }


// else


// searchNdisplay();


// }


// fclose(headerFile);





// return 0;


//}


void searchNdisplay()


{


char target[11],ans,ANS;








trHeaderFile=fopen("TRHEADER.DAT","r"...





int cnt=0,found=0;


fread(%26amp;trHeaderRec,sizeof(trHeaderRec...


while(!feof(trHeaderFile))


{





strcpy(trHeaderTemp[cnt].studID,trHe...


strcpy(trHeaderTemp[cnt].transNum,tr...


strcpy(trHeaderTemp[cnt].dateBorrowe...


fread(%26amp;trHeaderRec,sizeof(trHeaderRe...


cnt++;


}


fclose(trHeaderFile);


do


{


printf("Input studentID:");


fflush(stdin);


gets(target);





if(isFound(target,cnt))


{


printfRecord();


do


{


printf("Do you want to delete this record?(y/n): ");


fflush(stdin);


scanf("%c",%26amp;ans);


}while(ans!='y'%26amp;%26amp;ans!='Y'%26amp;%26amp;ans!='n'...





if(ans=='y'||ans=='Y')


{


deleteRec(target,cnt);


printf("\nThe record has been deleted\n");


}





do


{


printf("Do you want to search another record?(y/n): ");


fread(%26amp;trHeaderRec,sizeof(trHeader...


fflush(stdin);


scanf("%c",%26amp;ANS);


}while(ANS!='y'%26amp;%26amp;ANS!='Y'%26amp;%26amp;ANS!='n'...


}


else


printf("Record is not in the list!");





trHeaderFile=fopen("TRHEADER.DAT","...





int cnt=0,found=0;


fread(%26amp;trHeaderRec,sizeof(trHeaderRec...


while(!feof(trHeaderFile))


{


strcpy(trHeaderRec.studID,trHeaderTe...


strcpy(trHeaderRec.transNum,trHeader...


strcpy(trHeaderRec.dateBorrowed,trHe...


fread(%26amp;trHeaderRec,sizeof(trHeaderRe...


cnt++;


}


fclose(trHeaderFile);


}while(ANS=='y'||ANS=='Y');





fclose(trHeaderFile);


}


int isFound(char *target,int cnt)


{


int found;





for(int a=0;a%26lt;cnt;a++)


{


if(strcmp(trHeaderTemp[a].studID,tar...


{


found=1;


}


else


fread(%26amp;trHeaderRec, sizeof(trHeaderRec),1,trHeaderFile);





}


return found;


}


void printfRecord()


{





printf("%s\t%s\t%s\t%s\t%s\t%s\t\n",t... trHeaderRec.dateBorrowed);


}


void deleteRec(char *target,int cnt)


{


int num=0;


for(int a=0;a%26lt;cnt;a++)


{


if(strcmp(trHeaderTemp[a].studID,tar...


{


for(int b=cnt;b%26gt;=num;b++)


{


trHeaderTemp[cnt]=trHeaderTemp[cnt...


}


break;


}


else


num++;


}


}





// update


int update()


{


trHeaderFile=fopen("TRHEADER.DAT","r")...





if(trHeaderFile==NULL)


{


printf("The file does no exist\n\n press any key to continue\n");


getch();





}


else


{


fread(%26amp;trHeaderRec,sizeof(trHeaderRec...


if(!feof(trHeaderFile))


printf("file is empty...\n\n");


else


searchUpdate();


}


return 0;


}





void searchUpdate()


{


char answer,target[5];


int found,size,len;





displayTitle();





do{


do{


printf("record to be update\n");


printf("transaction code");


scanf("%s",target);


len=strlen(target);





}


while(len!=4);


search(target,%26amp;found,%26amp;size);


if(!found)


printf("the record does not exist");


else


{


displayRec();


do{


printf("update this record [Y/N]?");


fflush(stdin);


scanf("%c",%26amp;answer);


answer=toupper(answer);





}


while(answer!='Y'%26amp;%26amp; answer!='N');





if(answer=='Y')


updateRec(size);





do


{


printf("update this record [Y/N]?");


fflush(stdin);


scanf("%c",%26amp;answer);


answer=toupper(answer);


}


while(answer!='Y'%26amp;%26amp; answer!='N');





}


}


while(answer=='Y');


}





void displayTitle()


{


printf("\n\n");


printf("USJR\n");


printf("\tlibrary");


printf("\trecords of books borrowed");





}





void search(char tar[],int*fnd,int*sz)


{


int cnt=0;





trHeaderFile=fopen("TRHEADER.DAT","r"...





fread(%26amp;trHeaderRec,sizeof(trHeaderRec...


*fnd=0;


*sz=0;





while(!feof(trHeaderFile)%26amp;%26amp;*fnd!=1)


{


if(tar==trHeaderRec.transNum)


*fnd=1;


else


{


cnt++;


fread(%26amp;trHeaderRec,sizeof(trHeaderR...





*sz=cnt*sizeof(trHeaderRec);


}


}


}


void displayRec(){


printf("transaction number: %s\n",trHeaderRec.transNum);


printf("studID: %s\n",trHeaderRec.studID);


printf("dateBorrowed: %s\n",trHeaderRec.dateBorrowed);


}





void updateRec(int size)


{


char reply;


int choice;





do{


clearScrn();





do{





printf("which field you want to update?\n");


scanf("%d",%26amp;choice);


}


while(choice%26lt;4);





switch (choice)


{


case 1:


printf("transaction #\n");


scanf("%s",trHeaderRec.transNum);


break;


case 2:


printf("dateBorrowed\n");


scanf("%s",trHeaderRec.dateBorrowed);


break;


case 3:


printf("studID\n");


scanf("%s",trHeaderRec.studID);


break;


default:printf("unexpected choice of field\n");


}


do{


printf("do you want to update another?/n");


fflush(stdin);


scanf("%c",%26amp;reply);


}


while(reply!='Y'%26amp;%26amp;reply!='N');


}


while(reply=='Y');





fseek(trHeaderFile,size,SEEK_SET);


fwrite(%26amp;trHeaderRec,sizeof(trHeaderRec),...


fclose(trHeaderFile);


}

What's wrong with my vb C program???
I guess you didn't read the other post... Y!Answers isn't a good place to post code because it truncates lines. And, a program that large posted here isn't an easy thing to spot the problem.








What happens when you compile it?

flower girl dresses

C-section problems?

I had a c-setion for my delivery..Never made it to the Pushing or Nothing like that.. i ended up getting admited to the hospital cuz they said i had high blood pressure and they diagnosed me with preaclamsia...(have no idea how to spell it) which after the doctor vist i had they could never find high blood pressure after that...so the next day my doctor broke my water and i was in labor for 15 hrs....with in that 15hrs i never dialated at all..they had me on potossin and just kept highering the dose... never worked....so they woke me up cuz i had a local and told me that i had to have a epideral a hafe hour later i was in the c-section room..they never told me how much the baby weight..ect...didnt get to c her until i was total done and back in the room. after all that i ended up having to stay in the hospital for and extra week cuz i ended up getting a infection..Infection from what i have no idea....My question is...Is it common and what were your experinces with a c-section.....

C-section problems?
The infection could have been from the stitches, staples, or glue what ever the used on you. My friend did it naturally but got an infection from the stitching when she tore down below. I didn't get to see my baby until I was done because I was knocked out for my c-section. They probably kept you longer because of the infection and since you were rushed back there, was because you didn't see you baby.
Reply:When I had my first c-section, my water broke but my contractions never started. Pictosin when they put me on it, brought the baby's heart rate down. After 24 hours of this, they did my c-section. I went home 3 days later. I did not have any problems with infection. In fact, I had an easier time with healing and getting around than my sister in law did and she had hers naturally. I did not get to see my daughter until I finally flipped out and said I would go find her if they didn't bring her to me. The nurses are so busy, usually the one that yells loudest, gets the attention. Talk to your doctor and find out where the infection came from. Also, question the pictosin. Normally, it will have some effect. You just had a bad experience.
Reply:The induction problems are probably very common, but the whole mess they put you through for the c section...not that Ive heard. And the infection is uncommon.
Reply:Wow sounds like an ordeal.





I had a section with our daughter. Very routine.


Minimal pain. Healed quickly.
Reply:Sounds almost like what I went through. Labour started at 2 am and we got to the hospital at 3 am. 4 hours later they said I was only 1 cm dilated and that it was braxton. I freaked because if the contractions were any stronger I was going to die. They also told me I was having back labour because every contraction was followed by back spasms. They wanted to send me home. By this time my Doctor's office was open so we went there. She realized my uterus was tipped and that I was 3 cm dilated, no plug and that the back pain was not labour but real spasms triggered by the labour so she sent me back to the hospital. Also she informed me that the contractions I had been having for the last 4 days at 20 minutes apart weren't BH and I should have called her. Turns out I wasn't feeling every contraction.





At around 11 am she came in and broke my waters and started me on the pitocin, however the more they gave me the slower my contractions came so that ended about an hour later. At 2 they attempted to give me an epidural, took 5 tries before they got one that sort of worked, it was some relief at least and I got some sleep. At 5:30 the doctor came back, I was still at 3 and now the babies heart beat was dropping too far with each contraction so off to the operating room we went. Babies heart rate must have really dropped right before we went in because I vaguely remember an extreme sense of urgency and the fact that no curtain went up, my glasses and socks were left on and hubby just got pushed out the door, not sent to the waiting room.





Turns out one of the reasons why I had such a difficult labour and hadn't felt the contractions like I should have is that baby was standing up inside of me with one foot on each hip joint and his head buried behind my rib cage. That's what had pulled my uterus out of it's normal position and why the muscle contractions weren't felt by me. Since he wouldn't or couldn't turn or pull his legs together to be breech, plus me never getting past 3 cm dilated, natural childbirth would have probably killed both of us a century ago.





For the actual c-section, the spinal block didn't reach low enough and when she went to cut me I could feel the pain of her slicing me. I went night night after that and woke up about an hour later and spent another hour in the recovery room. The nurses there were nice enough to call and get me some information about the baby and reassure me that he was fine. The birth trauma though caused him to have an APGAR score of 5 at first but it was up to 10 by 10 minutes. I didn't get to hold my son until I was moved to the L%26amp;D ward and then 3 hours later they took him to the nursery because they couldn't leave him with me as I was still groggy from the meds and they needed to make sure he didn't choke on the mucus in his lungs. They did bring him back a couple times to feed but they had problems waking me up so finally they stopped and gave him formula. Not what I wanted but better than him starving.





Then he needed more milk than what I could produce as well as being tongue tied so he didn't latch well. We wound up supplementing with formula because I never want to hear that kind of cry coming from my son ever again!





I didn't get an infection but my staples didn't hold very well. I popped 4 of them before leaving the hospital 3 days later and went home held together with steri-strips. When the doctor went to take my staples out 8 days later I had just started to close from the inside out instead of top down like you are supposed to. I was put on almost bed rest for the next two weeks to let it heal. That sucked!





I also had an epidural headache for 6 days. The only way I felt better was to get up and move around but I was supposed to be laying down resting. It was a catch 22 situation that didn't help me to heal. Then life also threw a curve ball and just as the headache went away, my father in law passed away. We knew he was ill and had been hanging on just to see the baby but you are still never ready to lose someone. Bed rest went out the window again as hubby was gone arranging funeral and tying up the last details so I was alone with the baby again.





What did I learn? Ask for help! Accept it when offered! Since I will likely have to do a c-section for the next delivery as well (turns out I have damage to pelvic and spine I was unaware of due to a motorcycle accident many years ago) I will be better prepared. I will have someone to spend a week or so with me and then get in a teenager as a mother's helper during the day for the next few weeks. Hopefully hubby won't be working steady nights anymore either. I slept on the couch for the first 4 weeks because I could roll off of it easier than I could the bed.





Even though a lot of my first experiences sucked, I have a beautiful 6 week old baby boy and I am feeling human again. The incision has almost healed, the baby is healthy and hubby managed to work his schedule to get 7 days off in a row so things are getting much easier. Although if I hear Braham's lullaby too many more times I will not be held responsible for the mobile you may see flying past your window (and I'm in Canada LOL).
Reply:With my first child, I had a C-section. I had high blood pressure and the doctor admitted to the hospital after my dr.'s appt. I was in the hospital for 10 hrs before they induced labor. I was in labor for 15 hrs and never felt the urge to push. finally, at 2 am, the dr said that I had to have a C-section because my baby was in trouble. I was awake for the surgery. They showed me my baby and then I was whisked away to recovery for over 1 hr. I saw my child again later, and I had to ask to see her. I had to stay in the hospital for 4 days because I was still having some medical problems. So, I understand what you went through. But thank goodness you're alright.
Reply:well, it sounds like you had a bad experience. If you were not dialating then they did right. But they didn't inform you very well of what was going on and was not very nice as for you were having your first baby. So, you can't chance anything now but when you go to have another one if you do, make sure they know what happened the first time and you want that to never happen again. good luck and wish you the best


C++ for Linux, Mac and Windows?

Im currently using Bloodshed Dev-C++ to do C++ Computer programming but it only seems to do Windows projects so is it possible in Dev-C++ to do app's for linux or mac?


If so how?


Also is the C++ code the same for linux as it is for windows?

C++ for Linux, Mac and Windows?
%26gt; "Im currently using Bloodshed Dev-C++ to do C++ Computer programming but it only seems to do Windows projects"


Dev-C++ is an IDE. The compiler it uses is MinGW. MinGW is a windows port of gcc. gcc is a compiler that runs on Linux, among other systems. MinGW targets windows only.





%26gt; "so is it possible in Dev-C++ to do app's for linux or mac?"


The topic you want to look at is cross compiling. No, this is not a one paragraph topic. Please Google and read. Good luck on not getting intimidated.





%26gt; "Also is the C++ code the same for linux as it is for windows?"


Sort of. C++ itself is a portable language, so if you stick to standard C++ and the standard library, you're fine. However, that only happens for trivial programs. Most likely, you will start relying on OS specific capabilities, in which case your code isn't just going to run from one machine to other. You'll have to port it.
Reply:Not sure if you can use dev-C++ for linux or mac projects, but the code is the same, its just different compilers picking up different errors etc. I think if you do it on linux it should work on Mac, windows is the only odd OS out there
Reply:As long your code uses ANSI C++, you don't need to worry about portability; however, this is tricky even when using ANSI C++! For instance the function "system" under the c header file stdlib parses an OS shell command to execute through C++; when typing system("cls"); under windows it will clear the dos screen, but "cls" doesn't exist in Linux; instead, "clear" will clear the terminal screen under Linux! C++ doesn't care and it parses the string parameter passed to the system function; syntax-wise, it accepts any string inside it, but when it comes to execution, you won't get the result you expected because there are certain OS considerations.


Any way, Borland released two years ago "Borland C++ BuilderX" which is a cross-plattform C++ Compiler; you chose the target Operating system for your project and the compiler will generate a compatible code for that target OS; it's a wounderful release, but after the release Borland Studio 2006 it has been removed! Perhaps now in the new release "CodeGear" this support is back; I'm not sure, so check it out, but i'm quite sure you'll find what you want under "Borland C++ BuilderX" though it's not easy to find for download.
Reply:Try here for info


http://www.techtutorials.net/





http://www.theeldergeek.com/
Reply:If you want to develop linux applications you must install Linux and compile the application again. Same for Mac's. and any other operating system. A compiler is specific to an operating system. Java managed to do this though but Java isn't a compiler. It's an interpreter, meaning it translates the code to a virtual machine which needs to be installed on that operating system, and through this virtual machine the program will run.
Reply:It will be the same as long as you stick to ISO-compliant C++, not platform-dependent extensions of the language.


Find Angle C?

A plane flies from city A to city B, a distance of 150 miles and then turns through an angle 40 degrees and heads toward city C, a distance of 169 miles. Through what angle C should the pilot turn at city C (which is angle C) to return to city A?





NOTE: The distance from city A to city C = 300 miles.

Find Angle C?
The plane's movement forms a triangle ABC. AB = 150, BC = 169, AC = 300 as given.





You know the angle %26lt;ABC is 140 degrees (as the plane turned 40 degrees from a straight angle to go to C). Therefore, it's simple use of the Sine Rule to find the angle %26lt;BCA.





Sin140/300 = SinX/150


SinX = (Sin140)/2...


I don't have a calculator, but 360-X should give you the angle you need, according to my diagram. (The angle X is the acute angle %26lt;BCA but realistically the plane would have to turn through the larger angle.)


Can't turn A/C on (or off)....help!!?

Nothing like having A/C problems in the dead of summer. I have a Samsung AW1480A air conditioner. It's 5 years old and has worked great up until yesterday. Although the A/C came with a remote - I never use it...i only use the control panel on the A/C. The A/C wouldn't turn on! I plugged something else into the outlet to check that the outlet was working fine (it was)...I plugged the A/C back in - and it beeped. I pressed the power button a few times %26amp; finally it did turn on. This morning when I went to shut it off before going to work, the power button wouldn't respond. I couldn't shut it off! I finally shut it off by just unplugging it (probably not good for the A/C, I know). When I got home from work today, I plugged it back in - heard the beep - but I couldn't get it going. I did find that the only 2 buttons that work are the Timer button %26amp; the button that makes the thermostat go up - so - I can get the A/C to turn on %26amp; off by using the Timer button....

Can't turn A/C on (or off)....help!!?
Sounds like the control board/touchpad is faulty. Having someone replace could be very expensive. Doing it yourself can still be expensive. Life expectancy for an in wall or in window A/C unit is 8-10 years. You would be better off purchasing a Fedders or GE unit. If you choose not to replace the unit with a new one, who is to say that the compressor wont give next, and those are more expensive than the control board in many cases. Anyways good luck in what you do. If you decide to purchase new, Home Depot or lowes are a nice choice, but I would steer closer to a home appliance store personallyl.
Reply:Five years old? I believe it is checking out. If not immediately, then soon. Look for sales because August, as you know, is a killer. The way things are manufactured today five years is pretty good. I have a GE that's 3 years old and showing signs of age.
Reply:Its a bad computer/controll pad. You should be able to change it yourself if you can find the part.....Companies are suppose to keep parts around for ten years, doesnt mean they always do though.





Its more than likely either a bad button or two, fried conections somewhere on the board, or a bad relay. All of which would require a new computer/controll pad board. Good luck in finding the part.

flower garden

MLB Fantasy: C Crawford for T Hunter? I need Steals. I'm 2nd in HR, 1st in RBI's and 5th in runs.?

I'm trying to get rid of 3 Twins...cause when they get shut out so does my team...





T Hunter's last month's stats: (Career Year, on a good Offience)


H/AB R HR RBI SB AVG


23/87 15 6 14 0 .264





C Crawford last month's stats: (Ok year, on a shitty Offience)


H/AB R HR RBI SB AVG


24/87 15 0 5 12 .276





Should I ask for more? A pitcher: SP or RP?





Starting Lineup:





Mauer, C


Morneau, 1B


Cano, 2B


C Guillen, 3B


Hunter, OF


D Young, OF


C Hart, OF


C Duncan, Util





Reserve:


F Sanchez


N Markasis





The guy I'm trading with has also has Figgins, any thoughts?


His best pitcher according to ERA is Gil Meche or Jered Weaver.


His RP: Putz, Reyes, Weathers, Saito

MLB Fantasy: C Crawford for T Hunter? I need Steals. I'm 2nd in HR, 1st in RBI's and 5th in runs.?
Don't do that trade...Crawford is out right now and i would before doing that trade make sure he is healthy before i do anything. Also its Offense. Next I would try to get figgins along with that trade.





Like i said before, don't do anything until Crawford is actually playing again. If he goes on the DL in the middle of that accepted trade, it could be a huge loss for you. I would rather have a guy playing than need to pick up a free agent for a good player on the DL.





Crawford:


http://sports.yahoo.com/mlb/players/6870...





Good Luck!!
Reply:yeah thats a great deal esp if you have other power hitters anyway
Reply:wow if ur gettign crawford for hunter, do it....crawford has the ability to carry your fantasy team when hes hot....u seem to have a weak OF, so if u can get him to throw in another OF, thatd be an added bonus, but if not do the trade


The Best C++ IDE and A free 2D game source code?

To hit two birds with one stone, Im quite new to C++ i've tried poking around code and I've got a book about C++ that I haven't read much of yet, but I currently use Bloodshed Dev-C++, I was wondering which is the best free IDE for C++ (not Micosoft Visual C++) and if theres any where to get free source code for a simple game like pong even!

The Best C++ IDE and A free 2D game source code?
bloodshed is good yes.





what about using linux...?!?! gcc and also get





allegro games / gfx library.. thats multi format =)





http://www.talula.demon.co.uk/allegro/





http://retrospec.sgn.net/





a lot of them games were made using c++ and some using allegro.. it will take time to learn..





the most important thing would be the game engine itself.. the rest isn't as important.





a few game makers have released their source code, so might be helpful to take a look..





free lunch design is one that released some source code amongst others.
Reply:Bloodshed Dev-C++ is the best IDE I know of, and a good site with some examples would be: http://www.cppgameprogramming.com/cgi/na...
Reply:Sorry, but for precisely 0 Notes of expenditure, Microsoft Visual C++ Express is the best (no) money can buy.
Reply:I'm a fan of Codegear products (ex. borland).. Turbo C++.





For source code of game, look in the x2ftp (http://ftp.lanet.lv/ftp/mirror/x2ftp/)
Reply:Here's an old favourite of mine - grew up on Borland and there is always Borland Turbo C++. This is a good platform to start learning on. Then one can move onto Borland C++ Builder. MS Visual Studio C++ is ok but does not have all the resources that I would like.
Reply:I prefer Code::Blocks for a free IDE on Windows. Take a look at http://wxdsgn.sourceforge.net/ (wxDev-C++ ) as well, since it gets actively developed. Dev-C++ was okay when I was a beginner, but it soon became unusable for me.