#include<iostream.h>
class cell {
int disc;
cell *next;
cell (int d)
{
disc = d;
next = this;
Type: Posts; User: Wizard_D
#include<iostream.h>
class cell {
int disc;
cell *next;
cell (int d)
{
disc = d;
next = this;
int decr(int a)
{
a--;
if(a<0)
a=2;
return a;
}
int incr(int a)
{
If you didn't know how to convert thats all you had to say. Heck you didnt need to put your two cents in at all.
Also give me some examples of some highschools that give this question for a...
I said I have NOT been in a C++ class before and have not worked with C++ before.
#include<iostream.h>
class cell {
int disc;
cell *next;
cell (int d)
{
disc = d;
next = this;
#include<iostream.h>
class cell {
int disc;
cell *next;
cell (int d)
{
disc = d;
next = this;
The C++ version of the Code ended up working.
The prob that i came across with your version was that all your push and pop and such were not correct, that and your rear was not declared.
Quzah you the star and we all just following your lead. Will you do it though?
Thanks
Can anyone translate this into C?
#include<iostream.h>
class cell {
int disc;
cell *next;
Thanks a bunch
What is the name of the file that will print to screen when using fprintf?
If you were wondering why i don't just use printf is because i am sending a function some values and to test it i just...
LOL. I have doubts that anyone will be able to answer that question. That is pretty tough without the use of recursion.
You should not call main within itself. If you are going to use recursion(it should be done within a sub function);
one thing to remember is that if you are going to use recursion is that if you...
Make a copy of what is in a stack.
No not copy the pointer.
But i mean actually copy everything in a stack to another stack minus the same pointer locations. All while not altering the original...
Does anyone truly understand how the ALU works? yeah i know it is able to add/subtract/div/mult all by addition but how? What is the way in which you can divide by adding?
Thanks.
I am Puzzled
You wouldnt happen to have the header files and the main you used would U??
I am not seeing were some of your classes are coming from ie Tokens etc.
Thanks
Is there a difference between PostFix notation and RPN??
How about the code that would take the infix expression and give you the post fix expression in return?
ms visual c++ 6 is the best and you can get a fully functional tutorial version that never expires if you buy a C++ tutorial package that comes with the book C++ in 24 hrs. I lovems visual c++ 6 its...
Does anyone have the code readily available for RPN??
Just incase you are wondering what RPN is, It is what the compiler sees when you enter a line like 5+2 which it would see
5 2+ or something...
you would use a for loop
first print the first 2 numbers
for (i=0; i<total;i++)
{
num3=num1+num2;
num1=num2;
num2=num3;
// then just your printout being num3
using namespace std;
I have no idea what the importance of the above is.
Thanks
There is really only one way to become a security expert and that is to be on the other side first...
ya gotta be able to create things in order to know how to stop them.
Does anyone know of some good DOS(win 98)/ commandline(2000) tutorials. I need something that will help with things from the basic to the most complicated things. Thanks
That seems like a hard question for someone that has not done anything previously in programming.
Bear don't get discouraged it will all come.