Hi everybody. How can I write a program with C++ that finds pattern.
For example if we give the program 3 pairs like (2,5),(5,11),(1,3) and then enter 6 the program returns 13.
note:the pattern was 2x +1.
Thank you.

I suggest you look into Neural Networks. I took a class on that and it was really interesting. This is learning code. You can look it up on wikipedia.

Hi everybody. How can I write a program with C++ that finds pattern.
For example if we give the program 3 pairs like (2,5),(5,11),(1,3) and then enter 6 the program returns 13.
note:the pattern was 2x +1.
Thank you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.