18,490 Topics

Member Avatar for
Member Avatar for rpjanaka

hi all, i have Theora video codec source code (a C library) and i want to debug it using GDB in linux. but if its developers have not provide debuging enable option, how can i manualy chnaged the make file for unabling debuging optins. please can anyone help me to …

Member Avatar for dwks
0
89
Member Avatar for pdwivedi

I have several .CPP and .H fles which i want to compile together. These files are used for PLC and Oracle database communication. when i try to compile these files it says following header files are missing .. [COLOR=red]<occi.h>[/COLOR] [COLOR=red]<sys/msg.h>[/COLOR] [COLOR=red]<sys/time.h>[/COLOR] [COLOR=red]<sys/stat.h>[/COLOR] [COLOR=red]<signal.h>[/COLOR] How can I recover these files & …

Member Avatar for dwks
0
133
Member Avatar for locy

can spmeone help me with any c compiler avaliable that i can easy download and the keys that i can use for the command.

Member Avatar for dwks
0
170
Member Avatar for Linda1

I am very new to C++ and one of my homework assignments involvemulti dimensional arrays. I was able to initialize and input and display the array (4x4) but the last step is to swap the data of the row to that of the column. Tried different ways and unable to …

Member Avatar for Linda1
0
146
Member Avatar for towhoe260

This is my assignment and im pretty confused. Our book is a horrible book, and i cant seem to understand much of it. So i was hoping maybe someone could point me in the right direction in getting started. tHis is what we are expected to do. Write a program …

Member Avatar for Dave Sinkula
0
164
Member Avatar for bc030400412

Write a TSR program that changes the background color of the screen to red every 5 second and then white next 5 second, And this continues until you press ‘Q’ It should not modify the text displayed on the screen. Hint: 1_ Intercept Keyboard interrupt (0x09H) 2_ Use video text …

Member Avatar for Ancient Dragon
0
303
Member Avatar for FEARmike21

I have been checking on others letter count programs and none so far are like mine so I'm now making my own thread. My assignment, which is due tomorrow! *Yikes* Is for me to make a text file in notepad and then important that to my code. Then, I has …

Member Avatar for Salem
0
198
Member Avatar for winky

Hey all, I am new to C/C++ and this week we just started object oriented C++. Before I dive into it I want to have a good understanding of simulating object oriented programming with C. Anyway, I believe I have doctored the code to where the queue and the Stack …

Member Avatar for Salem
0
137
Member Avatar for eddiekash

i would like some examples of simple c or c++ codes that can shut down a computer like say at exactly 9pm. could anyone give me a sample c code that can pop up on the screen warning that the computer will shut down in 20 minutes.

Member Avatar for ithelp
0
97
Member Avatar for skyah

Hello, I have to write a few programs. I have an attachment of what i have so far. Can anyone direct me in the right direction.

Member Avatar for Narue
0
122
Member Avatar for ba19

hai..can anyone help me on this task...i might need some sample on doing it.TQ Tasks: 1 You are expected to write a program that simulates CPU scheduling algorithms (SJF and SRTF). 2 The program will request the user to set the the number of processes to be selected for execution. …

Member Avatar for stymiee
-1
552
Member Avatar for baberca

#include<stdio.h> #include<conio.h> #define n 20 main() { int d,p; int b,i,n,bt[20],at[20],num; int arr[20]; clrscr(); printf("ENTER THE NUMBER OF PROCESSES: "); scanf("%d",&n); for(i=0;i<n;i++) { gotoxy(10,5); printf("PROCESS: %d",i+1); gotoxy(25,5); printf("BURST TIME : "); scanf("%d",&bt[d]); gotoxy(50,5); printf("ARRIVAL TIME :"); scanf("%d",&at[p]); } gotoxy(29,20); printf("SELECT ALGORITHM"); gotoxy(29,25); printf("\n[1] - SJF"); gotoxy(29,30); printf("\n[2] - SRTF"); gotoxy(29,35); …

Member Avatar for stymiee
1
614
Member Avatar for ksri

