Identifying variables that are not used

已取消 已发布的 5 年前 货到付款
已取消 货到付款

Write a program reading C++, or Java code and identifying all variables (simple, tables,....), which are not used.

Not so much details has been given to us unfortunately. The idea is to imitate compilers and make a system that will read a piece of code written either in Java or c++ (its your choice). And find all varibales that have been declared but not used, and give an error message "Variable var has not been used".

Variables should be a mix of simple variables like integers, and more complex ones like lists or structures.

Attention must be payed when variables share the same name but have different scope, as some of them might be used but not all!

Example:

int a = 1+2;

Public fun(){

int a;

int b = 3+$;

}

In this case variable 'a' inside function 'fun' has not been used.

A document that explains the algorithm, describes input/output, describes test cases, constraints and limitations (if exists) is required. Comments on the code is appreciated.

Deadline is one week.

Notes: (Re

1- Please be sure that you can submit the task before the deadline. Any delay may result in terminating the agreemnet and canceling the project without payment.

2- Please don't rush to take the project before others only to to attempt to do it. And when unable to, you come up with execuses like "sick relatives" and "Emergency". This will result in canceling the project, bad review and report.

3- Please don't take the project if you have problems with English language. This will make everything complicated.

4- If you take the project. It will be awarded to you. With milestones created.

5- Feel free to stay in touch and ask questions and keep comunication going. Good freelancers will be given a good review, recomendation to my freinds and colleagues, and a promise to hire for future projects!

C 编程 C++编程 Java 软件构架

项目ID: #16959828

关于项目

13个方案 远程项目 活跃的5 年前

有13名威客正在参与此工作的竞标,均价zł261/小时

hbxfnzwpf

I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 7 years. My work is online game developing, and mainly focus on server side, using c++ under Linux environ 更多

zł800 PLN 在5天内
(175条评论)
7.1
abrahambrons

Hi sir i have read the description of what you need and have a solid Idea on how to solve it, I can of course take care of the variables scope and the shadowing of names, I think is simpler in Java Relevant Skills and 更多

zł277 PLN 在7天内
(33条评论)
5.2
pmeher09

Hey, I am a Java developer having good experience. I can do it in java, I can identify the variables which are not used in code. Regards, Pradeep

zł80PLN 在1天里
(30条评论)
4.8
redraylight

Oh ok Hello alidhan97! I solved your task I am waiting for you I am sorry before Dear sir I read your description carefully I can solve your task I can only give you source code I have full experience of c+ 更多

zł95 PLN 在0天内
(10条评论)
2.8
elrrashid

Hello . I can do this for you in just 4 days or less . I have the required experience and ideas .I can work this out easily as my study is focused around this area. If you are interested in me please hire me.

zł266 PLN 在4天内
(0条评论)
0.0
avijitsankar7

Having 7+ yrs experience with Oracle certifications in JAVA/ Java EE, I think it would be right for me to bid on this project. Thanks and Regards - Avijit

zł238 PLN 在7天内
(0条评论)
0.0
nissyviny

A proposal has not yet been provided

zł211 PLN 在10天内
(0条评论)
0.0