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 :-)
Type: Posts; User: root4
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 :-)
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.
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,...
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...
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...
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...
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).
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...
_mexFunction and others are likely defined in libmex.so (or .a). Are you sure to have that binary? (and in the correct format)
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...
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.
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?
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'.
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...
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...
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...
Are you joking? please read the forum FAQ.
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...
Post what you have so far.
It's not an 'if' "function", but an 'if' "statement", also called a conditional; you don't need any function.
You're welcome.
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...
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...
We can't guess what you've tried. Post some code.
You have to read the input, then call your function.
Your instructions are executed by the computer sequentially.