User Profile

Collapse

Profile Sidebar

Collapse
RADAR
RADAR
Last Activity: Jan 6 '08, 10:39 PM
Joined: Oct 14 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • RADAR
    replied to C++ using keyboard system inputs
    in C
    thank you so much.
    that helped me a lot...
    See more | Go to post

    Leave a comment:


  • RADAR
    replied to C++ using keyboard system inputs
    in C
    thank you very much for your help , this is so clean and strong answer for my question.i wonder if you can only answer one more question , why do i have to initialize the string variable?
    See more | Go to post

    Leave a comment:


  • RADAR
    replied to C++ using keyboard system inputs
    in C
    thanks for trying but i still couldn't do it.
    i only want if ctrl+z is entered , the while loop will end the program will continue until the return 0; statement as usual.
    thanks again guys.
    respects,
    radar
    See more | Go to post

    Leave a comment:


  • RADAR
    started a topic C++ using keyboard system inputs
    in C

    C++ using keyboard system inputs

    i use VC++ 6,0 and i have problems with getting keyboard system inputs and to use them to check to proceed or break the loop.
    for example if i want to proceed until Ctrl+z is written for input.What will the compiler do?Does it accept Ctrl+Z as a normal string input , char* input, or a char input which has ASCII 26...
    suppose i have a loop that does the following:
    -first check the choice
    -if not Ctlr+Z continue
    -else...
    See more | Go to post
    Last edited by RADAR; Dec 27 '07, 12:13 AM. Reason: adding some detailed info

  • RADAR
    replied to C Run-Time Error R6002
    in C
    for the clarification of the faculty.txt file , it includes
    eg.
    [dept. code] [std.number] [std.name] [std.lastname] [cgpa];
    25 190527 Brad Pitt 1.2
    See more | Go to post

    Leave a comment:


  • RADAR
    started a topic C Run-Time Error R6002
    in C

    C Run-Time Error R6002

    hi,
    the error code was taken from msdn and it occured in my code as follows;
    i am reading buffer from the file :

    Code:
    #include <stdio.h>
    #include <stdlib.h>
    #define SIZE 10
    #define DSIZE 5
    #define DEPTH 150
    
    //LL structure
    typedef struct node* NODE_PTR;
    typedef struct node POOL;
    struct node{
    
    	int dept;
    	int std_num;
    ...
    See more | Go to post

  • RADAR
    replied to New to C++ :: Help
    in C
    although there are so many differences between C and C++ , I think it will be some beneficial idea when i talk about C.
    I started with buying a good book which was also ordered me to buy from The Lecturer.So askhim or her to buy which book is most helpful in programming exercises.Our midterm concept is tracing the program on the midterm page.So I try to do the past midterm questions and work on them.Using my own symbols i determine whether...
    See more | Go to post

    Leave a comment:


  • RADAR
    replied to How Do I Rewrite This In C Using Functions?
    in C
    Northern Illinois University student friend I want you if it is appropriate for you send me the exact question then i will try to solve it.If you wolud not try to make it clear to understand what is expected from you under that topic.I do not hide my mail adress:
    tinb_usa@hotmai l.com
    respects...
    See more | Go to post

    Leave a comment:


  • RADAR
    replied to why is the circle not completed !!
    in C
    I hope you have declared the functions you have written the following
    CirclePoints ( x, y, color );
    putpixel ( x, y, color );
    don't have any declarations.
    See more | Go to post

    Leave a comment:


  • RADAR
    replied to diamond problem
    in C
    I can do it with using for structure.
    Code:
    #include<stdio.h>
    int main()
    {
    int a,z,i,j,n,x,y=1,k=1,m;
    printf("Enter height it must be odd");
    scanf("%d",&a);
    x=a;
    z=x;
    m=x;
    m--;
    m=m/2;
    m++;
    for(j=0;j<m;j++)
    	{
    for(i=0;i<x;i++)
    	printf(" ");
    if(k==1)
    {printf("*\n\n");
    ...
    See more | Go to post

    Leave a comment:


  • RADAR
    replied to Question regarding scanf
    in C
    [CODE]
    char myChar;
    int myID;
    scanf("%c", &myChar);
    scanf("%d\n"; &myID);
    printf("Option: %c, ID: %d\n", myChar, ID);
    [\CODE]

    I think you can design and implement your program without using any
    '\n' in scanf because your values can not be executed if you do that.
    [CODE]
    char myChar;
    int myID;
    scanf("%c",&myC har);...
    See more | Go to post

    Leave a comment:


  • RADAR
    replied to Regular Expresions in C
    in C
    Code:
    #include // sys/types.h
     
    #include // regex.h
     
    
    
     
    int match(const char *string, char *pattern) {
     
      int status;
     
      regex_t re;
     
    
     
      if(regcomp(&re, pattern, REG_EXTENDED|REG_NOSUB) != 0) {
     
        return 0; }
     
      status = regexec(&re, string, (size_t)0, NULL, 0);
     
      regfree(&re);
    ...
    See more | Go to post
    Last edited by RADAR; Oct 25 '06, 02:53 PM. Reason: Adding some different codes

    Leave a comment:


  • RADAR
    replied to Switch case
    in C
    this header #include "expression .h"
    is defined as such a file or directory i suppose because when compiled, it is occured a problem.
    what compiler do you use?I mean C or C++ compiler or both? sometimes after execution there exists a problem in C++ compilers executing C.
    There are so many variables which made me confused truly.
    Respects,
    See more | Go to post

    Leave a comment:


  • RADAR
    replied to power density spectrum by c programming
    in C
    i don't think so mate.Although it does not include any type of mathematical functions(user defined),i guess you can do it with defining a function.Likewi se the fahrenheit and celcius conversion, you can define the arithmetic calculations in a function named power_density_s pectrum
    I hope i could help you with that situation.But due to my lack of physics knowledge I couldn't explain how to graph them.I guess you are somewhere from Europe(TURKEY?) .We...
    See more | Go to post

    Leave a comment:


  • RADAR
    replied to Switch case
    in C
    yes you can...
    define the arithmetic operators as character and prompt the user to enter the artihmetic operator
    printf("\n Arithmetic operation ( + - / * % ) : ");
    scanf("%c",&ope ration);
    fflush(stdin);

    switch( operation )
    {
    case '+': result= number1 + number2; break;
    case '-': result = number1 - number2; break;...
    See more | Go to post

    Leave a comment:


  • RADAR
    started a topic Freshman
    in Java

    Freshman

    I Am A Freshman In Java And I Want To Know How Do I Start And Where Do I Start.
    If It Is Required,i Have Intermediate Level On C Programming.any Comments Which Has Good Decisions Are Excepted.
    Thanks For Now
    Regrats,r@d@r
    See more | Go to post

  • RADAR
    replied to I need help in structure in C prg
    in C
    you mean the statements?like if else switch?
    See more | Go to post

    Leave a comment:


  • My friend first try to initialize numbers or characters to start and end because your second expression does not work...The one with asking end character.
    I am quite confused also with your question.If it is appropriate please try to make it a little more clear to understand.
    then i am ready for help whatever i can
    See more | Go to post

    Leave a comment:


  • RADAR
    replied to pallindrome
    in C
    //IN C[COMPILER VISUAL STUDIO 6,0]
    #include <stdio.h>
    #include <conio.h>
    int main(void)
    {
    int input1,output1;
    int digit1,digit2,d igit3;
    do
    {
    printf("Enter three digit integer:");
    scanf("%d",&inp ut1);
    }
    while((input1<1 00)||(input1>99 9));
    digit1=input1%1 0;
    input1/=10;
    digit2=input1%1 0;
    ...
    See more | Go to post

    Leave a comment:


  • RADAR
    replied to Conversion of Fahrenheit to Celsius
    in C
    /*IN C [COMPILER VISUAL STUDIO 6,0]*/

    #include <stdio.h>
    int main(void) {
    float degfah,degcel;

    printf("Enter degree in celcius: ");

    scanf("%f",&deg cel);

    degfah=degcel*1 .8+32;

    printf("%.1f Degree Celcius is %.1f Degree Fahrenheit",deg cel,degfah);

    }
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...