Search:

Type: Posts; User: Ron

Page 1 of 7 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: Set of questions.

    by Ron
    Replies
    34
    Views
    3,741

    Hmmmm//// So how do I link the back to the...

    Hmmmm////
    So how do I link the back to the front.i.e. if the array is full, front pointer moves position+1,back is assigned to position.
  2. Thread: Set of questions.

    by Ron
    Replies
    34
    Views
    3,741

    This looks very comlicated. I just want to know...

    This looks very comlicated. I just want to know how the strings shift positions as new strings are added into the array and the array is getting full.
  3. Thread: Set of questions.

    by Ron
    Replies
    34
    Views
    3,741

    How can I create a circular array , push the new...

    How can I create a circular array , push the new strings from rear and pop the first strings?

    eg: char *s[10]; Like a queue, but with no nodes?
  4. Thread: Set of questions.

    by Ron
    Replies
    34
    Views
    3,741

    Ooops

    Ooops
  5. Thread: Set of questions.

    by Ron
    Replies
    34
    Views
    3,741

    How will that put the words in ascending order?...

    How will that put the words in ascending order? Im sure strcmp does not have > or < .
  6. Thread: Set of questions.

    by Ron
    Replies
    34
    Views
    3,741

    Did not understand, I am comparing a list of...

    Did not understand, I am comparing a list of different words and arranging them in ascending order. How can I do this without comparing each character?
  7. Thread: Set of questions.

    by Ron
    Replies
    34
    Views
    3,741

    Hmmmm so can I do this.... x=y

    Hmmmm
    so can I do this.... x=y<<4
    z=y>>4;
    y=x+z;
    its very amateurish.....

    Also, how do I arrange words in ascending order in an array...
  8. Thread: Set of questions.

    by Ron
    Replies
    34
    Views
    3,741

    so by just doing x=y

    so by just doing x=y<<2^2, swap or would it just shift the last 4 digits leaving the rest as 0?
    eg:01000101 swap as in 01010100
    or
    01000101 shift as in 01010000
    ...
  9. Thread: Set of questions.

    by Ron
    Replies
    34
    Views
    3,741

    So u mean to say if unsigned char value is...

    So u mean to say if unsigned char value is 00000045, it should be swapped as 45000000. Is this what the question is asking?
  10. Thread: Set of questions.

    by Ron
    Replies
    34
    Views
    3,741

    Ok Heres another question: "Write a function,...

    Ok Heres another question:
    "Write a function, unsigned char exchange(unsigned char in),
    which exchanges the right 4 bits of an unsigned char with its left 4 bits (e.g. exchange(0x54) will return...
  11. Thread: Set of questions.

    by Ron
    Replies
    34
    Views
    3,741

    I did not understand the explanation for the 4th...

    I did not understand the explanation for the 4th question.
  12. Thread: Set of questions.

    by Ron
    Replies
    34
    Views
    3,741

    Set of questions.

    I have a set of questions that may be asked for my exams. Can anyone tell me the solutions to this?

    Q1)


    What is the problem with the following copy?
    char *s1 = “hello”;
    char *s2;...
  13. Replies
    4
    Views
    11,426

    Errors mystring.hpp:49: error: destructors...

    Errors


    mystring.hpp:49: error: destructors may not have parameters
    mystring.hpp: In constructor `mystring::mystring()':
    mystring.hpp:40: error: expected primary-expression before '->' token...
  14. Replies
    4
    Views
    11,426

    IM getting a long list of compile erros

    IM getting a long list of compile erros
  15. Replies
    4
    Views
    11,426

    Can you check what is wrong with this code

    Header file




    #ifndef STRING_HPP
    #define STRING_HPP

    #include <iostream>
  16. Thread: Classes

    by Ron
    Replies
    9
    Views
    1,272

    im still getting the same error in the...

    im still getting the same error in the constructor for both theString and size
    error:expected primary-expression before '->' token
  17. Thread: Classes

    by Ron
    Replies
    9
    Views
    1,272

    hmmm.. so another question, in the operator +...

    hmmm.. so another question, in the operator + when Im working with the 'this'. would the syntax be this.theString or this->theString?
  18. Thread: Classes

    by Ron
    Replies
    9
    Views
    1,272

    I think I got what your saying, thanks to...

    I think I got what your saying, thanks to tabstop.

    Also, my 1st constructor is giving problems.
  19. Thread: Classes

    by Ron
    Replies
    9
    Views
    1,272

    What is free functions? As I am not using the...

    What is free functions?
    As I am not using the string class, I have to define a function with operator overloading. My function definitions such as mystring& operator+(const mystring &string1, const...
  20. Thread: Classes

    by Ron
    Replies
    9
    Views
    1,272

    Classes

    Hey Im having a problem with passing arguments into a function from a class.This is my program with just prototypes and function calls. I am confused when to pass by pointer and by reference.
    ...
  21. Replies
    5
    Views
    1,512

    So can I change the contents of the struct object...

    So can I change the contents of the struct object with * or &? Also, in the function definition, the object will be defined with its class name or struct name?

    eg
    myString* myclass...
  22. Replies
    5
    Views
    1,512

    c ++ passing a pointer into a function

    What is the difference between passing a pointer* of an object to a function; and passing &object to a function?
  23. Thread: reading in a file

    by Ron
    Replies
    3
    Views
    1,059

    I wanted to delete this post. Ive already fix the...

    I wanted to delete this post. Ive already fix the issue.
  24. Thread: reading in a file

    by Ron
    Replies
    3
    Views
    1,059

    reading in a file

    Hey...
    I am having a problem. If I just fscanf a file, with no operations inside, there is no problem. But if I have some operations inside, and I type in a statement like printf(test)just after...
  25. Thread: Please translate

    by Ron
    Replies
    24
    Views
    6,019

    OK, I finally figured what wrong. In the for loop...

    OK, I finally figured what wrong. In the for loop I just assigned p to a prevptr, before doing any changes to p pointer. Every time I make the content of the node free, or malloc it, I label the node...
Results 1 to 25 of 154
Page 1 of 7 1 2 3 4