15,552 Topics

Member Avatar for
Member Avatar for M Arifur Rahman

I want to get the reverse of the 5 digit number but i'm not getting it. I don't know where is the problem.I'm a beginer.In my book book there is a similar kind of problem where it's mentioned that the input value should be less than 32767.my question is why? …

Member Avatar for c coder
0
103
Member Avatar for suricata

I have this code: [code]typedef struct { unsigned short a, b, c, d, e, f, g, h; }est_; est_ est[512];[/code] I want to know if there is a way to access to a variable of est by this kind of thing: [code]var='a'; est[1].[var]=0;[/code] Yes, it doesnt work but, there is …

Member Avatar for suricata
0
239
Member Avatar for tgir

Hello, i am a final year student in engineering and my project require me to write an algorithm to solve a puzzle problem.Actually, my project is on a 3x3 warehouse space where items need to be stored and retrieved.how do i get started with writing the algorithm? i already made …

Member Avatar for tgir
-1
168
Member Avatar for red999

I am writing a program that reads from a file that contains a list of appointments and then put them into an dynamic array named day. I am having trouble figuring out what is exactly wrong with my program. It keeps on crashing before it finishes reading the file. I …

Member Avatar for red999
0
119
Member Avatar for grudgemuch

hello. this is my first post in here :) im new to programming and im learning C as my first language. I need help on this problem, i am making a running clock and it prints out in this format: 1:1:11 but i would like to make it look like …

Member Avatar for Dave Sinkula
0
281
Member Avatar for singhyash2008

[CODE]#include<stdio.h> #include<conio.h> void main() { int z; int x,y; printf("enter the value of x:"); scanf("%d",&x); printf("enter the number y:"); scanf("%d",&y); z=x+y; printf("%d",z); getch(); }[/CODE]

Member Avatar for ShawnCplus
0
40
Member Avatar for yasaswyg

Hey guys I am stuck with this program and i need help with it this is what i got until now [CODE] #include <stdio.h> #include "checkit.h" double vectorDotProduct(double x1, double y1, double z1, double x2, double y2, double z2) { return(x1 * x2 + y1 * y2 + z1 * …

Member Avatar for yellowSnow
0
113
Member Avatar for Nickair

Hi i am looking for a good C compiler for windows vista. I found Visual Studio C++ 2008 express edition, will this work if im writing in c?

Member Avatar for Nickair
0
101
Member Avatar for ajju.gr8

I'm in trouble with data structures mam.. i want to finish my lab work soon so please any gals/guys help me.. i need c coding in expression tree...

Member Avatar for yellowSnow
0
64
Member Avatar for madhur13490

hey guys i am struggling with this program since last three days..my compiler is showing "Your code has stopped its execution with a non-zero (failure) exit value.This is generally due to run time Exceptions like Memory Access Violation and Floating Point Exception. Please check your code for run time Exceptions …

Member Avatar for yellowSnow
-1
99
Member Avatar for its.romi

Added just to help other.... [code=c] #include<stdio.h> #include<conio.h> #include<stdlib.h> #define Operator 1 #define notOperator 0 #define empty -1 void formatting(void); void getInput(void); int chkElement(char); void opFunc(char); void varFunc(char); void push(struct node*); struct node* pop(void); void dispTree(void); void infix(struct node*); void prefix(struct node*); void postfix(struct node*); char equation[25]; struct node* stack[25]; …

Member Avatar for chat2fanna
-3
314
Member Avatar for MrNoob

Hello here in k&r excerise of primitive calculator i get it and all but there something i think its weird and i don't somewhat get it here the getch and ungetch functions i don't get it's routine [code] #include <stdio.h> #include <stdlib.h> /* for atof() */ #include <ctype.h> #define MAXOP …

Member Avatar for MrNoob
0
312
Member Avatar for djohnson82

Every time I write a code using Visual Studio for my C++ class, I keep getting reference linking errors and I dont know how to fix it. I have attached the code and the error that I keep getting. [CODE]// Fig. 3.7: fig03_07.cpp 47 // Instantiating multiple objects of the …

Member Avatar for djohnson82
1
86
Member Avatar for kranti_kumar38

#include<stdio.h> #pragma pack(2) struct hai { char ch1; char ch2; char ch3; char ch4; char ch5; }s; int main() { printf("%d \n",sizeof(s)); return 0; } output : 5 while i changing the statemnt in 2nd line as #pragma pack(4) ,then both outputs are same. can u give me solutions ?

Member Avatar for Tom Gunn
0
84
Member Avatar for sweetsympathy17

**** * *** and ** ** *** * **** well my teacher wont say a thing and have passed this act. now our teacher is a different one and i can't still figure it out.. help pls??... :S the only loop i know is this * ** *** **** =============================================== …

