15,550 Topics

Member Avatar for
Member Avatar for karthiken07

How to create Run as Administrator option of windows OS in c code.. It is required for my software. plz help me.

Member Avatar for ChaseVoid
-1
164
Member Avatar for zapman2003

Hello, so the problem was to create a program that took input from command line to function as a rudimentary calculator: e.g 3 + 2, 5 * 4, 2/3 and so on. We were to take those arguments and pass them and a pointer to a function in to the …

Member Avatar for zapman2003
0
177
Member Avatar for xtian002

C program that will ask the user to input a secret message. Your program will then encrypt and display the cipher text using the encryption formula. Also, to recover the original message, your program should be able to decrypt and display the shift cipher text. Sample Program Interaction: Type your …

Member Avatar for abhimanipal
0
203
Member Avatar for tzushky

Hello hello, First of all I was thinking that some of the experts around here could actually start an exhaustive discussion about peripheral driver development for newbies or unexperienced, such as yours truly. I find that theory is in many places, registers of classic peripherals are found also, but never …

Member Avatar for Salem
0
134
Member Avatar for yila

[code=c] /*the program gots a string, and supposed to copy to the destination string every letter only once, and after a letter a num - a counter how many times a letter appeared in the original string for example - for kuku it should return k2u2 - but it returns …

Member Avatar for yila
0
96
Member Avatar for dondajr

Hi everyone o/ How can I concatenate a no print char from the ASCII on my string? For example: I have the str1 = "Jhon" and str2 = "Lucas" I wanna concatenate the special char 01 ( SOH) between the str1 and str2. can anyone help me? I hope so..!! …

Member Avatar for dondajr
0
280
Member Avatar for ithelp

Hello C experts, I am searching for a tool which can validate content of printf (static string part) against an english dictionary , have anyone of you come across such tool , here is the example to clarify. [code=c] printf("The value of the interface identifier is %d",i); printf("This intarface is …

Member Avatar for Dave Sinkula
0
94
Member Avatar for phoenix69

Hi there... I am a new member here. If my request is not appropriate anyone can delete it. I desperately need help with my school work. I have been doing this for about a week but still don't get how to do. This is a big programming work, so I …

Member Avatar for peter_budo
0
1K
Member Avatar for rocky289

I have been asked to create a student database using linked list. this is the question given to me. Write a C/C++ program to perform the task of maintaining student information for 123 College. You are to use a linked-list for storing the students’ information. Each node of the linked-list …

Member Avatar for Salem
0
7K
Member Avatar for abhimanipal

Is there any standard rules when we write the main function. I always thought the main function should always be written as [code=c] int main(int argc, char* argv) { ..... return 1; } [/code] But to my surprise, all these definitions are also correct . I got a compile time …

Member Avatar for Narue
0
242
Member Avatar for xavier666

[B]Here is the sample program[/B] [CODE]# include <stdio.h> # include <stdlib.h> // COMPILER : GNU GCC COMPILER // EDITOR : CODE::BLOCKS 8.02 struct test { int data; struct test *link; }; void change(struct test *ptr); int main() { struct test *fresh = (struct test *)malloc(sizeof(struct test)); int some_data = 10; …

Member Avatar for xavier666
0
139
Member Avatar for bryangarcia

hi there, it's been a long time since i posted a thread here. By the way, i'm having a hard time dealing with this code. Actually it's a menu driven and function-oriented program and when i compiled it, the error message is [U][B]expression syntax in function main [/B][/U] Here's my …

Member Avatar for WaltP
0
122
Member Avatar for markfisher

Hi I'm really sorry if my questions are stupid. Can someone please explain why we create wrapper function for standard library function? (Example: glib made wrapper function for malloc()) Why do we hook our program to standard library? (malloc, free, ...) Thanks Mark

Member Avatar for WaltP
0
73
Member Avatar for jmstickney

Hi Everyone, I am BRAND NEW to C and I am trying to make a program that takes 3 inputs. The first is a number, the second represents what base the first argument is, and the third argument represents what base this number should be outputted as. For example: convert …

Member Avatar for Dave Sinkula
0
84
Member Avatar for cktbrd

I need help with this. It has been awhile since I coded in c. [CODE] unsigned char test=0x00; char tmp[20]; //reserve 20 bytes for string switch(test) { case 0x00: tmp="Hello String 0"; break; case 0x01: tmp="Hello String 0"; break; case 0x0F: tmp="Hello String 0"; } [/CODE] All I want to …

Member Avatar for cktbrd
0
92
Member Avatar for Gaiety

[CODE]/* Function to find prime number if so return 1 else return 0 */ #include<stdio.h> #include<math.h> int isprime( int num ) { int i ; int sq = ( int ) sqrt ( num ); /* here check should be done for num = 0 and 1 other wise 0 …

