• Member Avatar for castajiz_2
    castajiz_2

    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') …
  • Member Avatar for castajiz_2
    castajiz_2

    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
  • Member Avatar for castajiz_2
    castajiz_2

    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') …
  • Member Avatar for castajiz_2
    castajiz_2

    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') …
  • Member Avatar for castajiz_2
    castajiz_2

    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 …
  • Member Avatar for castajiz_2
    castajiz_2

    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 …
  • Member Avatar for castajiz_2
    castajiz_2

    Replied To a Post in can' t get string keyword in dev-c++ 5.5.3(windows8)

    it came with the package
  • Member Avatar for castajiz_2
    castajiz_2

    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 …
  • Member Avatar for castajiz_2
    castajiz_2

    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 …
  • Member Avatar for castajiz_2
    castajiz_2

    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 …
  • Member Avatar for castajiz_2
    castajiz_2

    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 …
  • Member Avatar for castajiz_2
    castajiz_2

    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 …
  • Member Avatar for castajiz_2
    castajiz_2

    Replied To a Post in Array with random

    Please post some code, it s really hard to think without seeing the actual code
  • Member Avatar for castajiz_2
    castajiz_2

    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 …
  • Member Avatar for castajiz_2
    castajiz_2

    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 …
  • Member Avatar for castajiz_2
    castajiz_2

    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 …
  • Member Avatar for castajiz_2
    castajiz_2

    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 …
  • Member Avatar for castajiz_2
    castajiz_2

    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 …
  • Member Avatar for castajiz_2
    castajiz_2

    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 …
  • Member Avatar for castajiz_2
    castajiz_2

    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 …
  • Member Avatar for castajiz_2
    castajiz_2

    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.