User Profile

Collapse

Profile Sidebar

Collapse
nurulshidanoni
nurulshidanoni
Last Activity: Jan 22 '08, 02:57 AM
Joined: Sep 24 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • nurulshidanoni
    replied to how to store data
    in C
    Code:
       
    #include<iostream>
    #include<fstream>
    using namespace std;
    
    int main()
    {
                ifstream stream1("Standrews83.txt");
                char a[139];
                if(!stream1)
    {
                cout << "While opening a file an error is encountered" << endl;
    }
                else
    {
                cout << "File
    ...
    See more | Go to post

    Leave a comment:


  • nurulshidanoni
    started a topic how to store data
    in C

    how to store data

    i hava a data

    student id examcode
    1 002
    006
    001
    2 123
    589

    How to store data when it have two data in 1 foleslike above? in .txt ot .cpp?

    and how can c++ called the data?
    See more | Go to post

  • nurulshidanoni
    started a topic conflict matrix
    in C

    conflict matrix

    Dear all,

    my algorith is like this

    while(mor students)
    read studentID
    countexam=0
    while (more examination)
    read examcode
    examID =get ExamID (examCode)
    Incerement Count exam
    Exam List [Count Exam]=ExamID
    endwhile
    for(i=1 to Count Exam-1) do
    for (j=i to count exam) do
    if (i!=j)
    Increment conflict value of row Exam List [i] and column Exam...
    See more | Go to post

  • nurulshidanoni
    replied to How to choose one element from each array
    in C
    Why must total=0;?

    and why == ?

    Code:
    printf("total is 10");
    }
    total=0;
    }
    See more | Go to post

    Leave a comment:


  • nurulshidanoni
    replied to How to choose one element from each array
    in C
    Code:
    //total up the array
    //total + = total + a[i]
    total += a[i]
    but, tehre is b,c,d,e,f ..i diont know ho w to do
    See more | Go to post

    Leave a comment:


  • nurulshidanoni
    started a topic How to choose one element from each array
    in C

    How to choose one element from each array

    How to choose one element from each array., Which A(i)+B(i)+C(i)+ D(i)+E(i)+F(i) must equal to 10.

    _______________ _______________ _______________ _____
    i A B C D E F
    _______________ _______________ _______________ _____
    1 3 2 3 3 2 4
    _______________ _______________ _______________ _____

    2 6 9 4 24 5 7
    _______________ _______________ _______________ _____

    3 11 28 5 81 10 12
    ...
    See more | Go to post

  • nurulshidanoni
    replied to iterated local search
    in C
    How to write matehmatic equation in c++. Like Summation
    See more | Go to post

    Leave a comment:


  • nurulshidanoni
    replied to iterated local search
    in C
    i A B C D E F
    1
    2
    3
    4
    5
    6

    Giben above, how to get the summation of A, B, C, D, E,F is equal to 10?
    From each array, must chose only.
    See more | Go to post

    Leave a comment:


  • nurulshidanoni
    replied to iterated local search
    in C
    If I have get the initial solution in array B which is 2, then how tu move to the next step. Ignore array B, and look the min value in array A, C,D, E, F.

    A B C D E F
    _ _ _ _ _ _
    3 2 1 3 2 4
    6 9 7 24 5 7
    11 28 17 81 10 12
    18 65 31 192 17...
    See more | Go to post

    Leave a comment:


  • nurulshidanoni
    replied to iterated local search
    in C
    Is it true minimum or A[minA]?

    cout <<"\n";
    if (flagB = 1)
    cout<< "Initial solution in B: " <<minimum << "."<<endl;
    else
    cout<< "Initial solution in A: " <<minimum << "."<<endl;

    return 0;
    }
    }
    See more | Go to post

    Leave a comment:


  • nurulshidanoni
    replied to iterated local search
    in C
    Why did the bold produce number 0?
    [code=cpp]
    #include <iostream>
    #include <cstdlib>
    #include <cmath>
    #include <cstdio>
    #include <ctime>
    using namespace std;

    int i;
    int x[7];
    int A[7], B[7], C[7], D[7], E[7], F[7];
    // The members of the array int minimum = numbers[0] ;
    int minimum, minA, minB, flagB;
    int main(void)
    ...
    See more | Go to post
    Last edited by sicarie; Nov 7 '07, 03:15 AM. Reason: Code tags

    Leave a comment:


  • nurulshidanoni
    replied to iterated local search
    in C
    i got compiler error, cout<< E[i]
    but if(printf[%d][%d] E[%d]), but in c++, dont have %d?So how to write/
    See more | Go to post

    Leave a comment:


  • nurulshidanoni
    replied to iterated local search
    in C
    printf("[%d][%d] E[%d]=%d\n", i, 5, i, E[i]);

    if i write cout << E[i], is wrong, I am confuse with a %d , i,5,i, E[i]..how to write/
    See more | Go to post

    Leave a comment:


  • nurulshidanoni
    replied to iterated local search
    in C
    printf("[%d][%d] E[%d]=%d\n", i, 5, i, E[i]); how to write in c++?
    See more | Go to post

    Leave a comment:


  • nurulshidanoni
    replied to iterated local search
    in C
    How to change #include <conio.h> into c++? is itlike that #include <cconio>?

    Actually, what is conio? an onion?huhuhu,,I really dont know.

    and , how to change printf("[%d][%d] E[%d]=%d\n", i, 5, i, E[i]);
    See more | Go to post

    Leave a comment:


  • nurulshidanoni
    replied to iterated local search
    in C
    Why the output is 0 , even thought there is no 0 in the array?
    [code=c]
    #include <iostream>
    #include <conio.h>
    #include <cstdlib>
    #include <cmath>
    #include <cstdio>
    #include <ctime>
    using namespace std;

    int i;
    int x[7];
    int A[7], B[7], C[7], D[7], E[7], F[7];
    // The members of the array int minimum = numbers[0] ;
    ...
    See more | Go to post
    Last edited by pbmods; Nov 6 '07, 01:01 AM. Reason: Added CODE tags.

    Leave a comment:


  • nurulshidanoni
    replied to iterated local search
    in C
    i use c++.

    The important is how to correct?
    See more | Go to post

    Leave a comment:


  • nurulshidanoni
    replied to iterated local search
    in C
    How to correct the error of the bold?
    error C2061: syntax error : identifier 'cout'
    Error executing cl.exe.

    147.exe - 1 error(s), 0 warning(s)



    [code=c]
    #include <iostream>
    #include <conio.h>
    #include <cstdlib>
    #include <math.h>
    #include <stdio.h>
    #include <time.h>
    using namespace std;

    int...
    See more | Go to post
    Last edited by pbmods; Nov 5 '07, 01:31 AM. Reason: Added CODE tags.

    Leave a comment:


  • nurulshidanoni
    replied to iterated local search
    in C
    i use c++, I,m the beginner still study about c++. If i have a mistake, let me know, because I dont know the rules of c++.

    My qustion is ihave an upper bound and lower bound ; 0<=i<=10, how to write in c++?
    See more | Go to post

    Leave a comment:


  • nurulshidanoni
    replied to iterated local search
    in C
    If I have the uppe bound and lower bound; 1<=i<=10, how to write in language programming c++?
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...