User Profile

Collapse

Profile Sidebar

Collapse
cool17
cool17
Last Activity: Nov 7 '06, 01:00 PM
Joined: Oct 4 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • cool17
    started a topic Question on array?
    in C

    Question on array?

    Hi when i run the code it did not show me anything, is there anything that i had missed out or what? Thank for the help

    Code:
    #include<stdio.h>
    #define N_ELEMS 5
    void main(void)
    {
    	int array[N_ELEMS];
    	int i;
    	
    	for(i=0;i<N_ELEMS;i++)
    		array[i]=i;
    	
    	for(i=0;i<N_ELEMS-1;)
    		array[++i]++;
    }
    See more | Go to post

  • cool17
    replied to Switch case
    in C
    but i am including another file that i had recreated which is call expression.h as my ADT... i am using C compiler. Thank...
    See more | Go to post

    Leave a comment:


  • cool17
    replied to Switch case
    in C
    Is this how i do the switch case for this program?...
    See more | Go to post

    Leave a comment:


  • cool17
    started a topic Switch case
    in C

    Switch case

    Is it possible to use sign like +,-,*,/ in the switch case?


    is it something like this, but it cant works. So can someone help me with it.

    Code:
    	switch(inSign)
    	{
    		case '-': 
    		case '+':
    		case '*':
    		case '/':
    		
    	}
    See more | Go to post

  • cool17
    replied to Problem with expression
    in C
    can someone help with it? I am trying to get my code going... thank thank
    See more | Go to post

    Leave a comment:


  • cool17
    started a topic Problem with expression
    in C

    Problem with expression

    Code:
    #include "expression.h"
    #include <stdlib.h>
    #include <stdio.h>
    #include <string.h>
    
    
    xContainer splitTerm(string,int,int);
    
    
    
    expContainer createExpression()
    {
    	expContainer exp;
    	
    	/*allocate memory*/
    	exp = (expContainer)malloc(sizeof(struct expressions));
    	if(exp != NULL)
    	{
    	  /*set inital terms
    ...
    See more | Go to post

  • cool17
    replied to Help needed for loop
    in C
    Yes yes that is what i need. thank you very much....
    See more | Go to post

    Leave a comment:


  • cool17
    started a topic Help needed for loop
    in C

    Help needed for loop

    Hi guys can help me to correct my mistake? For my program, i asked the user for the number of terms they want to enter, it will then loop to the required times

    Code:
    for(j=0;j<10;j++)
    {
     printf("\nEnter the number of terms:\n");
     scanf("%i",&j);
     printf("\nPlease enter expression info as follow:\n");
       {	
    	double value;
    	double power;
    	double times;
    ...
    See more | Go to post

  • cool17
    replied to Can help me with the coding?
    in C
    oh ok..thank you
    See more | Go to post

    Leave a comment:


  • cool17
    replied to How to write for a loop?
    in C
    thank for the help. But on the above of my code i ask user for the number of terms needed , i will den prodced the data as required... So is there any other ways of writting it?
    See more | Go to post

    Leave a comment:


  • cool17
    started a topic Can help me with the coding?
    in C

    Can help me with the coding?

    /*
    IsScalarMatrix
    ---------------
    Check if a Matrix is a Scalar matrix
    where: diagonal elements all contain the same scalar aij.
    Return (!false == true,!true == false)
    */
    bool CDblMatrix::IsS calarMatrix()
    {
    int nRows = 0, nCols = 0;
    double temp;


    if (m_nCols == m_nRows)
    {
    temp = m_ppData[0][0];
    for (nRows...
    See more | Go to post

  • cool17
    started a topic How to write for a loop?
    in C

    How to write for a loop?

    printf("\nEnter the number of terms:\n");
    scanf("%i",&j);
    printf("\nPleas e enter expression info as follow:\n");

    {
    double value;
    double power;
    double times;
    int pos;
    int isX;
    int KnowX;


    printf("-------- expression info:--------\n");
    printf("What is the single value? =");...
    See more | Go to post

  • cool17
    started a topic How do i convert a float to string?
    in C

    How do i convert a float to string?

    hi guys

    I am writing a code for to covert expression to string so how is this going to be possible in C?

    i know for string to float is using atof() so what about the other way round?

    thx
    See more | Go to post

  • cool17
    replied to help needed
    in C
    hi guys

    But i need to write my code in C not in C++. That is why i am facing the problem...hopef ully u guys will be able to help me again...thank
    See more | Go to post

    Leave a comment:


  • cool17
    replied to what do u mean by parse error
    in C
    thank you once again
    See more | Go to post

    Leave a comment:


  • cool17
    replied to double pointer
    in C
    thank you...it really make me understand better now.
    See more | Go to post

    Leave a comment:


  • cool17
    started a topic double pointer
    in C

    double pointer

    hey guys

    what do u mean by double pointer in c++???

    thank
    See more | Go to post

  • cool17
    started a topic what do u mean by parse error
    in C

    what do u mean by parse error

    void resultop(int result, int expValue)

    {

    string temp;
    if(result==2)pa rse error
    {
    temp="Unknown";
    }
    else
    {
    if (result == expValue);
    {
    temp = "Passed";
    }
    else --- this is where the parse error is
    {
    temp = "Fail";
    }

    }

    can someone...
    See more | Go to post

  • cool17
    started a topic help needed
    in C

    help needed

    hi guys below are the code for user to key in the epression like x^3+9x+8, i am only able to do + n - sign so i am wondering how can i add on to do expression like x^7*9x+9 or even (5x+3)(9/78+9)???? I really need help on this. Thank you

    #include "expression .h"
    #include <stdlib.h>
    #include <stdio.h>
    #include <string.h>


    express chkterm(char*,i nt,int);
    ...
    See more | Go to post

  • cool17
    replied to whats the meaning of typedef
    in C
    thank guys...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...