Find Jobs
Hire Freelancers

Stack Program

$30-100 USD

In Progress
Posted about 11 years ago

$30-100 USD

Paid on delivery
I need help defining what I am doing wrong in the following task and showing me a correct/working solution. I have created a "main.c" file with some code but something goes wrong with it. Below is the definition of the task at hand: "A program in C, which will identify the complex proposals within a text file that contains code in a language C. The program starts when you ask the user to enter the name of the file you wish to open. Then the program have to inform the startpoint that starts each complex sentence (ie an open brace '{') and endpoint of the specific complex proposal (ie a closed bracket '}'). ------------Example 1: File with name “test1.c” with code: #include int main () { int i; for (i=0;i<10;i++) { printf("%d\n",i); }} ---------------------------------------- Program Output: Give name of file: test1.c 1st complex sentence: Opens at line 3 Closes at line 9 2nd complex sentence: Opens at line 6 Closes at line 8 ---------------------------------------------------- The program should work correctly even if there are multiple hooks in the same row. ---------------Example 2: File with name “test2.c” with code: #include int main () { int i; for (i=0;i<10;i++) {{ printf("%d\n",i); } }} -------------------------------------------------- Program Output: Give name of file: test2.c 1st complex sentence: Opens at line 3 Closes at line 9 (brackets 2) 2nd complex sentence: Opens at line 6 (brackets 1) Closes at line 9 (brackets 1) 3rd complex sentence: Opens at line 6 (brackets 2) Closes at line 8
Project ID: 4452701

About the project

3 proposals
Remote project
Active 11 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hello. I'm C/C++ expert. Looks pretty easy for me
$34 USD in 1 day
5.0 (218 reviews)
5.8
5.8
3 freelancers are bidding on average $42 USD for this job
User Avatar
Hi, I can help you in very short time.
$58 USD in 1 day
4.8 (41 reviews)
5.1
5.1
User Avatar
Hi, I am a expert. I can start just now. Regards.
$54 USD in 1 day
5.0 (1 review)
1.8
1.8
User Avatar
Please have a look to PM. Thanks
$71 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Hi ===YESS!! WE ARE EXPERT IN WEB DEVELOPING, HTML, XHTML, CSS, JAVASCRIPT, JQUERRY, PHP, SEO, ECOMMERCE, WORDPRESS, JOOMLA, AJAX, DRUPAL,MAGENT,O XML, ANDROID APP,IPAD APP,IPHONE APP. , WE LOVE TO DEVELOP AND DESIGN==== MORE DETAIL AND PORTFOLIO CHECK PMB THANKS REGARD, SAQIB
$34 USD in 3 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of GREECE
Imerovigli, Greece
5.0
23
Payment method verified
Member since Jan 27, 2013

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.