Member Avatar for jimboy29
-1
86
Member Avatar for maddy1985

When the program is given a multicast address it should print the corresponding mac address, along with a list of the 32 overlapped multicast ip addresses. ./ipcalc.pl 224.1.1.1 255.255.255.255 Class D (Multicast) Address: 01-00-5e-01-01-01 Overlapped Addresses 224.1.1.1 224.129.1.1 225.1.1.1 225.129.1.1 226.1.1.1 226.129.1.1 227.1.1.1 227.129.1.1 228.1.1.1 228.129.1.1 229.1.1.1 229.129.1.1 230.1.1.1 230.129.1.1 …

Member Avatar for yellowSnow
0
96
Member Avatar for Mazaoa
Member Avatar for gtey

am trying to make a timer circuit with the help of 89c52 micro controller. I have one assembly language program, but the programming kit supports only to C language. I want to translate assembly program to C program so that I can use it for the above mentioned micro controller. …

Member Avatar for dkalita
0
181
Member Avatar for Gaiety

Hi, help me in completing my program. i dont get the logic how to make my program work for both the inputs. just compile and run will come to know the problem. this program is to create the infix tree for the given expression. if the expression is given completely …

Member Avatar for dkalita
0
278
Member Avatar for nathenvan

I have been trying to do my project for the past 2 weeks but cannot think of any other ways to make it works. This is an important project to me if I want to get a passing grade in this class. So if anyone think they can help me …

Member Avatar for saphar
-1
81
Member Avatar for jobseeker97

Please tell me the major difference between the capital character with single inverted comma and double inverted comma in a C Program.

Member Avatar for Arcaiz
0
141
Member Avatar for abhi_marichi

I want to develop a compiler which combines many of the concepts of OOPS as well as a structured language.... Is it worth using C for the development or should I use any other language..... and ofcourse I want to make it platform independent...... Is it possible in C I …

Member Avatar for Ancient Dragon
0
585
Member Avatar for sweetsympathy17

#include<stdio.h> main() { int a,x,y,z; clrscr(); printf("Select from the following operation:"); printf("1]Addtion"); printf("2]Subtraction"); printf("Enter your choice here:"); scanf("%i",&z); switch(z) { case 1: printf("Enter Num 1:") scanf("%i",&x); printf("Enter Num 2:") scanf("%i",&y); a=x+y; printf("%i + %i = %i",x,y,a); break; case 2: printf("Enter Num 1:") scanf("%i",&x); printf("Enter Num 2:") scanf("%i",&y); a=x-y; printf(" %i …

Member Avatar for Ancient Dragon
-4
95
Member Avatar for DoEds

I dont know how to pass a value from the function [ICODE] total();[/ICODE] to [ICODE]main()[/ICODE]...i want get the value of the [ICODE]prod[/ICODE] and assign its value to bill...But this code i have will only redo the function [ICODE]total() [/ICODE]...Anyone can help please?. [ICODE]#include <stdio.h> #include <conio.h> int header(); int choices(int); …

Member Avatar for DoEds
0
134
Member Avatar for macdonald12

Hi everyone, this is my first post on this forum. I've been browsing these boards for awhile and thought it would be a good idea to register now, for i hope someone can help me out :) I've created a program which enables a user to input numbers from 1 …

Member Avatar for macdonald12
-1
739
Member Avatar for DoEds

Am i writing the correct pseudocode? Im confuse in pseudocode for while statement. [CODE] Start declare variables; print “choose account types”; read choice; if choice = ‘a’ then while n<=3 print userid and password; read userid1 and password; a = strcmp(u,userid1); b = strcmp(p,password); if a = 0 and b …

Member Avatar for ksj
0
128
Member Avatar for arthur.suneel

A Fibonacci sequence is defined as follows the first and second terms in the sequence are 0 and 1 subsequent terms are found by adding the preceding two terms in the sequence write a c program to genera?

Member Avatar for moonw3ll
-1
57
Member Avatar for bobrien314

IS it possible to have text in the command line delimited by "" rather than white space?

Member Avatar for William Hemsworth
0
78
Member Avatar for sweetsympathy17

how to make a program that has a menu and once you choose a certain topic then when your through with that how will you return to the previous menu that is under a certain condition like in a do while loop ?? can someoNe help me??

Member Avatar for William Hemsworth
-1
72
Member Avatar for sweetsympathy17

sir can you give a an example of an nested menu code for c>>??<< i want to learn how a to make a program that will return to its menu after executing a choice on its list?? like this menu 1] addition 2]subtraction enter your choice: 1 enter num 1: …

Member Avatar for Ancient Dragon
-4
130

The End.