15,552 Topics

Member Avatar for
Member Avatar for imso

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.. …

Member Avatar for Dave Sinkula
0
210
Member Avatar for Shillz

how can we use a printf statement without a semicolon??? this was a question asked during an interview of a computer engineering student.

Member Avatar for Shillz
0
151
Member Avatar for sarah_laz

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 …

Member Avatar for sarah_laz
3
1K
Member Avatar for Gaiety

why we have an int type when we already have short and long ints because int means either short or long.

Member Avatar for Salem
0
152
Member Avatar for caroll

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]

Member Avatar for caroll
0
140
Member Avatar for surfer2009

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++) …

Member Avatar for Narue
0
93
Member Avatar for caroll

please send me tutorials to know about the operators////.. especially 1) ^,>>,$,~..etc...

Member Avatar for WaltP
-2
89
Member Avatar for surfer2009

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 …

Member Avatar for gerard4143
0
104
Member Avatar for techevo

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 …

Member Avatar for Narue
0
84
Member Avatar for madmax007

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 …

Member Avatar for madmax007
1
1K
Member Avatar for bhavnam66

program using nested loops in c programming language to generate following pattern zyxwvwxyz zyxwxyz zyxyz zyz z

Member Avatar for Salem
0
97
Member Avatar for iamcreasy

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; …

Member Avatar for iamcreasy
0
202
Member Avatar for replicajewelry

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 …

Member Avatar for iamthwee
-3
86
Member Avatar for desier
Member Avatar for gerard4143

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 …

Member Avatar for jonsca
1
108
Member Avatar for Hofik

Hello everybody. I have to make "an-OCR-like" programm in C - it gets for example this to stdin: [CODE] *** *** *** * * * * * * * * * * * * * * * * * * * * * *** *** *** * * * * …

Member Avatar for Hofik
1
84
Member Avatar for nokia3315

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 …

Member Avatar for Nick Evan
-11
240
Member Avatar for master_ref

:);) 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) …

Member Avatar for WaltP
0
101
Member Avatar for strlen

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; …

Member Avatar for Ancient Dragon
0
110
Member Avatar for Sin-da-cat

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 …

Member Avatar for farooqiumar
0
2K
Member Avatar for Dave Sinkula

Several methods of reversing the bits of a byte are presented here. [i]Note that not all of the methods are portable.[/i]

Member Avatar for Dave Sinkula
3
766
Member Avatar for mueed

can any1 tell me how to display a array of pixels into a gray image using c

Member Avatar for Salem
0
93
Member Avatar for asha SSIT

how can we sort the alphabets using pointers in c can anyone help me please.....

Member Avatar for Nick Evan
0
48
Member Avatar for xavier666

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 …

Member Avatar for Narue
0
170
Member Avatar for coolcool

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...

Member Avatar for Ancient Dragon
0
88
Member Avatar for Gaiety

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 …

Member Avatar for Salem
0
130
Member Avatar for Pamilerin

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]

Member Avatar for Nick Evan
0
74
Member Avatar for Iam3R

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 …

Member Avatar for Tajon Wong
0
334
Member Avatar for serra01

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

Member Avatar for WaltP
-5
71
Member Avatar for johndoe444

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]

Member Avatar for Narue
0
78

The End.