I kinda have a problem. What i'm tryin to do is read a couple or lines or so from a text file and then replace all the gender pronouns ie(he, she, him, her) and replace those with gender neutral ones. The problem i'm having is trying to find all the gender pronouns and replacing them Her is a example of my code so far. Any help would be a God send. #include<iostream> #include<string> #include<fstream> using namespace std; int main() { ifstream gender; gender.open("Proj1.txt"); string str1="", str2=" he", str3=" she", str4=" him", str5=" her",str; int pos =0; if (gender.is_open()) { while(!gender.eof()) …

Member Avatar
+0 forum 0

Hi, Could someone help me with this error I am getting. I downloaded this program from a source code website.I am not a windows programmer. When I compile a program in VC++ 5.0 the following error is be shown: Linking... LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/KeyLogger.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. KeyLogger.exe - 2 error(s), 3 warning(s) The Code is as follows: There are four files: Hookeys.cpp Hookeys.h Keylogger.cpp Keylogger.h 1.) Hookeys.cpp /************************************************** All code by fallenhobit....suck deez nuts you beeeiiitch ass script kiddies..can't do this with vb....LOL......................................... **************************************************/ #include "HookKeys.h" //the …

Member Avatar
Member Avatar
+0 forum 1

Hello all. I am fairly new to progamming. I have a free C++ compiler(DEV-C++) and i was wondering if this is ok or should i actually buy a better C++ builder. I'm postive everyone will probably tell me 1 of 2 things. 1) Stick with DEV-C++ and come back when you've got more experience, or, 2) Go ahead and buy an actual builder. ok so heres the question: What should i get? I know even in the long run i WILL buy a better C++ builder but what should i get. it seems some of my best options are Borland …

Member Avatar
Member Avatar
+1 forum 13

Hi. I am trying to do a program whereby the user needs to enter some information before he/she can use the file (some sort of a lock). My problem is how can I put the file together with the exe so that when i enter the correct information, the exe will run the file???

Member Avatar
Member Avatar
+0 forum 1

Hi all, I'm trying to locate information that would assist me in obtaining the BIOS boot order and hard drive parameters in DOS. The hard drive information I think I can extract from the FreeFdisk source code with a little more time, but the BIOS boot order has me stumped. I'm not looking for any code here, just a direction to go for research (learn more that way). Thank you in advance, Mike

Member Avatar
+1 forum 0

Heloo, Is this possible to Write in Sectors in CD (CD-R/CD-RW) by C++ Code. I am in serious problem with this. If not possible, Is there any tool exists that may help me. Please help me. Thanks in forward. Ahsan Mostafa Bangladesh [email]mostafa_bd@hotmail.com[/email]

Member Avatar
Member Avatar
+0 forum 2

HI, My project is due tommorrow, I am stuck at this error which i have no clue. I have tried all my best to understand what is its cause but couldn't. I really need help. All I am saying is if you can explain why its doing this. ***Problem*** We are trying to read processes, it sucessufully stores every process and its size and location. But what it dose is that when it reads the new process and i am trying to store every process using seprate objects[ object] of structure. It changes its name to the next process. e.g …

Member Avatar
+0 forum 0

I am unable to open a file using the below code in c++. The code used to work before. I am running this program in unix (sun c++ v4.2 compilers). The file I am reading currently is now > 2GB. I am able to read files < 2GB using this code. Is it because of a limit on the unix server? Please let me know the issue with this. FYI, I had the same issue with the file size in perl. But I used pipe | to read files > 2GB. Can somebody please help me resolve this issue. //******************************************************* …

Member Avatar
+0 forum 0

hey guys i have been studing c++ for a while now. i have learned so much only problem is i find it difficult to apply any of my knowledge. i mean i knwo how to make things but i dont know what to make. thats why i came to you gusy for help i was wondering if there is a page i can go to that sets some sort of home work or projects or something. i want it to be beginner level nothing to difficult. thanks guys

Member Avatar
Member Avatar
+0 forum 2

hello i wanted to create a tetris game. i would really appreciate it tho if some one could roughly outline what i have to do. leave the coding for me i will take care of that.

Member Avatar
Member Avatar
+0 forum 16

