User Profile

Collapse

Profile Sidebar

Collapse
MarshMallow
MarshMallow
Last Activity: Dec 5 '07, 05:13 PM
Joined: Nov 29 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • MarshMallow
    replied to System call error
    in C
    It looks like you didn't pay too much attention to makefiles....
    See more | Go to post

    Leave a comment:


  • the truth must be visible to everyone in this forum,my dear weakness,do not try again to hide the truth;you can make it once,maybe twice...but how long are you supposed to do it?Accept the fact that you are wrong,and PLEASE do not try again to make a thread float down just to make it not visible to the others.
    Say hi to phanepip and begin to study,seriously .
    See more | Go to post

    Leave a comment:


  • 'Father, forgive them, for they do not know what they are doing' " (23:33-34)...
    See more | Go to post

    Leave a comment:


  • MarshMallow
    replied to Finding loop in a binary tree
    in C
    I suggest to use a Depth First Visit algorithm
    See more | Go to post

    Leave a comment:


  • rename n with inputvalue;
    move the while loop before the computation(who y should computation start if the input is not correct?);
    change the comment in "computing the sum of first n integer,where n is the userinput"(this is what your formula 'n(n+1)/2' is supposed to do);
    See more | Go to post
    Last edited by MarshMallow; Dec 3 '07, 09:13 AM. Reason: mistyping variable names

    Leave a comment:


  • MarshMallow
    replied to Name lookup question
    in C
    Code:
    #include <iostream>
    
    void func(int x) { std::cout << x << std::endl; }
    
    class bar
    {
    public:
      void foo() { func(1); }
    };
    
    int main() {
      bar baz;
      baz.foo();
    }
    See more | Go to post

    Leave a comment:


  • The code posted by the instructor is right.let's stop it.
    Taking a C-whatsoeverFAQ as the reference is not a good way to study Oler....
    See more | Go to post

    Leave a comment:


  • Listen Weakness....ple ase be sure you clearly understood what you are talking about before claiming yourself to be right.
    you should know that new operator return an address,and a Transaction object contructed trhrough a new operation is itself a pointer (i.e. the variable stores an address).
    Remember that an array is nothing but a variable,a variable wich represents the first address of a set of contiguous memory blocks;so an array...
    See more | Go to post

    Leave a comment:


  • Please,open Patterson Hennessy,Comput er Architecture:A Quantitative Approach
    Chapter 5:"Compiler Optimizations to ReduceMiss Rate" and read it carefully,very carefully...... .....
    See more | Go to post

    Leave a comment:


  • MarshMallow
    replied to Count words in a txt file
    in C
    Yes OK I understand that your code does not contain any syntax error(because if it had syntax error ,debugger would not even start);but you should use debugger to search for semantic error as well.
    Semantic errors occur when a variable has a value that it should not,or when a variable has a value that it is not expected to have according to the algorithm that you designed.
    Semantic errors are the hardest kind of error to look for,and...
    See more | Go to post

    Leave a comment:


  • MarshMallow
    replied to Count words in a txt file
    in C
    Dev C++ has a nice debugger;while debugging,you can use the "watch variable" option,wich lets you check the value of variables in every moment.
    Dev C++ debugger only works with single file source code;it will not work with a file included in a .dev project file.
    See more | Go to post

    Leave a comment:


  • MarshMallow
    replied to how to download
    in Java
    Take a look at Java documentation,e specially to these classes:
    URLConnection : use method openConnection( );
    BufferedInputSt ream : use method getInputStream( ) read() close()
    FileOutputStrea m: use method write() and close()
    See more | Go to post

    Leave a comment:


  • Never rely to much on C getline if you have to do line-level character computations;us e instead a getchar:getchar fetches a byte from the standard input;you should embed it in a while loop
    Code:
    while (c= getchar() != \n)
     do your computations
    is that clear enough?I hope so
    have a good sunday!
    See more | Go to post

    Leave a comment:


  • MarshMallow
    replied to Köll & Sam Classroom Blog
    in Java
    During my "Object Oriented Programming" class,last year,my professor adopted
    "Core Java" from Cay Horstmann and he even made his lesson slides upon that book.
    I have to say that is a very clear and concise book with all the key java features and technicalities explained through many examples.
    who agrees?
    See more | Go to post

    Leave a comment:


  • that's because the C language uses a row major order matrix representation....
    See more | Go to post

    Leave a comment:


  • MarshMallow
    replied to Digital Signal Processing
    in Java
    I posted the same message twice,sorry
    See more | Go to post
    Last edited by MarshMallow; Dec 1 '07, 04:45 PM. Reason: double posting

    Leave a comment:


  • MarshMallow
    replied to Digital Signal Processing
    in Java
    Let me give you a brief introduction to the frequency domain signal analysis.
    Fuorier transform basically gives you a frequency domain representation of a time domain function .
    Why do we do that?
    Basically the function we want to transform is an input electric signal;most of the times, this signal is a sinusoidal function.
    From the Signal Theory class we know that the response of a linear system to a sinusoidal input(e.g....
    See more | Go to post

    Leave a comment:


  • why in the world do you approach advanced topics like InterProcess Communication if you don't even know what an array is???
    An array variable stores the first addres of a set of contiguous memory locations where a discrete number of bytes(or words,or double words) is stored.the type of an array variable is therefore a pointer.Please read Ritchie and Kernighan ANSI C book...
    See more | Go to post

    Leave a comment:


  • MarshMallow
    replied to strcpy help
    in C
    google for "strcat implementation" and grab the first wikipedia result,you will find a possible implementation of the strcat function
    See more | Go to post

    Leave a comment:


  • I will give you a very valuable suggestion;if you are interested in parsing/scanning topics,you should read Aho,Sethi,Ullma n "Compilers :priciples techinques and tools",but be very careful,this book is known as.....the DRAGON BOOK
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...