Hiring C++ Coder for a quick Job. 10$

Status
Not open for further replies.

MisterL

Active Member
60
2011
2
0
Hey there guys,

I am looking for a C++ coder that will code a phragment for a program I am using. It's quite easy actually but I don't have the time (It will take me a lot longer than somebody that has more experience). I will pay 10 $ through Paypal if you get it done right & working.

Details: What is the code phragment supposed to be doing? I want to enter a list of links (as a string or array, up to you). This string has to be chopped down and split (the links are seperated by line breaks and always in the same order).

So let's assume I have a list of three Links:

Link 1
Link 2
Link 3

which I feed to the programm. The code phragment then shall save Link 1, Link 2 and Link 3 seperately in 3 different string variables.

That's all actually. PM me if interested.
 
Last edited:
7 comments
Hi mate,

Not to be a pain or anything.

All you would need to do is ...

define 3 variables, and then just let the user enter each of them using "cin" into the variables.

And then you can "cout" the links individually or what not.

I will see if I can get my hands on old pc, im sure i did this for college back in the day.

regards,
Ryan

__________________
Added after 8 minutes:

Adding an example code for you, just writing this from the top of my head - im not even 100% sure it will work;

Code:
#include <iostream>
#include <cstdlib>
#include <cstring>
using namespace std;

int main()
{

//Defining the strings

char Link1[];
char Link2[];
char Link3[];

//Then allowing the user to input the links

cin >> Link1, Link2, Link3;

return 0;
}
 
Last edited:
First of all, sorry if anything I have written or am going to might sound stupid - Hands down, I am a complete newb when it comes to programming, so bear with me :)

If I do understand abovely posted code phragment correctly, one would still have to enter each link individually, is that correct? That is exactly what I am currently working with.
The new code phragment should allow the user to input a list of links (instead of entering the links individually) and then the programm should seperate the links and save each link in an individual variable.

The list of links will always consist of 9 links. They can be seperated by their position.
 
Then you will have to make a loop with the "cin" function and a counter would be needed which would increment (increase +1) to allow adding the links. If there is a space between the links, which is the case since you will add them like this

http://url1.com/index.php http://url2.net/index.html etc.


This needs some time, and not as simple - but like everything, it is possible :)

I hope you get to do this and pass it into your code. If you need anything else, just let me know.

best of luck,
regards,
Ryan
 
Can you show me the whole picture ?
I mean, what do you intend to do ?

I can code a program for Free in Python if you want. Working with strings and lists is a breeze with python.

So what exactly do you want to do with these string variables storing the links ?


EDIT
Here's a quick and dirty example: http://dpaste.com/hold/541573/
Make sure you put all the links in a file named links.txt in the same dir as this script
You can access the links using link_list[0], link_list[1]......and so on.
 
Last edited:
Ok here it is i dont know if this is what you meant.
#include<iostream.h>
int main()
{
int n;
char links[100][500];
cout<<"Enter Number Of Links:";
cin>>n;
for(int i=0;i<n;i++)
{
cout<<"Enter Link"<<i;
cin>>links;
}
for(i=0;i<n;i++)
cout<<links<<"\n";
return 0;
}
 
It's not quite what I was looking for since you would still have to enter each link individually .. which is what I am currently working with in my programm.. but thanks for all the help guys, much appreciated. I guess I should have been more specific about what I wanted the programm to do in my first post. Sorry for any misunderstandings, guys.

I have, however, just found someone on another board who is going to code this for me in exchange for a premium account so I guess this topic can be closed.

Thanks again!
 
Status
Not open for further replies.
Back
Top