User Profile

Collapse

Profile Sidebar

Collapse
xtoma
xtoma
Last Activity: Apr 22 '15, 03:59 AM
Joined: Feb 20 '15
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • xtoma
    started a topic error in location
    in C

    error in location

    i have this problem
    i insert 10 as first location then 20 and 30
    when i run the program it give me error in location
    10 30 20

    the error may be in insert can you give me hints for this
    thank you in advance

    Code:
     Node * List::InsertNode (int index , double x)
     {                
                          if (index < 0 )return NULL;
                          int currlndex = 1 ;
    ...
    See more | Go to post

  • xtoma
    replied to class does not name a type error
    in C
    Got it! Now it is crystal to me
    See more | Go to post

    Leave a comment:


  • xtoma
    replied to class does not name a type error
    in C
    yes the classes begin with a capital C
    See more | Go to post

    Leave a comment:


  • xtoma
    started a topic class does not name a type error
    in C

    class does not name a type error

    I have two classes declared as below
    Code:
    #include<iostream>
    using namespace std;
    Class Node
    {
          double data;
          Node* Next;
          };
    Class List
    {
    public:
           bool ISEmpty()
           {
                return head == NULL;  //return function  value ,determine if empty or not
           }
          Node*InsertNode(int index,double x); //procedure:
    ...
    See more | Go to post

  • xtoma
    replied to What is mean error?
    in C
    thank you for reply weaknessforcats
    See more | Go to post

    Leave a comment:


  • xtoma
    started a topic What is mean error?
    in C

    What is mean error?

    hello,
    when i execute my program .
    appear to me this errors
    can you explain for me?

    thanks in advance

    [Error] expected initializer before 'int'
    [Error] 'i' was not declared in this scope


    Code:
    	void Queue::display()
    	
    	
    	int i;
    	
    	for( i=front;i<=rear;i++)
    	{
    		cout<<items[i]<<" ";
    ...
    See more | Go to post

  • xtoma
    replied to total of students by using two array ??
    in C
    #include<iostre am>
    using namespace std;
    int main()
    {
    int c=0,pos=-1,i,n,x;
    int day[i];
    int attended[i];

    cout<"please,en ter the number of element in array";
    cin>>n;
    cout<<"please,e nter week days";
    for(i=0;i<=n;i+ +)
    cin>>day[i];
    cout<<"The number of students in every...
    See more | Go to post

    Leave a comment:


  • xtoma
    replied to total of students by using two array ??
    in C
    well, i want to execute program by using binary search. two correlation array ,so that it appears to me that number of days and number of attendees each day and exact day on which was attended by 30 students ,so it may be monday or sunday .


    array[attendees]
    array[days]

    like this
    See more | Go to post

    Leave a comment:


  • xtoma
    started a topic total of students by using two array ??
    in C

    total of students by using two array ??

    my program should display each day of the week the number of students attended to the class and show me the total which day 30 students were present in the class specific the day by using searching
    i don't know if my program is true or not
    can you give me some hints ..


    .....


    #include<iostre am>
    using namespace std;
    int main()
    {
    int c=0,pos=-1,i,n=5,x;...
    See more | Go to post

  • xtoma
    replied to this error"too many arguments to function"
    in C
    expected primary-expression before &quot;else&quot ;

    Code:
    if(A[j]>A[j+1])
                 swap(A);
                 {  
                           temp=A[j];
                           A[j]=A[j+1];
                           A[j+1]=temp;
                           }
                           }
                           }
                           cout<<"element befor sorte are:"<<endl;
    ...
    See more | Go to post
    Last edited by Stewart Ross; Feb 21 '15, 09:41 AM. Reason: added code tags for you

    Leave a comment:


  • xtoma
    started a topic this error"too many arguments to function"
    in C

    this error"too many arguments to function"

    I am trying to compile bubble sort program and i get a error message back. "In function ... too many arguments to function. What does this mean?
    can you give me the soultion

    ...
    #include<iostre am>
    using namespace std;
    void swap ( int A[]);

    int main()
    {
    int n,i,j;
    int A[4];
    int temp;
    cout<<"please,e nter size of element in array";...
    See more | Go to post
No activity results to display
Show More
Working...