15,552 Topics
| |
I started to program on C++ on converting 8bit binary to its decimal requested for my school project. But i have problem to proceed further as i am lost on what to add on next. Can someone help me to add on to my program to allow it to work.. … | |
how can we use a printf statement without a semicolon??? this was a question asked during an interview of a computer engineering student. | |
I have been asked to program a spellchecker in C for an assignment. I am quite new to C and programming in general, so I have decided to start by writing a program that does the following: [LIST] [*]Reads words into an array from a dictionary text file. [*]Reads words … | |
why we have an int type when we already have short and long ints because int means either short or long. | |
hi, please please give me exact explanation for the tilt symbol in c.... here i have paste the code and i m getting the output of 1... how it comes 1..?please explain me soon...[code]#include<stdio.h> main() { int m=1; ~~~m; printf("%x\n",m); }[/code] | |
i am new in c . i have made the code in C++.its working fine. the only problem i face i got error in printf statment. please tell me how can i change cout statement into printf [code] #include<iostream> #include<cmath> using namespace std; int main() { int x=0; for(int i=0;i<=6;i++) … | |
please send me tutorials to know about the operators////.. especially 1) ^,>>,$,~..etc... | |
i have just started c language and i have only study "while" and "for" "if else" please help me in this question using loops(without usuing arrays) write a program that prodeuce the following output: 0 0 1 0 1 2 0 1 2 3 0 1 2 3 4 0 … | |
Hi all, I am having a problem printing out the elements of an array, using a for loop. when i try to print out each individual element, it prints out the last element repeatedly. ie will print the last element of the array, over and over again. if you could … | |
Hi, I am trying to write some code in order to communicate with a telnet clent from a c++ application. My idea was to open a telnet session with popen and to use the input/output pipes to communicate but it does not seem to work. When I test, the program … | |
program using nested loops in c programming language to generate following pattern zyxwvwxyz zyxwxyz zyxyz zyz z | |
This code is supposed to print all the numbers from a text file...but for some unknown reason, it is only printing the last pair. [CODE]#include<stdio.h> int main() { freopen("in.txt", "r", stdin); int result=0, column=0, row =0; while(scanf("%d %d", &row, &column) != EOF); { printf("%d %d", row, column); } return 0; … | |
I am new in this forum, I was really fond of developing the graphical applications in C when I was earning my Computer Sciences Degree. But due to lack any guideline could not make progress in C. Even now I am working in some Marketing firm. But I can say … | |
| |
What is going on here. Copy this C code , compile and run. What do you think is going on? Note I don't want the answer, I know what's going on here. This is just something for the rookies to play with... Also this is not the best way to … | |
Hello everybody. I have to make "an-OCR-like" programm in C - it gets for example this to stdin: [CODE] *** *** *** * * * * * * * * * * * * * * * * * * * * * *** *** *** * * * * … | |
Project of C programming Write a program that helps the user to consider a range of interest rates for a mortgage over 20, 25, and 30 years. Prompt the user to enter the amount of the loan and a minimum and maximum interest rate (in whole percentages). Then write a … | |
:);) please !!![code]// if u is greater than v then the greatest common divisor of u and v // is the same as the greatest common divisor of v and u - v. // This observation leads to the following implementation in C: #include <stdio.h> int gcd(int u, int v) … | |
please help me ,check the program . if input the text like this "nice to meet you",the output right,no problem,but if input "nice to meet you too",the result is "nice meet you to",how should i do? [CODE]#include"stdio.h" #define n 100 void del_char(char str1[n],char str2[]) { char str[n],*p1,*q,i,j; p1=str1; q=str; *q=*p1; … | |
Can somebody help me with this? I'm not sure if this is the right forum section, so if it's not, please let me know. The problem goes like this: I need to create a program that has a recursive function which checks whether or not the given string is a … | |
Several methods of reversing the bits of a byte are presented here. [i]Note that not all of the methods are portable.[/i] | |
can any1 tell me how to display a array of pixels into a gray image using c | |
how can we sort the alphabets using pointers in c can anyone help me please..... | |
I was making a DEQUE program utilizing two separate lists for forward and backward traversal. But what I think I've done is ended up making [U]two separate lists[/U], having same data but only their [U]order reversed[/U], thus wasting memory :'(. So what I want to know is this how a … | |
can anyone suggest how to write a notepad app using c??algorithm for programming is needed..gui is not so important..graphics in c enough..i just need the idea of what to do..pls help me... | |
I am writing a program to create a window and a box in which the statements are printed but i am unable to get the correct out put. some times after executing the program its showing the commad line but what ever the commands i enter are not visible at … | |
How can one make a program repeat a set of lines of code.like for example [CODE]printf("enter the value of x:"); scanf("%d",&x); for(i=0;i<1;i++){ value+= arr[i]*(x,i); printf("\n The value of the polynommial is %ld",value); }[/CODE] | |
As far as my understanding and other referals i understood that when the address of a local variable is returned the first call using this address may print the correct value but if it is called after any other function may get undefined values. but my program is returning the … | |
Well, I am impress to this Forum and I also want o say that In "C" programming , Pointer topic and the use of it totally useless. I am a diploma holder that's why I am saying this thing. Thanks for accepting my thoughts guys. ==================================== link snipped | |
Hi how is the typedef for monthTable working while the statement at line 6 not working? [CODE]#include <stdio.h> typedef const char * monthTable[3]; // uncommenting the following generates compile error //int[5] A; int main() { monthTable t1,t2={"Jan","Feb","Mar"}; int i=0; for(i=0;i<3;i++) { printf("%s\n",t2[i]); } return 1; }[/CODE] |
The End.