I am currently working on a game called realm knights ([url]http://www.realm-knights.tk[/url]) i need 2 c++ programmers. Email at yonlongshots@hotmail.com or realm_knights@hotmail.com or post at the forums at realm knights. Or even post on here :D

Member Avatar
Member Avatar
+0 forum 6

Programmers, Coders, Amateur programmers and Part time programmers apply within. Im looking to recruit amateur and part time programmers who are not proffessionals but who code or program in there spare time because they are enthusiastic and love it. You dont need proffessional qualifications, or a degree to fill this post, just lots of enthusiasm, knowledge of tcp/ip, intertel protocols, can program in VB and C, and a interest in audio streaming. You will need to live in the South-East of England as I will want to come and meet you and you will need to demostrate these qualities to …

Member Avatar
Member Avatar
+0 forum 2

I've made some C++ dos programs, and it runs fine, and does everything I want it to, but the moment it does the last line of code, it exits. I use Visual C++, and it stays on when I preview it in there, but after I compile it, and run it in the directory it was stored in, it exits right away after it's done. Is there anyway to solve this? I've tried "System: Pause", but I think i'm doing it wrong.

Member Avatar
Member Avatar
+0 forum 8

I was thinking of creating this program for a school related project and was seeking advice/guidence concerning the matter. I prepose to create 7 distinct personalities and have them communicate/interact in a virtual world. I will be storing data that has been collected through everyday discussion such as questions, responces, and other common sayings and compiling it into a data base. These things will be stored in a hiarachy type sorting program. I have serveral questions that I would like answered, but any and all further comments are more than welcome. A. Is this even possible? B. How long would …

Member Avatar
Member Avatar
+0 forum 3

Hello>>> How are you all? I need a quick help with my assignment... it is in C not in C++... So, Could you help me? I don't know what to do!! the question is: Write a program that reads a data file containing a C program and writes it to another file removing all comments. the rubbish answer that i made :( : #include <stdio.h> #include <string.h> void main () { FILE *ptr; FILE *ptr2; char *com = { "*/" }; char str[500], str2[500]; if( ( ptr = fopen( "program.dat", "w" ) ) == NULL ) printf( "\n Failed to …

Member Avatar
Member Avatar
+0 forum 2

int upper; cout << "#s (4 - 9) "; cin >> upper; for (int count = 0; count < 4; count++) { int y; srand((unsigned)time(0)); y = (rand()%upper)+1; cout << y<< endl; key[count] = y; Sleep (1000); } this is my random number gen and i was wondering if there was a way to have it generate 4 different random numbers indtead of just four im basically either looking for something to change the rand so they all come out different or to change it over after the fact i thought it was easy you know just throw a loop …

Member Avatar
Member Avatar
+0 forum 1

Is C++ what i would use to make games?

Member Avatar
Member Avatar
+0 forum 2

Using Dialog Box: I want to draw a ball in a solid color and be able to move the ball around on the Dialog Box. Thanks

Member Avatar
Member Avatar
+0 forum 6

Thanx for everyone's reply. I'm more and more being put off Java, although it looks like a good language in practise, the way it looks as a GUI doesn't appeal. Anyone know of a good free C++ IDE ? I have tried Devc++ from bloodshed, but it wont let me compile for some reason. You may move this thread to C++ if you wish to keep things tidy :) Thanks In Advance, Matt

Member Avatar
Member Avatar
+0 forum 18

I'm taking an Operating Systems class in which I have to write this monster of a C++ program and it's giving me a bit of trouble. It would be amazing if someone would be able to help me out a bit. The only problem is the directions for the programming project are a bit intense. If anyone has a bit of free time on their hands I'd ENORMOUSLY appreciate it. For the most part, my problem is that a lot of the directions are a bit vague and I'm not quite clear on how the information is to be stored. …

Member Avatar
Member Avatar
+0 forum 17

A company pays its employees as managers (who recieve a fixed weekly salary), hourly workers (who recieve a fixed hourly wage for up to the first 40 hours they work and "time- and a half"-1.5 times their hourly wage-for overtime hours worked), commission workes (who recieve $250 plus 5.7% of their gross weekly sales), or pieceworkers (who recieve a fixed amount of money per item for each of hte items they produce-each pieceworker in this company works on only one type of item). Can anyone help me out with the source code to calculate the weekly pay for each employee. …

Member Avatar
Member Avatar
+0 forum 5

Thanks got them all saved them and printed them thanks!!

Member Avatar
Member Avatar
+1 forum 3

Yesterday I was looking for a good game authoring language and came across a very interesting one called 3D GameStudio. I was very impressed by some of the samples. I think I might get into it during this summer. If you're coming from a C/C++ world, then it should be a snap to pick up because it's based on C. The link is http://conitec.net/a4info.htm I also had my eyes open at DarkBasic, but 3D GameStudio seems a little better. This one is based of course on BASIC. http://www.darkbasic.com

Member Avatar
Member Avatar
+0 forum 5

The End.