15,551 Topics
| |
I need help to make this run as a c program. I am better at writing c++ code than I am at writing c code. I had this working as a C++ program and I trying coverting it to C. This program must perform a topologic sort of a graph. … | |
Hi, I want to create multiple executables corresponding to their .c files in one target rule. For example, I have prog1.c and pro2.c, how do I create the executables prog1 and prog2 from just one target? By target I mean something like this test: [I]dependencies[/I] [tab] [I]command rules[/I] Thanks in … | |
| Hi guys, I've got a simple bool 2D array that is set to false by default. I'm filling it with random 'true' values. I am then trying to make it symmetrical i.e. array[i][j] = array[j][i] However, this doesnt seem to be working and I was wondering why. I've been trying … |
hi every body i want array concept in programming why we use arrays in codes and etc | |
Hello you guys, Would anyone like to give me suggestions on how to make a code for the following pattern? Please note that the numbers arent part of the pattern, they are just a guide for row and column. * * * * * # # # 1 * * … | |
hai friends this is yugandhar, i want to learn c language so i want install c setup, wile iam installing the setup file is not installing proprally but right now iam using vista operating system can u help me any one, if u have any c language setup file send … | |
You can insert a no. at any pt. in this program. here is the code: #include<stdio.h> #include<conio.h> #include<process.h> #include"goto.c" void line(void); void cross(void); int main() { clrscr(); int a[9][9]={8,6,7,5,4,2,3,9,1, 4,3,2,9,1,8,5,7,6, 9,5,1,7,6,3,4,2,8, 5,2,9,6,8,4,7,1,3, 7,4,8,3,5,1,2,6,9, 6,1,3,2,7,9,8,5,4, 1,8,5,4,2,6,9,3,7, 2,9,6,8,3,7,1,4,5, 3,7,4,1,9,5,6,8,2}, b[9][9]= {8,6,' ',' ',' ',' ',' ',9,' ', 4,' ',2,' ',1,' ',5,' ',' … | |
i have an assignment which let the user writes into the terminal -linux system- any command and i should take this command he wrote to execute it using fork and execvp() i already can fork a child .. but cant pass parameters to execvp cuz i can't understand what these … | |
/* A Program testing for rational number*/ #include <stdio.h> #include <stdlib.h> typedef struct rational_t { int numer; int denom; } rational_t; int gcd(int a, int b) { /* To reduce the rational number to its lowest form. */ if(b==0) return a; else return gcd(b,a%b); } /* r_init: Creates rational number … | |
I want to write a C program to test whether the character is uppercase, lowercase, digit or special symbol. [code=c] void main () { char ch; printf("\n Enter any character from the keyborad"); scanf("%c",&ch); if (ch>=65&&ch<=90) printf(" \n the character is uppercase); if(ch>=91&&ch>=122) printf(" \n the character is lowercase); if(ch>=48&&ch<=57) … | |
In this assignment you to implement a short C program that works with factorization of integers. You will write a C program that computes and prints out the sum of all natural numbers below 100,000 that are multiples of 3,5 or 7. In Detail If you are asked to sum … | |
Hi, i'm keyuri from g'nagar. I want help for solving my 'c' programming exercises from book | |
Hi, I am writing a C code to add two matrices. I want to take input with a feel of real martice, some thing like 1 2 3 4 5 6 7 8 9 but the Scanf function automatically enter EOL and hence my input looks some thing like this, … | |
Hi, I don't understand the if statement here. Can anyone explain how the execution of if loop will proceed. Why are we using || and && operators here. #include<stdio.h> void main { int year; printf("Enter the year: "); scanf("%d",&year); if(year%400 ==0 || (year%100 != 0 && year%4 == 0)) { … | |
Hi, I'm an IT Engineering student and I have the task of doing, in C, a function that does on linux the equivalent of the 'locate' function. Can someone help me? I need ideas for how to read a file system! How can I list directories (to a string or … | |
Hello you guys, Would anyone like to give me suggestions on how to make a code for the following pattern? * * * * * # # # 1 * * * * # # # # [B] ROW [/B] 2 * * * # # # # # 3 … | |
| Hi there, I am trying to read integers from a file and store them into an array but I have no idea how to do it. The file is a text document whos contents are arranged like an adjacency list. Here is an example file: 0 : 2,4,5,6,10 1 : … |
Hi, im creating some program, which reads number from stdin, and save them into variable X, but how can i make condition that program will print error on the screen if X is not number [CODE=c] #include <stdio.h> #include <stdlib.h> #include <ctype.h> int main() { float x; while ( (scanf("%e",&x)) … | |
as a bigginer in c , having problem in understanding basics that how to develop programs with use of functions | |
who can tell me what the use of "\n" is? and what the difference between [CODE]scanf("%d",&j); [/CODE]and [CODE]scanf("%d\n",&j)[/CODE];? | |
Hi, I am trying to read the following information from a text file and save it a binary search tree. The data are: [CODE] Toyota 1.3 Solid 33,235.04 3300.00 Nissan1.3 Solid 38,235.04 3300.00 [/CODE] [CODE]struct Node { char model[50]; char colourType[20]; double price; double deposit; struct Node *parent; struct Node … | |
Hi all! Please somebody explain me how this snippet is working!! [CODE]main() { float a 4.379; char*p; int i; p=(char*)&a; for(i=1;i<=3;i++) printf("%02X",(unsigned char)p[i]); } [/CODE] | |
good morning to every one....... How to use the %n in scanf () & printf()? ..explain in thoroughly with examples... thanking you for giving answer | |
[CODE=C] #include<stdio.h> #include<conio.h> #include<string.h> int main() { //int a[10]={2,5,1,7,0,10,145,14,15,9}; int a[10]={1,2,3,4,5,6,7,8,9,10}; int tem,i=0,j,isTRUE=0; for(j=0; j<10; j++) { if(a[j]<a[j+1]) { isTRUE=1; break; } isTRUE=0; } if(isTRUE) printf("inorder\n"); else printf("ASEorder\n"); getch(); return 0; } [/CODE] Here's my source code about checking an array is ordered or not But it didn't work properly, … | |
I want to know is there a complete divide function in C standard library that retrieves the quotient as a float number. in fact I want the remainder to be zero or be as next to zero as possible. Is there such a function? Thanks, | |
I am new to C++ and am writing a program that will call other functions. I keep getting an error for a undeclared identifier for "vowel" in this section of code. Can anyone help? #include <iostream> #include <iomanip> using namespace std; void generate_random_vowel(char &vowel); int main () { char vowel; … | |
Hi all, I have the static variable g_listItem which is the header of the link list. I have created the generic API which will be used by other module and every time this API(add_info_node()) is invoked I want to want the node to this single link list which I declare … | |
what is the time that select func in socket programming waits before continuing. Like till how much time it can receive msg from diffrent clients before proceeding to serve the request. One more question. Can we send 500 messages from 500 diffrent clients at the same time to a server … |
The End.