Search:

Type: Posts; User: tosihiro2007

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    1,664

    why dont u use "if" statement? so when the...

    why dont u use "if" statement?
    so when the number gets to 1, the * will not print.
  2. Replies
    3
    Views
    1,324

    Thank you very much for your help!!! I think I...

    Thank you very much for your help!!!
    I think I found errors...
    For the first one, there is no statement to exit the program and for the second one, there is "else if" instead of "if".
  3. Replies
    3
    Views
    1,324

    need help with finding errors

    //question 1
    int main()
    {
    int choice = -1, num1,num2,trials = 0;


    //give the user a max of five trials
    while((choice = -1) && trials <5)
    {
    printf("Enter a number : ");
  4. Replies
    8
    Views
    1,783

    oh yeah I tried that. However, when I ran this...

    oh yeah I tried that. However, when I ran this program, it prints
    Jhn Has 5543535 44 34 43 43 523 23 23 424 .......
    0 0 0 0 0 0 0 0 0 0 0 0 0
    0 0 0 0 0 0 0 0 0 0 0 0 0
    0 0 0 0 0 0 0 0 0 0 0 0 0...
  5. Replies
    8
    Views
    1,783

    hmm... I understand what you are talking about...

    hmm... I understand what you are talking about but, I don't know what type of code I should use...
  6. Replies
    8
    Views
    1,783

    Oh yeah I've got an another problem. Let's...

    Oh yeah I've got an another problem.
    Let's forget about updating. Now, I'm thinking to delete the studentinfo.
    Let's say I want to delete student[0] info, which is Jnh Has' and after that, I want...
  7. Replies
    8
    Views
    1,783

    hmm... which file type should i use? and could...

    hmm... which file type should i use?
    and could you tell me how to rewrite the file?
  8. Replies
    8
    Views
    1,783

    updating a specific data in the file

    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <conio.h>
    #define MAX 200




    void getinfoStudent();
  9. Thread: file

    by tosihiro2007
    Replies
    4
    Views
    753

    I think I fixed it by myself....

    I think I fixed it by myself....
  10. Replies
    3
    Views
    769

    nvm i got it

    nvm i got it
  11. Replies
    3
    Views
    769

    building a function

    flag = 1;
    while(flag == 1)
    {
    printf("What is the student's Assignment 1 mark? :");
    scanf("%d",&a1);


    if(a1>100||a1<0)
    {
    printf("Invalid mark. Please enter again\n");
  12. Replies
    2
    Views
    866

    Oh my god.... Oh yeah!! You are absolutely right!...

    Oh my god.... Oh yeah!! You are absolutely right! I was being stupid haha.
    Thank you very much for your help!
  13. Replies
    2
    Views
    866

    comparing integers

    flag = 1;
    while(flag == 1)
    {
    printf("What is the student's Assignment 1 mark? :");
    scanf("%d",&a1);


    if((a1>100)&&(a1<0))
    {
    printf("Invalid mark. Please enter again\n");
  14. Thread: file

    by tosihiro2007
    Replies
    4
    Views
    753

    file

    I'm trying to append a txt file which I created by using C program.
    I manually wrote some information into that txt file and now it has 5 filled up information. This file can hold up to 20...
  15. Replies
    7
    Views
    1,184

    What do u mean by fscanf() returned the proper...

    What do u mean by fscanf() returned the proper number of items scanned?
  16. Replies
    7
    Views
    1,184

    void addstudentInfo() { int i; FILE *fp; ...

    void addstudentInfo()
    {
    int i;
    FILE *fp;


    fp = fopen("studentinfo.txt","a+");


    if (fp == NULL) {
  17. Replies
    7
    Views
    1,184

    Well.... I don't know how to deal with null value...

    Well.... I don't know how to deal with null value and existed value so, I haven't made any coding yet
  18. Replies
    7
    Views
    1,184

    need help with structure and file

    Hi. I'm trying to add more student information to the specific txt file.
    I did struct my student information and separated it with an array with max size of 200.

    The inside of my current file...
  19. Replies
    4
    Views
    974

    my file is txt file

    my file is txt file
  20. Replies
    4
    Views
    974

    Structure and file

    void getinfoStudent()
    {


    system("cls");
    int studentnum, i, j = 0;
    printf("Please type the student number to look at the student's information: ");
    scanf("%d",&studentnum);
  21. Replies
    2
    Views
    849

    Sorry>< I posted wrong code Could any mod delete...

    Sorry>< I posted wrong code
    Could any mod delete this thread? so I can create new one
  22. Replies
    2
    Views
    849

    Structure and reading file

    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <conio.h>
    #define MAX 200




    void getinfoStudent();
  23. Replies
    4
    Views
    1,452

    Thx guys!! Btw I thought this was C++ problem....

    Thx guys!! Btw I thought this was C++ problem....
  24. Replies
    4
    Views
    1,452

    BEEP function

    #include <iostream>
    #include <windows.h>
    #include <iomanip>


    using namespace std;


    void a();
    void b();
  25. Replies
    4
    Views
    1,181

    I guess my OS is windows 7.

    I guess my OS is windows 7.
Results 1 to 25 of 40
Page 1 of 2 1 2