What is the function of fflush(stdin)? What for the operator -> used?

Member Avatar for Ancient Dragon
0
188
Member Avatar for mooseguy

I am having troubles with a program I wrote to count letters in a string. Here is the program: [code=C]#include <stdio.h> #include <stdlib.h> #include <string.h> int i; int length; int ascii; char cipher[3]; int letters[26]; int main() { char cipher[10] = "ABC"; /*Or an inputted variable, but that's not important …

Member Avatar for Aia
0
96
Member Avatar for furpacino

i wrote a program with switch statements and now i have to write with while loop the same programram. Please say me where i am worng. my if program: [code=c] char letter ; printf("enter the antibiotic sample >>>>> "); scanf("%c", &letter); switch (letter) { case 'N': case 'n': printf("Perform standard …

Member Avatar for Ancient Dragon
0
170
Member Avatar for Exsiss

I am currently trying to write a program that: [quote]Write a program to count and print out the number of copies of the letter 'e' that are found in a pre-specified string. (By "pre-specified", I mean you should declare and initialize the string right in your program, rather than reading …

Member Avatar for Aia
0
105
Member Avatar for restrooms

HI CAN U PLS HELP ME IN ADDING SOMETHING TO THIS PROGRAM TO BE LOOK GOOD. HERES THE PROGRAM I'VE MADE. #include <stdio.h> #include <conio.h> int a,b,c; int main() { clrscr(); printf("Enter Number:"); scanf("%d",&c); switch(c) { case 1: printf("\t\t\tJanuary 2007"); printf("\n\t"); for(b=1;b<=51; b++) { if(b==51) printf("=\n"); else printf("="); gotoxy(9,3); printf("Sun\tMon\tTue\tWed\tThu\tFri\tSat\n\t"); …

Member Avatar for twomers
0
247
Member Avatar for Member #13457

i have done a simple program, which i asked..(don't know how many days ago.) but i find that there is a problem.. if i give an input (for example) 1234 it shall reverse back 4321 (it does) when i key in 100, by right it should return 001, but it …

Member Avatar for Narue
0
204
Member Avatar for restrooms

im new about this fibonacci can someone post a sample program of fibonacci so i can see on how it was done. pls thanks in advance

Member Avatar for Salem
0
63
Member Avatar for Lost in Code...

Hello, When I run my code below, it lets me pick a number and seems to go through my first IF statement fine. However, after I get through my first IF, I'm wanting it to then add to my tries so that when I go over 5 or more tries, …

Member Avatar for ChaseVoid
0
135
Member Avatar for baberca

[code] #include<stdio.h> #include<conio.h> #define n 20 main() { int d,p; int b,i,n,bt[20],at[20],num; int arr[20]; clrscr(); printf("ENTER THE NUMBER OF PROCESSES: "); scanf("%d",&n); for(i=0;i<n;i++) { gotoxy(10,5); printf("PROCESS: %d",i+1); gotoxy(25,5); printf("BURST TIME : "); scanf("%d",&bt[d]); gotoxy(50,5); printf("ARRIVAL TIME :"); scanf("%d",&at[p]); } gotoxy(29,20); printf("SELECT ALGORITHM"); gotoxy(29,25); printf("\n[1] - SJF"); gotoxy(29,30); printf("\n[2] - SRTF"); …

Member Avatar for Salem
0
329
Member Avatar for arvindishukla

Hi All, A simple questions, can someone let me know the syntax of for loop e.g if i want to print my name 100 times ? Thanks in advance.

Member Avatar for masijade
-1
128
Member Avatar for ITapprentice

I'm back and I 've changed my code around a bit. I almost have it compiling except for one error that says there is a syntax error before inFile my struct that will hold my arrays. It's in the second for loop. I think that I have my struct declared …

Member Avatar for Aia
0
138
Member Avatar for pprabhakar

i want some information ab function pointers , just how it will work ,addvantages osf function pointers

Member Avatar for Narue
0
130
Member Avatar for woopsor

I am new to JSP and am having trouble with an if statement. [code=jsp] <c:if test="#{authorizedProduct.product.product.orderMethod}=='H'"> <h:outputText id="orderMethod" value="#{authorizedProduct.product.product.orderMethod}"/> </c:if> [/code] The order method does equal H because it will display that if I don't put in inside the if statement. Can someone help me with my if statement syntax …

Member Avatar for woopsor
0
80
Member Avatar for pdwivedi

I have several .CPP and .H fles which i want to compile together. These files are used for PLC and Oracle database communication. How can i compile these files? I have Borland 2006 C++ IDE, also VC++ IDE. Please help. Thanks in advance. Prashnat

Member Avatar for Ancient Dragon
-1
82
Member Avatar for ITapprentice

I've seen tons of examples, but I can't seem to find what I need. I'm pretty new to programming, only been doing it for 9 months. Here's what I'm trying to do. I'm loading a file with the below info. 12 Item1 15 1 Item2 10 1 Item3 1 2 …

Member Avatar for Member #46692
0
2K
Member Avatar for koyong

[code=c] #include <stdio.h> #include <string.h> typedef struct { char item[50]; int date[15]; float price[5]; int amount[10]; float total[10]; }EXPENSES; EXPENSES aExpenses; int getOption(); void input(); void viewAll(); void del(); void edit(); int main (void) { int done = 0; int option; //while (!done) option = getOption(); if (option == 5) …

Member Avatar for hilia
0
308
Member Avatar for CaliVagabond

I've been tring unsuccessfully to find information on what each language, C and PHP, have to offer in terms of working with MySQL. Just wondering if anyone out there has preference for one or the other and why. I understand that PHP is supposed to have alot of built-in functionality …

Member Avatar for Member #46692
0
134
Member Avatar for moremore

hi everyone! sorry for not introducing myself. for being rude. well, i am from the philippines, i think you know it already. i'm not that good, meaning a professional in programming i'm just a newbie, still learning many things, i am hoping to know a lot from all of you …

Member Avatar for efmesch
0
122
Member Avatar for studgirl

I'm in the end of my final year project which is the time of developing. I'm confuse to use which program language to do my project as all current programing language i have a very basic of it only. current basic knowledge i have in are java, programing c and …

Member Avatar for Ramy Mahrous
0
188
Member Avatar for shruthi.j

Please send a sollution to this . I have a csv file named file.csv. I need to read that using array and then sort them based on the column. please can you help in the sorting technique.

Member Avatar for Ancient Dragon
0
135
Member Avatar for Sanchez10

Would anyone be able to help me get started on writing a program to implement a page-replacement algorithm suchs as FIFO?

Member Avatar for vas555552006
0
90
Member Avatar for alsoumhi

Hi guys, how are you? I need your help in a tic tac game, I have created a program that asks a user to specify first the index whether [0][0],[2][1],[2][2],etc..and to enter the char letter either 'x' or 'o' but I don't know where is the wrong? can any any …

Member Avatar for Ancient Dragon
0
121
Member Avatar for tehloki

I'm trying to implement a Double-Linked List ADT in an array (contiguous memory only, no dynamic allocation at runtime). So far, all my code does is generate a seg fault whenever I try and add a new element. Here's the whole ADT, if anybody feels like looking over it. FILE: …

Member Avatar for Narue
0
157
Member Avatar for arvindishukla

Hi All, Small can some please let me know hpw to use logical OR in csh scripts, below is the code line which is not running and i don't know why it is entring in "if" statement, even though i'm inputing value "1", set ans = $< echo $ans if …

Member Avatar for arvindishukla
0
442
Member Avatar for dc101

Hello, I can't seem to find any example code where a 2-dimensional array is returned from the function. This is my code: [code=C] char *updateBoard(char board[3][3], int position, char piece){ //board is changed here //want to return new board return board; } [/code] any suggestions are much appreciated.

Member Avatar for alsoumhi
0
112
Member Avatar for aldebaran31

I have written a program in c. It's relatively simple, but I need to learn how to write a help file that can access the documentation within the program and output it, for example, I would like it that if the user were to type help input at the command …

Member Avatar for Salem
0
89
Member Avatar for muhammad amir

hi, in my last lecture i had faced a quiz, it was related to two dimensional array.i was unable to solve it.the question is "you are required to find a generic formula of the two dimensional array that how memory is being allocated for two dimensional array ?how compiler know …

Member Avatar for jotsaroop
1
132
Member Avatar for sagarvs

hello everyone, Am a btech student.Iam now doing a project of watermarking using dsp processor.for that ,the image processing is to be done in borland C and using code composer it shud be called to a dsp processor.so if anyone,can please help me to get program codes for accessing a …

Member Avatar for sagarvs
0
109
Member Avatar for sbakca

can anyone tell me how to write this in LC3 thanks [code=c] for (i=0, i < 3001, i++) { if (i == 0) A[i] = 0 A[i+1] = 0 else A[i] = i } for (i = 1, i < 30,i++) { for (i+i; j < 3001) { if (A[i] …

Member Avatar for Ancient Dragon
0
490
Member Avatar for psyman_86

Hi, Im trying to implement a LCD screen as part of a engineering design project. The screen is to be connected to a M16C/62 microcontroller. In order to compile the software I am using the NC30WA V5.20 Release 1 compiler, as it is the compiler which comes with the development …

Member Avatar for psyman_86
0
310
Member Avatar for ginwah

Consider two computer systems A and B. For A, a branch is implemented by two instructions: Sub $3, $1, $2 #$3=$1-$2 Branch $3, 300 #take the branch if $3=0 For B, the compare is included in the branch instruction as in our MIPS architecture Beq, $1, $2, 300 All other …

Member Avatar for ginwah
0
119
Member Avatar for berty_xx

Hi, i need calculate date and time from Timestam received from NTP server. Can you help me with alghoritm? NTP stamp is numbers of second from 1.1.1900..... Best regards Peter

Member Avatar for Salem
0
63
Member Avatar for csteverun

Would anyone be so kind as point me to a resource that explains how to make calls to a DLL from a C program? My Google skills have failed. I found many web pages talking about how to CREATE a DLL, but none that explain the minimum code needed in …

Member Avatar for Salem
0
152
Member Avatar for furpacino

oke i am sorry for before i didnt know about this side so much. Now i am sending a file with attachemnt. I have to rewrite this while loop. if you help me i will presuade about your helps.

Member Avatar for Aia
0
136
Member Avatar for Bikram

helos...!!! wel am new to dis..!!! but i hav a code to it...!!! lets try out..!!!!! [code] #include<stdio.h> #include<conio.h> void main() { int i,j,count=1,flag,arr[5],p[5]; for(i=0;i<5;i++) scanf("%d",&arr[i]); p[0]=arr[0]; for(i=1;i<5;i++) { flag=0; for(j=0;j<=count;j++) { if(arr[i]==p[j]) flag=1; } if(flag==0) { p[count]=arr[i]; count++; } } for(i=0;i<count;i++) { printf("%d\t",p[i]); } getch(); } [/code] try dis …

Member Avatar for Narue
0
134
Member Avatar for maye13

I need to create a C program that goes like this: The user wil enter the number of seconds that the stopwatch should run starting at the equivalent time in hours, minutes and seconds of the input. The stopwatch runs until the time becomes 00:00:00. I don't want you guys …

Member Avatar for maye13
1
2K
Member Avatar for placo23

Hi, I'm pretty new in this forum and also new in C development. I was wondering if there's a way to play rm/rmvb files in a C application. I did a bit of research but without any success. Can somebody help me here? [B]UPDATE:[/B] Just as un update, I wanted …

Member Avatar for Salem
0
161
Member Avatar for need_ur_help

i hav made a linux based proxy sever in C in which a separate thread is invoked for each clieant but when a client request a page which is cached and a function reads its file, in mean time another client requests any page then a segmentation fault occurs. all …

Member Avatar for prabhat padhy
0
43

The End.