Search:

Type: Posts; User: root4

Page 1 of 17 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    483

    Well, there's one way to check quickly: push that...

    Well, there's one way to check quickly: push that code into a file, add what you think is the answer and read the compiler output :-)
  2. Replies
    5
    Views
    760

    Post the part of your code that is reading and...

    Post the part of your code that is reading and that you believe is wrong.
    Also I may misunderstand something but why sizeof(struct forShm)*10 ? you already have your 10 users in 1 forShm structure.
  3. Replies
    5
    Views
    760

    Hello, > I tried to look at some placed but...

    Hello,

    > I tried to look at some placed but didn't find anything relevant.

    Well, if you try "<your platform> shared memory" I'm sure you can find something relevant.

    As for your constraint,...
  4. Replies
    12
    Views
    1,519

    You could try that method indeed but then you...

    You could try that method indeed but then you would have a parsing issue plus a printing issue (printing binary). You could directly read the value as an integer (you can specify that hexadecimal...
  5. Replies
    11
    Views
    1,541

    I would say no, as you see it's not the same...

    I would say no, as you see it's not the same symbol.

    If you're still struggling with this problem, I suggest you ask directly to the package maintainer or someone experienced with matlab...
  6. Replies
    8
    Views
    977

    For what you try to do, you could simply use...

    For what you try to do, you could simply use log10(), or read in a string and use strlen().
    About your loop the problem is that when your value becomes less than 10, your operation ssn = sun % 10...
  7. Replies
    11
    Views
    1,541

    Yes, it's indeed .dylib on OSX, so that should be...

    Yes, it's indeed .dylib on OSX, so that should be fine. I don't understand what's missing :/
    Try to check that the missing symbols are indeed in that binary ($ nm libmex.dylib | grep _mexFunction).
  8. Replies
    11
    Views
    1,541

    Yes, those object files are indeed compiled...

    Yes, those object files are indeed compiled properly, but according to your logs, the linker cannot resolve external symbols for the final step.
    I guess it's because the "mex" library (due to -lmex...
  9. Replies
    11
    Views
    1,541

    _mexFunction and others are likely defined in...

    _mexFunction and others are likely defined in libmex.so (or .a). Are you sure to have that binary? (and in the correct format)
  10. Replies
    4
    Views
    1,800

    Oh right, my bad, I use the "what's new" link and...

    Oh right, my bad, I use the "what's new" link and this time I didn't pay attention to the thread category.

    While waiting for the C# experts (I'm not), I checked online and it looks like you will...
  11. Replies
    4
    Views
    1,800

    The standard solution to your problem is scanf()....

    The standard solution to your problem is scanf(). The first argument is a pattern of your input, other arguments are variables where you store the data itself.
  12. What do you include in the "square root part" of...

    What do you include in the "square root part" of your problem? the computation of 'sqrt_partial' and 'sqrt_solved'? or everything between the input and the final result?
  13. Replies
    10
    Views
    1,808

    Looks ok. Indent your code properly. You can...

    Looks ok.
    Indent your code properly.
    You can merge the two conditionals with a logical 'and' operator (&&).
    Your variable 'm' is unused so far, simply replace 'i' with 'm'.
  14. Thread: Expansion

    by root4
    Replies
    1
    Views
    940

    I suggest you indent you code properly first. ...

    I suggest you indent you code properly first.

    If you're not confident about your code, write *tests*.
    As you have no side effect in your example, it's pretty easy.
    I assume s2 has to be...
  15. Replies
    10
    Views
    1,808

    1. Your assignment gives you explicit names for...

    1. Your assignment gives you explicit names for the objects so use them in your code, that gives a readability bonus (e.g. what you named "a" is "y").
    2. Indent correctly your code.

    You have all...
  16. Replies
    10
    Views
    1,808

    Indeed. You can get some help, here, with...

    Indeed. You can get some help, here, with programming issues, but nobody is going to solve any assignment.
    Work on your problem first, show us some code and possible problems you face, then we'll...
  17. Replies
    10
    Views
    1,808

    Are you joking? please read the forum FAQ.

    Are you joking? please read the forum FAQ.
  18. I left my pocket Oracle at home, please read the...

    I left my pocket Oracle at home, please read the FAQ to state properly your problem next time.

    A quick test shows two minor issues: 1/ [see previous post], 2/ preprocessing directives **are not C...
  19. Post what you have so far.

    Post what you have so far.
  20. It's not an 'if' "function", but an 'if'...

    It's not an 'if' "function", but an 'if' "statement", also called a conditional; you don't need any function.
  21. Replies
    13
    Views
    3,097

    You're welcome.

    You're welcome.
  22. Replies
    13
    Views
    3,097

    Ok. I've edited my previous post to add remarks....

    Ok. I've edited my previous post to add remarks.
    Remember a program is like a recipe, you prepare the ingredients first then you mix them, not the opposite.
    Try to review I/O to understand why your...
  23. Replies
    13
    Views
    3,097

    Stop trying random things... What is this? is it...

    Stop trying random things...
    What is this? is it an assignment? are you trying to learn C++ by yourself? what is the context here?

    ATTEMPT#1
    Same remark than earlier, you need to get the input...
  24. Replies
    13
    Views
    3,097

    We can't guess what you've tried. Post some code.

    We can't guess what you've tried. Post some code.
  25. Replies
    13
    Views
    3,097

    You have to read the input, then call your...

    You have to read the input, then call your function.
    Your instructions are executed by the computer sequentially.
Results 1 to 25 of 405
Page 1 of 17 1 2 3 4