Search:

Type: Posts; User: sigur47

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,856

    index 0=44 index 1=3 index 2=2 index 3=+...

    index 0=44
    index 1=3
    index 2=2
    index 3=+
    index 4=8
    index 5=*
    index 6 =+
  2. Replies
    3
    Views
    1,856

    Tokenizing a string

    I am working on a code trying to tokenize a string based on white spaces.I have discovered that when ever i try to copy a char from my untokenised string to my string index array it does not copy.
    ...
  3. When ver i insert an item in evaluate...

    When ver i insert an item in evaluate expressionss,It pushes the item onto the stack But the second time it attempts to push onto the stack,Its not able to do so
  4. Can anyone please help me

    Can anyone please help me
  5. Can anyone please help suggest something

    Can anyone please help suggest something
  6. Thanks typo error.Can you spot anything logically...

    Thanks typo error.Can you spot anything logically wrong in my evaluate expressions method.
  7. evaluating boolean expressions to get a result

    I am writing a program to read a bunch of text and perform boolean operations on it and outputting the result. e.g "T F && T || !" should output false.I have designed my program ,written a parser to...
  8. Replies
    4
    Views
    1,428

    I am confused.Does the printing add extra space...

    I am confused.Does the printing add extra space to the parsed string.
  9. Replies
    4
    Views
    1,428

    Parsing a string

    i am writing a tokenizer to parse a string. e.g"T T && F && !".Every character is separated by space.I have set up my tokeniser to return T,T,&,F,&,!.The problem that i have is that its returning a...
  10. I have found the problem

    I have found the problem
  11. Please can anyone tell me what i am doing wrong

    Please can anyone tell me what i am doing wrong
  12. I did change it but it still has errors.It builds...

    I did change it but it still has errors.It builds fine but fails when i run it
  13. Making a file with a name passed as a parameter

    Hi ,I have a method which makes a file by using the argument list as parameters.The only problem i have is that it does not work.


    void openfile(struct file *p, const char * filename ){

    ...
  14. Getting error while trying to print out a char pointer

    I keep getting run failed when ever i try to print out this character.

    char *c;
    *c='9';

    printf ("%c",*c);
  15. Replies
    3
    Views
    1,293

    Measuring time accurately

    I am working on a project and i am trying to work this out.I have an event that occurs every 16.12356 milliseconds.The problem i have is that i need to use that time to count up to 1 second . so it...
  16. Can someone please explain this hashing funtion for strings

    unsigned int hashpjw(const void *key) {
    const char *ptr;
    unsigned int val;
    val=0;
    ptr=key;

    while (*ptr != '\0') {
    unsigned int tmp;
    val = (val << 4) + (*ptr); ;i dont understand this
    if...
  17. Replies
    4
    Views
    1,117

    Can someone explain this concept to me

    I am currently learning how to use maps and i find a few things confusing
    e.g if i have

    map<string ,vector<string > value;

    1.whats the original size of the map when i declare it
    2.does each...
  18. Replies
    4
    Views
    999

    What about this ...

    What about this


    multimap<vector<string>,string > prefixandsuffix;
  19. Replies
    4
    Views
    999

    Best stl container to use in MY design

    What would be the best stl container to use for designing a markov chain
  20. my question is if the format of the complex...

    my question is if the format of the complex number is not valid,should i adapt my parser to get the best out of the solution
  21. i am sorry,I do not get what you meant by saying...

    i am sorry,I do not get what you meant by saying in the bolded part above
  22. What if i have a string like this " 2.1...

    What if i have a string like this " 2.1 +4.1i20i".Would i need to check to see if the string is a valid complex number
  23. tokenizing and parsing a complex number string

    I am working on a c++ book and currently writing a program to solve complex numbers.The problem i have is that i have to read in a string and tokenize it and parse it to set the real and imaginary...
  24. Replies
    2
    Views
    1,071

    Problem using getLine()

    I am trying to use getline to read in a string but its not working



    #include <cstdlib>
    #include <iostream>
    using namespace std;


    /*
  25. Replies
    2
    Views
    914

    Operator >> confusion

    Hi i am writting a rational number class which has overloaded operators.I am a bit confused woth the isstream operator because i am not sure how it fits in with my code.I want to be able to read in...
Results 1 to 25 of 118
Page 1 of 5 1 2 3 4