In Progress

C++ Exercise

Develop the function char ** indexedKeysAndOPerators (const char * fName) with the following specifications :

The fName parameter represents the path + name of a source file C + +.

The return value represents an array of null terminated strings. For each katholiko1

The string produced for each ledger block insertion code will call the representation of keys . block of source code fName there is an element in the table return . The element is formed from the keywords and the operators of the respective blocks as follows : Each keyword (keyword) and / or operator (operator) encountered in block numbered and inserted numbered sto string. Different keywords and / or operators have a different numbering . Also , the numbers are different for each block .

For example:

#include <iostream>

#include <fstream>

using namespace std ;

void displayFile (const char * fName ) {

ifstream in;

[url removed, login to view] (fName );

if (!in.is_open ()) {

cout << fName << " not opened" << endl ;

return;

}

char buffer [1024 ];

while (![url removed, login to view] ()) {

[url removed, login to view] (buffer , sizeof (buffer ));

cout << buffer << '\n' ;

}

[url removed, login to view] ();

}

int main (){

displayFile ("[url removed, login to view]" );

return 0;

}

The code above has 2 universal block: body displayFile (yellow area) and the body of main (green area). Therefore, the key representation for the yellow and green blocks are respectively as follows:

The yellow area have keywords as follows: 1 char, 2 cout, 1 endl, 1

if, 1 while and operands: 1 [, 3 (), 5., 2!, 1 return and 5 (.

• Similarly, in the green region have keywords as follows: 1 return and

operators: 1. 1 (.

Accordingly, indexedKeysAndOPerators will return an array of size 2 to be

contains the following strings.

char1, cout1, cout2, endl1, if1, return1, while 1, [1, () 1, () 2, () 3,! 1,! 2, (1, (2, (3, (4, (5 , .1,

.2, .3, .4, .5

return1, (1, .1

Add a main that takes as a parameter the name of a source code C + + and

will print on the screen the result of indexedKeysAndOPerators.

A list of keywords and operators given file keywords.txt. The series of

keywords and operators can be changed in [url removed, login to view] if deemed that

facilitate the implementation of indexedKeysAndOPerators.

The work will be organized as a Code :: Blocks project.

Skills: C++ Programming

See more: strings in c programming, string in cpp, string cpp, string cplusplus, std list c, std list, programming with cpp, programming operators, programming operator, programming function keys, int size c, function block programming, exercise programming, c sizeof string, c programming strings, c programming operators, c programming operator, c programming char, c programming array of strings, cpp strings, cpp string example, cpp string array, cpp string, cpp return array, cpp list

About the Employer:
( 19 reviews ) Patra, Greece

Project ID: #5875931

Awarded to:

chiragsparekh

I am very good in C programming and I will satisfy all your requirement. I won many events on C programming. I am regular member of CodeProject. I usually take part in CodeChef events.

€10 EUR in 1 day
(0 Reviews)
0.0

8 freelancers are bidding on average €28 for this job

dobreiiita

Hi, I am C++ expert and can surely help you here with this project. I have a lot of experience in helping students with their assignments and tutoring. Please communicate to discuss further. Thank you. Regards Anshu

€53 EUR in 3 days
(131 Reviews)
6.1
Imranceo

Hello !I am highly Expert in this field. I'll provide you [url removed, login to view] your time and money will be safe when you will award me project thanks. let's discuss more

€50 EUR in 5 days
(34 Reviews)
4.9
rakib062

Hi, I am a graduate in CS and working as a C++ programmer for 3+ years. I have done lots of assignments both in academic courses and in freelancer.com. I assure you of clean, efficient code with proper comment and More

€39 EUR in 1 day
(18 Reviews)
4.2
unix515

I can make your "indexedKeysAndOPerators" function. I've experienced in C++ development. I'll do my best. Thank you.

€28 EUR in 1 day
(7 Reviews)
3.6
gehadelrobey

very easy task I will deliver you the code in 5 hours. I am experienced c++ programmer with 5 years of experience. Please let me help you. For any further information contact me.

€27 EUR in 0 days
(7 Reviews)
3.4
SoftwareEng8876

Hello...Would you can just click on discuss button and start chat with me..Would you like,Discuss project with [url removed, login to view] can negotiate about price,time and work. ... Let me do it......I am software engineer....Thank you..

€33 EUR in 1 day
(6 Reviews)
3.2
duanling521

一个有效的提议尚未被提供

€20 EUR in 3 days
(0 Reviews)
0.0
abdul1399

i am software engineering student, I read your project , it is very simple and a piece of cake for me............... so please come on chat for more information......

€25 EUR in 2 days
(0 Reviews)
0.0
vikasawasthy19

Will developed code with in given time with efficient code.I am hands on C++ and had done some more complex code already.

€24 EUR in 1 day
(0 Reviews)
0.0