Question about Compilers & Programming Tools

1 Answer

C PROGRAM I NEED ALGORITHM OF A C PROGRAM WHICH COUNT LINE OF CODE OF A FILE

Posted by on

1 Answer

  • Level 1:

    An expert who has achieved level 1.

    Problem Solver:

    An expert who has answered 5 questions.

  • Contributor
  • 5 Answers

#include <stdio.h>
int main ()
{
FILE * pFile;
int c;
int n = 0;
pFile=fopen ("test.txt","r");
if (pFile==NULL) perror ("Error opening file");
else
{
do { //DO
c = fgetc (pFile);
if (c == '$') n++;
} //DO
while (c != EOF);
fclose (pFile);
printf ("File contains %d$.\n",n);
}
return 0;
}

Posted on Sep 29, 2008

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
goodluck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

Implemation of booth algorithm


check this out buddy...

http://cpsourcecodes.com/?tag=booths-algorithm

u may need to modify it a little, but you are a programmer so it shouldn't be any trouble... :)

Mar 24, 2009 | Compilers & Programming Tools

1 Answer

I want some java source code for creating digital certificate


dear friend take a look to these links about Elliptic Curve Cryptography in JAVA, I hope they could help.
www.sourcecodeonline.com/list?q=elliptical_curve_cryptography

www.blogs.sun.com/andreas/entry/elliptic_curve_cryptography_in_java
www.codeguru.com/forum/showthread.php?t=411476

www.manning.com/rosing/

www.scribd.com/doc/209755/Elliptic-Curves-And-Cryptography

Good Luck

Feb 23, 2009 | Compilers & Programming Tools

1 Answer

Please Solve this C++ Program


Write a program to prompt the user to input several lines of input. A line of inputs is terminated by '*'. For each readline of input the program should output:(use pointer notation for the array) . The total # of words . The lenght of the longest word in the line At the end the program should output: . The total number of words read in all lines of input . The lenght of the longest word read in all lines of input

Jan 19, 2009 | Compilers & Programming Tools

2 Answers

Source code for word count


Haha, i wrote one of thee a while ago for a competition. You need to us e the char at function mate :D
Inside a for loop
Ill havea look for you though :D

Sep 09, 2008 | ArcMedia JavaScript Source Code 3000 Pro...

1 Answer

Data mining


Hello, you can find the best open-source implementation of data-mining algorithms here:
http://www.cs.waikato.ac.nz/ml/weka/

You can use the built-in application or embed it in your own code.
Of course it implements several naive bayes algorithms

Mar 20, 2008 | Compilers & Programming Tools

Not finding what you are looking for?
Compilers & Programming Tools Logo

Related Topics:

94 people viewed this question

Ask a Question

Usually answered in minutes!

Top Compilers & Programming Tools Experts

Robin Hill
Robin Hill

Level 3 Expert

1251 Answers

Fred Block
Fred Block

Level 2 Expert

289 Answers

kakima

Level 3 Expert

98608 Answers

Are you a Compiler and Programming Tool Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...