15,548 Topics

Member Avatar for
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
274
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
112
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
100
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
313
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
303
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
85
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
85
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
178
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
276
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
80
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
137
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
584
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
132
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
733
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
121
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
56
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
71
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
129
Member Avatar for NicAx64

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 …

Member Avatar for dkalita
0
170
Member Avatar for sweetsympathy17

i really need to know how to make a program that will never end and continue to repeat itself from the beginning... ^^!!

Member Avatar for jephthah
-2
66
Member Avatar for adi.shoukat

Plz tell me how can i delete a particular string from given file .... plz help .. I've no idea :(

Member Avatar for William Hemsworth
0
95
Member Avatar for virtualmisc

I was wondering how I could use the graphics type effectively in C. I have seen games created in C. How is that practically possible?

Member Avatar for NicAx64
0
110

The End.