-
Marked Solved Status for Reading from .txt a cheking vowel a
int main(int argc, char** argv) { FILE *f; char string[100]; int counter=0; f=fopen("New Text Document.txt","r"); if (f==NULL) { printf("error"); } while(!feof(f)) { fscanf(f,"%c",&string); } fclose(f); for(int i=0;i<100;i++) { if (string[i]=='a') … -
Replied To a Post in Reading from .txt a cheking vowel a
tnx man, when you said "replaced" i automatically figured out that i should have done while(!feof(f)) { fscanf(f,"%c",&string[i]); i++; } this, and then loop through but tnx for that snippet -
Created Reading from .txt a cheking vowel a
int main(int argc, char** argv) { FILE *f; char string[100]; int counter=0; f=fopen("New Text Document.txt","r"); if (f==NULL) { printf("error"); } while(!feof(f)) { fscanf(f,"%c",&string); } fclose(f); for(int i=0;i<100;i++) { if (string[i]=='a') … -
Began Watching Reading from .txt a cheking vowel a
int main(int argc, char** argv) { FILE *f; char string[100]; int counter=0; f=fopen("New Text Document.txt","r"); if (f==NULL) { printf("error"); } while(!feof(f)) { fscanf(f,"%c",&string); } fclose(f); for(int i=0;i<100;i++) { if (string[i]=='a') … -
Marked Solved Status for can' t get string keyword in dev-c++ 5.5.3(windows8)
As it is said in the title i can not get the keyword string. I finally found a version of C for windows 8 but now i can t get … -
Replied To a Post in can' t get string keyword in dev-c++ 5.5.3(windows8)
I feel now kind of weird like my mind got erased in a second (started C at high school -.-) maybe because i m working in c# and now java … -
Replied To a Post in can' t get string keyword in dev-c++ 5.5.3(windows8)
it came with the package -
Created can' t get string keyword in dev-c++ 5.5.3(windows8)
As it is said in the title i can not get the keyword string. I finally found a version of C for windows 8 but now i can t get … -
Began Watching can' t get string keyword in dev-c++ 5.5.3(windows8)
As it is said in the title i can not get the keyword string. I finally found a version of C for windows 8 but now i can t get … -
Began Watching Dice game crazier than usual!
Hi everyone, I've been taking a Intro to Java class this year and been enjoying it, I recently had a assignment which was a simple dice game, however I was … -
Replied To a Post in Dice game crazier than usual!
import java.util.Random; import java.util.Scanner; public class DiceGame2 { private static Scanner input; public static void main(String[] args) { // Declare variables for Scanner and Random input = new Scanner(System.in); Random … -
Began Watching Array with random
okay ive been trying to do this for some time i want my program to randomly select 3 strings from my text file and display them randomly so each time … -
Replied To a Post in Array with random
Please post some code, it s really hard to think without seeing the actual code -
Began Watching Dice game crazier than usual!
Hi everyone, I've been taking a Intro to Java class this year and been enjoying it, I recently had a assignment which was a simple dice game, however I was … -
Replied To a Post in Dice game crazier than usual!
didnt you do that on your second post to this thread? Please provide new code if you ve changed your previouse code a be more specific, another thing that i … -
Began Watching Need help to with arrays and using methods
Write a program that displays the frequencies of sales commissions. The commission for each salesperson is calculated as $200 plus 9% of gross sales. For example a salesperson who grosses … -
Replied To a Post in Need help to with arrays and using methods
public static double[] calcCommissions(double[] grossSales) { double commissions[] = new double[grossSales.length]; for (int i=0;i<commissions.length;i++) { commissions[i] = 200 + 0.09 * grossSales[i]; } return commissions; } try to substitute your … -
Began Watching Need help to with arrays and using methods
Write a program that displays the frequencies of sales commissions. The commission for each salesperson is calculated as $200 plus 9% of gross sales. For example a salesperson who grosses … -
Replied To a Post in Need help to with arrays and using methods
In your last method calcComissions, you are using an array and you re not specifying on wich index of the array comissions the calculation that you re doing should go … -
Created IPhone stealing data from a windows operating system?
I would really appreciate some help here and some serious answers. I work at a coffe shop and an man came up to me if i could charge his iphone … -
Began Watching IPhone stealing data from a windows operating system?
I would really appreciate some help here and some serious answers. I work at a coffe shop and an man came up to me if i could charge his iphone …
The End.