Hard to break it, but I did.
This doesn't seem to break:
#include <iostream>
#include <math.h>
using namespace std;
int main(){
Type: Posts; User: Kudose
Hard to break it, but I did.
This doesn't seem to break:
#include <iostream>
#include <math.h>
using namespace std;
int main(){
Thanks!
Not sure what this means.
Referring to previously working code, I fixed it with this:
#include <iostream>
I've got a logic error in here and I am having trouble figuring it out.
Can someone please point out the obvious as I cannot see it.
#include <iostream>
#include <math.h>
using namespace...
It's perfectly fine that it's all messed up. It's a part of learning. How are you teaching yourself C++?
Sorry for all the posts ... how are you learning C++? Your program is more mangled than any other I've ever seen.
For your switch, you are testing for product which hasn't been assigned a value.
Your right (rvalue) and left (lvalue) values are switched.
int ans1 = A + B;
int ans2 = C + D;
int ans3 = ans1 + ans2;
The rvalue should be where you do your equations and the lvalue should...
I had to bite my tongue when I saw a post from someone in a developing country asking for the complete code from people they are taking jobs from.
Just because he/she didn't spell it out for you doesn't mean he/she didn't point you in the right direction.
Thanks!
Would you allow any of this code to be previewed?
Useful link: The LEX & YACC Page
I have not proceeded to document anything yet. I was waiting to learn a little more about the process and tools available. I have a good idea of what syntax and features (dynamic typing, object...
References to those books are what I am asking for.
I appreciate your responses. I would like to create a simple interpreter. Like PHP3 or Python 1.0 or Perl 1. Granted the three languages are vastly different at the stages mentioned, but they all...
I get the jist of what an interpreted language is ... a source program fed through another program to generate or execute input/output. I guess I am looking for advice or resources on how to create...
So what you're basically saying, brewbuck, is that they invented it and there is no way to have learned how to do it in a book ... ?
I think the answer is not that they used "a book", but that...
Thanks for your answer and that book looks interesting. I hadn't found mention of it elsewhere.
I find that hard to believe. They had to have read something. PHP is/was written in C, so they had to have learned C and read a few C books.
I would like to create an interpreted language for personal use (who knows where it would go) that would have similar language syntax to PHP and Python using C++. Mainly because I love PHP syntax...
Granted that book is a bit dry, I think the writer knows what he's talking about, since he created C++.
Is there a way to rename my squareroot to sqrt which calls the std libraries sqrt?
That package was missing a couple files Code::Blocks needs so I downloaded the MinGW installer 5.1.4 and when to Settings -> Compiler and Debugger ... Clicked the Toolchain tab and altered the MinGW...
Thanks, I'll give that a shot before I abandon Code::Blocks.
I think I am going to use a different IDE ... changing any options in Code::Blocks eats up 50% of all 4 of my processor cores and takes 5 seconds to open. Also, after I changed the compiler I can no...