Thread: char error

  1. #1
    Registered User
    Join Date
    Jun 2012
    Posts
    21

    char error

    [code]int main(){int i,n;char c;int j,m,d;j=0;char**tab;printf("enter the value of n:\n");scanf("%d",&n);l;tab=(char**)malloc(n*sizeo f(char*));for(i=0;i

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    You really need to work on your code posting skills!
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Dec 2011
    Posts
    795
    Okay, dude, because you can't figure it out after five tries, I'll try to help you..

    You need a code tag at the beginning at the code, and a end-code tag at the end of the code. It will look like this (remove the periods):
    [.code]
    /* your code here */
    [./code]
    It will look like this:
    Code:
    /* your code here */
    You don't need [.tag][./tag].

  4. #4
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,817
    Use [noparse][/noparse] to encompass tags you do not want to have parsed (which I needed to use noparse on to get them to come out right). You can do so with [code][/code] tags as an example without needing to resort to periods and things like that.
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

  5. #5
    Registered User
    Join Date
    Jun 2012
    Posts
    21
    thank's friends for help i will better in next time

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. char as int error
    By Lesshardtofind in forum C++ Programming
    Replies: 10
    Last Post: 07-10-2009, 02:22 AM
  2. Replies: 9
    Last Post: 07-07-2006, 11:03 AM
  3. Const Char to Char Error
    By stickman in forum C++ Programming
    Replies: 36
    Last Post: 08-29-2004, 01:07 PM
  4. Replies: 6
    Last Post: 04-14-2002, 11:25 AM
  5. error: cannot convert from 'char [13]' to 'char [20]'
    By Unregistered in forum C Programming
    Replies: 7
    Last Post: 04-10-2002, 09:08 PM