Yes, I'm sure, the compiler says so, but now I have an another solution : Using sprintf to format the pointer value, and finally strtol to convert string value to an unsigned value. Maybe the problem is "different compilers" :)
EDIT : Better solution I may use union structure... -> And the problem has been completely solved :)
Now I'm trying to make this :
char chr = strcpy(string, "abcde")[3];
Similar expression :
1 2
strcpy(string, "abcde");
char chr = string[3];
That's a more complex expression.
STRCPY returns char*, so also you may place an element request to access ith array item. It's pretty complex because the main pointer is void*, so I have no idea how to dereference an array and access exactly a specific element with position in different ways (char short etc)...
Are we also going to explain you how if's, for's and while's work? Have you ever practiced on simpler tasks? You don't even know how to cast a pointer.
lol the post count for this thread is insane i saw this when it first started and yall were just killing JM for being stupid and stuff lol i say good job JM for not loseing hope no matter what
The thread didn't just grow up with "stop the thread"-requests. It also contains questions, answers, and status report (of which we aren't caring as we don't even use that program actually - no links to it (I'm not blaming huh))
That's about conditional expression, IF-WHILE-FOR, but currently I'm not going to implement this now...
Can anyone explain the FOR expression? In my opinion it's pretty complex (in short : crazy). Actually I don't fully understand it. Let me know how actually it looks like. :)
a: code to run before the loop starts
b: code that could go inside an if(), the loop keeps running as long as it is true
c: code to run after each iteration of the loop
d: code to run each iteration of the loop
Example:
1 2 3 4 5 6 7 8 9 10
for(unsigned i = 0; i < 10; ++i)
{
std::cout << i << std::endl;
}
How do you know how far into the project you are? I mean, an estimate I could understand, but you seem to believe that you know it exactly, to four significant figures, which seems like bull to me. Can you post your entire code somewhere? I want to see this thing even if it doesn't actually work, because right now, all you've posted is code snippets that don't seem like part of an interpreter, some that don't even compile, and some that seem to show that you don't have a clue how even the most basic constructs of the language you're using work (let alone the language you're supposedly interpreting). I'm at least 55.69% sure that you haven't actually written an interpreter at all, and I'm more than 55.69% sure you'll just ignore this comment or deflect it by saying "I'm not going to release it until I'm 60.00% done" or "It's too much code to post" or "You won't like it" or some other crap. And then, if and when you "reach" 60.00%, you'll just extend it again: "I'm not going to release it until it's 61.81% actually".