15,551 Topics
| |
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 … | |
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 … | |
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 … | |
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 … | |
[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] | |
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 * … | |
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? | |
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... | |
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 … | |
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]; … | |
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 … | |
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 … | |
#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 ? | |
**** * *** 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 * ** *** **** =============================================== … | |
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 … | |
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. … | |
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 … | |
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 … | |
Please tell me the major difference between the capital character with single inverted comma and double inverted comma in a C Program. | |
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 … | |
#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 … | |
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); … | |
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 … | |
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 … | |
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? | |
IS it possible to have text in the command line delimited by "" rather than white space? | |
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?? | |
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: … | |
hi all, I write this program under the C++ not C. But I heaively used the malloc() and free() functions in my code. In brief what my code does is just allocate memory for NFA transition table. It grows dynamically. When the number of transitions is a %4 then it … |
The End.