Member Avatar for Gaiety
0
2K
Member Avatar for bharathilakshmi

I am need to process on images using C. I am working in fedora 10. I am using KDE C/C++ platform. I am interested to work under C only. I want to know if image reading is possible in C. if so what is the procedure. Regards Bharathi

Member Avatar for Ancient Dragon
-2
47
Member Avatar for fete

i want C++ programing which do- Addition - Multiplication - Finding the Inverse - Finding the Determinant

Member Avatar for xavier666
-2
108
Member Avatar for abhimanipal

Hello All, I am unable to understand this piece of code [code= c] main() { int i, j; scanf("%d %d"+scanf("%d %d", &i, &j)); printf("%d %d", i, j); } [/code] I got this question from a C problem set. I run this code and I have to give the i/p 3 …

Member Avatar for xavier666
0
138
Member Avatar for Kombat

The user types bits 110, or 6, and the program returns the 6th input. How do I get the program to scan in a binary and decimal value?

Member Avatar for Salem
0
110
Member Avatar for abhimanipal

Hello, I have a conceptual code related to the C memory allocation model if I have some code of this form, I will get a seg fault [code=c] int main() { char* p; *(p+5)='A'; printf("%c\n",*(p+5)); } [/code] But when I have some code of this form I do not get …

Member Avatar for WaltP
0
259
Member Avatar for Kombat

[code]Write a C function that implements a 3-bit mux, following the pattern I showed in class. Remember: &&, || and ! are used to represent the logic gates. For testing, your program should behave as follows: three control bits: 1 1 0 eight inputs: 0 0 0 0 0 0 …

Member Avatar for abhimanipal
0
264
Member Avatar for zangetsuu

my function was working all fine and dandy but boring until my friend separated the function for me which we are suppose(required by teacher) to do and now my program stops after i enter the first and last name ( i was the one that added multiple return 0;) i …

Member Avatar for zangetsuu
0
1K
Member Avatar for johndoe444

In the following code: [CODE]for (int i = 0;i < num_neighbors && i != msg.source && neighbors[i].status == EDGE_STATUS_BRANCH;i++) { .... } [/CODE] loop body was never entered. Where as after making this change: [CODE]for (int i = 0;i < num_neighbors;i++) { if (i != msg.source && neighbors[i].status == EDGE_STATUS_BRANCH) …

Member Avatar for apegram
-1
83
Member Avatar for tinek

i have an assignment to make a program that forecast the date given by the number of days by the user including leap years. example: Input date: November 20, 2008 Input number of days to forecast: 100 Forecast date: March 01, 2009 pls. help thank you ;)

Member Avatar for Dave Sinkula
0
98
Member Avatar for blue3hree

hi.another post by me.ehehe pls check this code.i wonder how this would work: this program asks for the last and first name of the user.and at the same time it must separate the first names of the user.for example, the name of the user is juan miguel bautista. it will …

Member Avatar for Ancient Dragon
0
189
Member Avatar for D_switch

please help im really out of ideas. this program is a phonebook that can store unlimeted mobile numbers, landline numbers and email addresses, this program also deletes, edits,inserts and sorts and display all the records. this is what i've got so far: [CODE]# include <stdio.h> # include <conio.h> # include …

Member Avatar for WaltP
0
4K
Member Avatar for qtdinesh

[B]i need c program for [/B] [B]1.[/B] "[B]menu driven in c program using pointers[/B]. [COLOR="Red"]1.comparition of two strin , 2.length of two string, 3.reverse, 4.palindrome all without using string function" [/COLOR] [B]2.[/B] "[B]menu driven program using pointer with array[/B]. [COLOR="Red"]1.addition of two matrix, 2.subtracion of two matrix, 3.multiplication of matrix, …

Member Avatar for Ancient Dragon
-4
177
Member Avatar for Gaiety

i am clear with the concept of Array of pointers & pointer to an Array. but i wonder what is the advantage of creating a pointer to an array though the same can be done just by using twod array with row and col indexes. please some let provide me …

Member Avatar for Ancient Dragon
0
73
Member Avatar for mitesh rao

heah pls can u send me some progmmes to my email id ie...[I]<<snip>>[/I] pls

-5
72

The End.