thank you so much.
that helped me a lot...
User Profile
Collapse
-
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?Leave a comment:
-
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,
radarLeave a comment:
-
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... -
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.2Leave a comment:
-
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;
-
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...Leave a comment:
-
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...Leave a comment:
-
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.Leave a comment:
-
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");
Leave a comment:
-
[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);...Leave a comment:
-
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);
Leave a comment:
-
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,Leave a comment:
-
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...Leave a comment:
-
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;...Leave a comment:
-
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 -
-
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 canLeave a comment:
-
//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;
...Leave a comment:
-
/*IN C [COMPILER VISUAL STUDIO 6,0]*/
#include <stdio.h>
int main(void) {
float degfah,degcel;
printf("Enter degree in celcius: ");
scanf("%f",° cel);
degfah=degcel*1 .8+32;
printf("%.1f Degree Celcius is %.1f Degree Fahrenheit",deg cel,degfah);
}Leave a comment:
No activity results to display
Show More
Leave a comment: