I'm new to C++ and am hoping to find help with coding a simple C program, am wanting to obtain code and functioning exe's.

I code in an old version of Visual Basic 4.0, I have a simple app that is about 3 and a half pages of code long it does some relatively simple math additions and subtractions

The problem I have is that some numbers get to be very large integers and VB automatically converts this to scientifc notation, what I need is to have all numbers added and subtracted with exact precision even when the numbers become very big, the code sums, subtracts these numbers so that in the end there is a resultant, often again a very large number

I need to be able to perform a mod function on this end resultant

here is how it will work ;

1.) The C program opens a text file, the text file contains a variable number of numbers in sequence with spaces in between them, such as

" 23 2244 87 62 71 99 8 4 9 344 21 77 87 63 98 56 64 33 22"

The number of numbers in this text file can range from only a few to hundreds

The C program scoops these out and stores and processes these as per my code in VB, but it retains the precision of the very large numbers, NOT converting these to scientific notation

2.) The end result is obtained and a mod function is used on it, the mod value can vary as well to be any number, this mod value is stored in a text file, the C program opens this text file and loads the value as a variable when ever it runs and uses that variable as the value of the mod divisor

3.) the mod value of the resultant is then printed out to a text file

Thats it!

I have the VB code and can provide it, what Im hoping for is to ask someone to convert its exact functionality, one to one to the C program

Four versions of the code needs to be made, one that adds and one that subtracts, but also from right to left and left to right... to explain better, four versions are needed;

1.) Add number sequence from left to right
2.) Add number sequence from right to left
3.) Subtract number sequence from left to right
4.) Subtract number sequence from right to left

I want to be able to call the C program from VB, so the Python dos command screen activates or at least runs and does its thing, the C program can be a simple DOS like command line style exe that just rins quickly and crunches the numbers and spits stuff out to a text file

any how, if you can let me know!

I am willing to offer some cash for this help, if it works properly but I dont have a lot of money as I am unemployed
I can offer $50.00 and can pay you via paypal

Thanks for any help you can offer

9 Years
Discussion Span
Last Post by William Hemsworth

Hey, this looks like homework and your posting in the totally wrong forum if you are wanting help with C, the will find it http://www.daniweb.com/forums/forum118.html.

Nope, its not home work at all. Its August! No one is even in school!!!! ????

But thanks for the link, Im in the wrong place? I thought this one was for C++ ?

I have C++ complier, not just C ?


If you have no intention of doing homework, why sign up for the course?

siigh... no its not homework, again. Is this like some kind of weird male predjudice thing
happening? You think girls cant enjoy porogramming for kicks, and that it has to be some poor dumb blond wanting some big strong man to do her homework for her?

Come on guys.... give me a break. ITs AUGUST, IM NOT IN SCHOOL!

I could really use help on this, its not at all for a class.


Hey, this looks like homework and your posting in the totally wrong forum if you are wanting help with C, the will find it http://www.daniweb.com/forums/forum118.html.

Hey... wait a minute... your 14 years old! No wonder you thought I was in school!

Are you actually programming in Python? No offense, I cant be prejudiced against you for your age, especially if Im not wanting to be judged as a dumb chic


Regardless, of whether you're a girl, whether you're a blonde, whether you're in school or whether this is homework, you still need to show some effort.


This is pathetic, honestly. Instead of trying to pay people to do this simple task you could do in a couple of hours, show some effort and do it yourself. Remember we are only here to offer help, not to do it for you.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.