Completed

help will C++ code

i am working on a large C++ program that is spread over multiple VMs because of the codes size. to get the multpile programs to speak to each other i am using an ofstream to write to a .txt file to tell the next program to run the next part of code. see below for details

when program 1 has finished it will write a .TXT file with a number between 0 and 4,

ofstream MyFile61("Z:/myprogram/data/[login to view URL]");

MyFile61 << "1";

[login to view URL]();

meanwhile on program 2 it is looping with a number with 0 until a new number is entered into the file

statementdecision6:

ifstream myreadfile8("Z:/myprogram/data/[login to view URL]");

string mytext8;

if (myreadfile8.is_open())

while (getline(myreadfile8, mytext8))

{

string decisionchoise = mytext8;

[login to view URL]();

if (decisionchoise == "1") {

}

if (decisionchoise == "2") {

}

if (decisionchoise == "3") {

}

if (decisionchoise == "4") {

}

if (decisionchoise == "0") {

goto statementdecision6;

}

else {

cout << "fail" << endl;

ifstream myreadfile5("Z:/myprogram/data/[login to view URL]");

string mytext5;

if (myreadfile1.is_open()) while (getline(myreadfile1, mytext1)) {

string choice = mytext6456546;

ofstream MyFile("Z:/myprogram/data/[login to view URL]");

MyFile << choice;

[login to view URL]();

goto statementdecision6;

}

}

the problem i seem to have is that one of my programs keeps crashing at this same part, when a new number is entered the program2 will crash but its never the same program that crashes sometimes it will be program 2 or 5 or 8, its always a different program but its always the same part of code.

how do i fix this problem or is there a better way design this part of code.

thank you

Skills: C++ Programming, C Programming, Software Architecture, Software Testing

See more: help fix code, please help zip code, create large image multiple small images, working large excel files, source code working live websites using struts, working large files, j2me code send large file via bluetooth, code export data sql multiple sheet excel 65000, help infinite responder working, google analytics ecommerce code working, working large files access, pls help zip code, code igniter search across multiple database, help blackjack code 2003, fix liquid help css code firefox, php code working timezone, c# code for multiple choice questions, c# code help, c++ code help

About the Employer:
( 7 reviews ) Rochdale, United Kingdom

Project ID: #32119058

Awarded to:

aravinda333

Hi, I have great experience in C/C++ programming, process management, multi threading, network programming via sockets and so on. I understood that you need an efficient method of communication between processes, th More

£50 GBP in 1 day
(11 Reviews)
3.8

14 freelancers are bidding on average £102 for this job

NovaSofts

Hello Sir/ Ma’am please visit my portfolio for similar projects : https://www.freelancer.com/u/NovaSofts?w=f&ngsw-bypass= We are a group of Software Engineers (Programmers) having 10+ years of experience. Expert in More

£35 GBP in 1 day
(388 Reviews)
7.8
(34 Reviews)
5.7
Armmasud

My carrier starts as an Electrical Engineer I developed intuitive feeling about web designing. I write clean w3 validated code and make a device supported website. I am an expert on the "Algorithm, Flow chat and C-prog More

£135 GBP in 1 day
(20 Reviews)
6.0
apgrl123

hi, i have rich experienced of C/C++ so that i can give you the perfect result. C/C++ is my top skill and i am majoring it for long years. i have completed the several projects already so i have confident to complete More

£135 GBP in 7 days
(12 Reviews)
5.5
PhDWriter12

Hi There I have checked your project description and understand everything. I am very confident that i can handle this project perfectly. As i have 10+ years of experience in this field. Right now, I am placing a pl More

£35 GBP in 7 days
(7 Reviews)
3.7
freelancersandh1

If you are looking for solution of C, C++, C# ,VB.NET, JAVA and Web Application in ASP.NET(MVC OR WEB FORMS), you are at right place. I am a professional developer with graduation in BS Software Engineering with more More

£135 GBP in 1 day
(7 Reviews)
3.2
oxanarvayva

Dear Client. Thanks for your posting. I'm interested in your project. I wanna work on this project. I have strong knowledge of C++. We have to use Thread to fix this. I'd like to discuss further via chat. Looking fo More

£200 GBP in 7 days
(5 Reviews)
2.8
novikovyaroslavd

Hi there C++ expert here if you hire me you can surely save your time and money kindly ping me I'm ready for you Thanks

£60 GBP in 1 day
(3 Reviews)
2.1
alamineee

Hi, Dear Employer, I have read your job post carefully. I have over seven-plus years of experience at the ✔Machine Learning ✔python ✔Matlab ✔C program, ✔C++ program. ✔R program, ✔Algorithm✔java, and others. Please fee More

£100 GBP in 1 day
(5 Reviews)
3.2
kirillalazzekh

Hi, there, I read your writing. I think that you can use the c# friend function or friend class to solve it. If you know about the friend function, please use it. Maybe it will be solved easily. The friend function is More

£250 GBP in 7 days
(1 Review)
0.2
Razorka

Hello. Nice to see you. I saw the description of your project. As you know, I am a new freelancer. I am a freelancer with perfect abilities. Talk to me and you will know everything about me. I always guarantee my abili More

£135 GBP in 1 day
(0 Reviews)
0.0
vrishaldk

Hey mate, Is it possible that the reason one of these programs is crashing because they're not handling the exception when they're unable to access the file? Say program 1 is in the process of writing and closin More

£20 GBP in 7 days
(0 Reviews)
0.0
salehinfaijus360

Hi there, I'm "Salehin Mohammad F ; I am an expert in professionalization in essays and dissertations with skills including ✓ R program, ✓ C program, ✓ C++, ✓ Mathematics with report Writing. Feel free to contact me. B More

£100 GBP in 3 days
(1 Review)
0.4