C programming Symbol Table

How to write a program to create symbol table

Page 1 of 1

6 Replies - 25412 Views - Last Post: 18 April 2010 - 04:27 AM Rate Topic: -----

#1 sunilkumarnanda  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 20-February 09

C programming Symbol Table

Post icon  Posted 20 February 2009 - 11:10 PM

how to write program in C or C++ to create a symbol table. this is a question from RTU Kota. Please any one can provide me the source code for the same
Is This A Good Question/Topic? 0
  • +

Replies To: C programming Symbol Table

#2 BetaWar  Icon User is offline

  • #include "soul.h"
  • member icon

Reputation: 1147
  • View blog
  • Posts: 7,134
  • Joined: 07-September 06

Re: C programming Symbol Table

Posted 20 February 2009 - 11:11 PM

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: :code:

Thanks.
Was This Post Helpful? 1
  • +
  • -

#3 dinesh chabra  Icon User is offline

  • New D.I.C Head

Reputation: -5
  • View blog
  • Posts: 2
  • Joined: 15-December 09

Re: C programming Symbol Table

Posted 18 April 2010 - 02:55 AM

plz send me code of symbol table in c++
Was This Post Helpful? -1
  • +
  • -

#4 zero_cool1  Icon User is offline

  • New D.I.C Head

Reputation: 8
  • View blog
  • Posts: 32
  • Joined: 25-January 10

Re: C programming Symbol Table

Posted 18 April 2010 - 03:21 AM

What do you mean be the Symbols?

Do u mean ascii table?

This post has been edited by zero_cool1: 18 April 2010 - 03:21 AM

Was This Post Helpful? 0
  • +
  • -

#5 spintronic  Icon User is offline

  • D.I.C Head

Reputation: -32
  • View blog
  • Posts: 94
  • Joined: 25-December 09

Re: C programming Symbol Table

Posted 18 April 2010 - 04:18 AM

View Postdinesh chabra, on 18 April 2010 - 01:55 AM, said:

plz send me code of symbol table in c++



compile this

#include<stdlib.h>
#include<stdio.h>
#include <iostream>
#include <conio.h>
using namespace std;

void main()
{

char a;

int i;

for(i=0;i<255;i++)
{
a = i;
   cout<<"\nSymbol "<<i<<" = "<<a;
}

_getche();
}


This post has been edited by spintronic: 18 April 2010 - 04:37 AM

Was This Post Helpful? 0
  • +
  • -

#6 janotte  Icon User is offline

  • code > sword
  • member icon

Reputation: 990
  • View blog
  • Posts: 5,141
  • Joined: 28-September 06

Re: C programming Symbol Table

Posted 18 April 2010 - 04:25 AM

Just a bit of coding advice to take into account when you write your code.
"void main()" is wrong. Always use "int main()".
Read here the words of the man who invented C++:
http://www.research.....html#void-main
Can I write "void main()"?
The definition
void main() { /* ... */ }
is not and never has been C++, nor has it ever been C. See the ISO C++ standard 3.6.1[2] or the ISO C standard 5.1.2.2.1.

Was This Post Helpful? 0
  • +
  • -

#7 spintronic  Icon User is offline

  • D.I.C Head

Reputation: -32
  • View blog
  • Posts: 94
  • Joined: 25-December 09

Re: C programming Symbol Table

Posted 18 April 2010 - 04:27 AM

View Postjanotte, on 18 April 2010 - 03:25 AM, said:

Just a bit of coding advice to take into account when you write your code.
"void main()" is wrong. Always use "int main()".
Read here the words of the man who invented C++:
http://www.research.....html#void-main
Can I write "void main()"?
The definition
void main() { /* ... */ }
is not and never has been C++, nor has it ever been C. See the ISO C++ standard 3.6.1[2] or the ISO C standard 5.1.2.2.1.


Why Thank You!!!!!!!! :bananaman:
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1