18,491 Topics

Member Avatar for
Member Avatar for fhshockey05d

The ultimate goal is to send simple messages ("GH", "HC", etc.) to a CMUcam2 and to read what messages I get back. I need help in setting up a serial communications port in Windows. I have seen how to open the port on other threads on this website, but I …

Member Avatar for Ancient Dragon
0
231
Member Avatar for binaryboy

Hi all, Having some trouble with an assignment. My program should store lists of names and ages and sort the list by name (alphabetic). Here's my current attempt [code=c] #include<stdio.h> #include<string.h> // struct to hold the data typedef struct _data { char name[5][30]; int age[5]; } data; int main() { …

Member Avatar for Ancient Dragon
0
148
Member Avatar for cjwenigma

Hello.. I'm trying to use OpenGL to draw the great pyramid model and have it rotate.. i'm having trouble with my points as you can see they are commented out. I'm also trying to figure out how to turn the eye point and how to rotate it... here are my …

Member Avatar for jbennet
0
431
Member Avatar for Pierrot le fou

Hello ! I am looking for a paper that reviews the currently available commercial C compilers, in order to choose one of them. My principal expectations for a C compiler are: efficient debugging, user-friendliness and optimisation possibilities... So far, I selected more or less two compilers (Visual C++ and Borland …

Member Avatar for Narue
0
132
Member Avatar for manojkumar2004

Hi, I am new to this forum so please bear with me. I want to read the bios settings (through a program) and if boot option is hard disk then i want to change the same to network boot (should save also). In nutshell, i want to configure the settings …

Member Avatar for Nick Evan
0
74
Member Avatar for asilter

i have a loop displaying current number of file which is being created. [code] for(i=1;i<=nFileCount;i++) { ... printf("%d. file has been created\n",i); } [/code] but i dont want the display to write ". file has been created." again and again as a list. I want only the i change. how …

Member Avatar for Salem
0
101
Member Avatar for NatalyC

Hello :) I´m Nataly Medina, and I like C xd I have many hobbies, such playing drums, guitar, drawing, skateboarding, basketball and ballet :P Well, mm as Howdy said, This is my first try at this forum, and I´m new in C, so I think I need your help :) …

Member Avatar for NatalyC
0
75
Member Avatar for ITapprentice

I am opening a file for writing and changing it a bit. I have changed all uppercase characters to lowercase. I have also deleted all characters that are not alphabetic, but I can't delete apostrophes that occur after and before another alphabetic character (i.e. the word "there's" or "don't" would …

Member Avatar for Narue
0
254
Member Avatar for locy

how do i write the following functions:can somebody help me with this programm? [code] int lengthOfString(char *string); [/code] the longer the text that is given,the longer the text caculation [code] int letsFactorise(int charCount); [/code] the length of the texts in order of prime number,if no prime numbers then give Error-code …

Member Avatar for Aia
0
86
Member Avatar for theteamdrunk

I am writing code that accepts a string of a filename, then capitalize the letters, not changing any numbers or special characters. I think I am on the right path, but can some one give a little push to the right direction. [code] #include <stdio.h> #include <string.h> #include <stdlib.h> #include …

Member Avatar for Aia
0
241
Member Avatar for piscean123

Peoples i have tried to make this simple progrem in C... that will print alphabets A to Z and their equivalent ASCII code.. like this A 65 B 66 . . . Z here is da source code... int main (void) { char code; for(code = "A";code <= "Z"; code …

Member Avatar for Narue
0
158
Member Avatar for rpjanaka

hi all, i want to get the dependancy graph from the make file or make rules. please if anyone can, help me to do this

Member Avatar for Duoas
0
96
Member Avatar for NatalyC

Hello everybody :) I have a problem about sorting a linked list. The following is the code that I wrote in C, it works well at this moment; it just generates random numbers, it just prints the random numbers generated and the even numbers. But I need to sort these …

Member Avatar for NatalyC
0
111
Member Avatar for abhishekgahoi

/*please try to this pg in gcc*/ #include<stdio.h> main() { char a,b; printf("enter the char for a"); scanf("%c",&a); printf("entered value of a is = %c",a); printf("enter the char for b"); scanf("%c",&b); printf("entered value of a is = %c",b); }

Member Avatar for Narue
0
35
Member Avatar for tech2chill

wap to print following pattern?? [code] ABCDEFGFEDCBA ABCDEF FEDCBA ABCDE EDCBA ABCD DCBA ABC CBA AB BA A A [/code] the pattern is not showin up proper,,but hope u guys get it.. its kinda /\ shape formation b/w those letters this is wat i tried out..... int i,j....; int m=65; …

Member Avatar for tech2chill
2
512
Member Avatar for BensonRoss

This is another problem that I'm having that goes along with a previous question that i asked. The basic program is that a person puts in two DNA strings that consist of only A,T,C,or G. DNA strings work to where A can only match with T, and G can only …

Member Avatar for Salem
0
105
Member Avatar for agrawalashishku

I am using 32 bit AT&T version of assembly on linux. Someone please tell me how to convert an integer stored into one ot the registers to a string that can be printed. e.g. 0x00066 should print as 102.

Member Avatar for Duoas
0
121
Member Avatar for MiTiM

I have one problem, and i have no idea what is happening? THE output gives some strange things: type of your cpu is: amd cpu speed is: 123 enter the year when it's produced 2000 enter the price of your computer [B] scanf: floating point formats not linked[/B] abnormal program …

Member Avatar for Salem
0
339
Member Avatar for Fredszky

I spent 5-6 hours today to try to get a working searchfunction for my textfile, can someone please put me in the right direction? I have this textfile, its a register over contacts: [code] Number Contacts = 3* James Brown:555-12345:[email protected] Jack Yellow:555-42345:[email protected] Sally White:555-12345:[email protected] [/code] For example, i want to …

Member Avatar for Fredszky
0
122
Member Avatar for pdwivedi

I want to open a text file in a c program which is on desktop.How can I print the texts written in the file on screen.Please help [B]Regards Prashant[/B]

Member Avatar for WaltP
0
132
Member Avatar for BensonRoss

I am new to the world of C but am enthusiastic nonetheless, so pardon me if this appears to be a particularly basic question... I am attempting to write a program that uses DNA strands.. which consist of A,T,C,and G characters... The user is prompted to input a DNA strand. …

Member Avatar for Aia
0
200
Member Avatar for aaabhish
Member Avatar for Salem
0
189
Member Avatar for monto

hi there everybody, i want to include exe files through file handling commands.how can i do this? regards monto

Member Avatar for Duoas
0
85
Member Avatar for donaldunca

I have some problems: - How can I erase a file? - How can I create a random string has 8 letters? This is my code to create a random string has 8 letters: [CODE] char *b=""; int i,j; FILE *f=fopen(file,"w"); for(i=0;i<4;i++) { for(j=0;j<7;j++) *b+=char(random(27)+65); fprintf(f,"%s\n",&b); } fclose(f); [/CODE] But …

Member Avatar for Ancient Dragon
0
118
Member Avatar for Sowtis

Hey everybody, I'm new to this forum and I was just wanting to introduce myself! While I'm here, I need to find a good, free compiler for C / C++ newbies like me. Also, I need a free C++ tutorial. If anybody knows one, please let me know.

Member Avatar for Member #127113
0
42
Member Avatar for balajimarisetti

I'm newly graduated student(MCA). I want a new pc that meets my programming requirements(C/C++ & Java).What could be the best configuration? What is the best and latest compiler in C/C++ on windows platform(OR MS-DOS)?

0
18
Member Avatar for redaqen

EDIT: Please note, this assignment was already submitted. Well for our assignment this time around, we had to write up a BASIC editor. It had to sort lines of code numerically. Each line would never be more than 80 characters long and there would never be more than 100 lines. …

Member Avatar for Ancient Dragon
0
171
Member Avatar for toucan

I started working with MIPS a couple of months ago and now I need to edit a given string so that it will only display the digits, arithmetic symbols and parenthesis that were in the original string as output. I though I could go ahead an print every string that …

Member Avatar for Duoas
0
1K
Member Avatar for sumachitti
Member Avatar for newbeginney

Hello just wanted to introduce myself to all you ine people out there I have just recently decided to change me attitude my occupation and my Brand of cereal(dont ask ) currently working as a phone operator, which I no longer enjoy (Due to QA). I am now seeking knowledge …

Member Avatar for jasimp
0
161
Member Avatar for asilter

unsigned int is 4 bytes in the system i'm programming. i printed sizeof(unsigned int) and it said 4. [code] int main(int argc, char * argv[]) { unsigned int a = 0; long int b = 2607503366; /* the b data type must strictly be a long int */ a = …

Member Avatar for Salem
0
127
Member Avatar for asilter

[code] unsigned int nBolum = 0; unsigned long nKalan = 0L; unsigned long ulA = 0L; unsigned long ulB = 0L; ... printf("ulA=%u\n",ulA); printf("ulB=%u\n",ulB); nBolum = (unsigned int) ulA/ulB; nKalan = (unsigned long) (ulA%ulB); printf("nBolum = %u\n",nBolum); printf("nKalan = %u\n",nKalan); ... [/code] it prints; [code] ulA=2607503366 ulB=16777215 nBolum = 155 …

Member Avatar for Salem
0
166
Member Avatar for asilter

[code] unsigned long nBolum = 0L; unsigned long nKalan = 0L; unsigned long ulA = 0L; unsigned long ulB = 0L; ... printf("ulA=%u\n",ulA); printf("ulB=%u\n",ulB); nBolum = (unsigned long) ulA/ulB; nKalan = (unsigned long) ulA%ulB; printf("nBolum = %u\n",nBolum); printf("nKalan = %u\n",nKalan); printf("HVFE.c exiting\n"); exit(1); [/code] it prints : [code] ulA=2607503366 ulB=16777215 …

Member Avatar for asilter
0
3K
Member Avatar for Ratte

I have a file of 14 functions. I know I need an extern array of 14 bools. If something goes wrong in one of these functions, the function should modify its respective array member to false. I want the main program to be able to access the array members to …

Member Avatar for WaltP
0
108
Member Avatar for nikolaos

i have the following struct [code] typedef char * typos_stoixeiou; typedef int metritis; typedef struct korifi *kdiktis ; struct korifi { typos_stoixeiou dedomena; metritis counter; int kleidi; int arithmospaidiwn ; korifi *a[100]; }; [/code] if i try this [code] for(int s=0;s<size;s++) { root->a[s] = (kdiktis)malloc(sizeof(struct korifi)); root->a[s] = NULL; }[/code] …

Member Avatar for Duoas
0
183
Member Avatar for jacknight

I'm wondering what steps I have to take to make progress in my programming skills. I am just starting my first semester as a computer engineer, and I picked up a lot of the syntax relatively quickly but I still have trouble solving a lot of the problems we get. …

Member Avatar for Ancient Dragon
0
126
Member Avatar for Ratte

I need to write wrapper functions for fork and signal functions. These functions will handle errors by fork() and signal() and exit, if an error occurs. The problem is I am not sure exactly what to check for on either function. Here is some sample code for both of them. …

Member Avatar for Ratte
0
490
Member Avatar for amishosh

Hi! Up until today I've been writing C with Borland C dos version. Only g-d knows why the school I go to teaches us C on that. I want to start using MS's Visual Studio and I'm totally lost. It's a whole new enviornment of work. All their tutorials and …

Member Avatar for Member #46692
0
203
Member Avatar for Ratte

I am writing a server function and an error message is defined as: [code] #define UNKNOWN "Unknown" [/code] I have a function: [code] void search(int sockfd) { FILE *file; char arg1[MAXLINE], arg2[MAXLINE], title[MAXLINE], line[MAXLINE]; file = Fopen (PATH, "r"); while (true) { if (Readline(sockfd, title, MAXLINE) == 0) return; Fgets …

Member Avatar for Member #46692
0
159
Member Avatar for toxic

hello. i'm new here and new to C programming so would appreciate any help with a problem i have. how can i copy the contents of a command line argument e.g. argv[1] to a string declared within main() e.g. filename[30] cheers..... PS this isn'y my homework:lol:

Member Avatar for Duoas
0
18K
Member Avatar for phylon

Hello I am having no problem while returning 1 dimensinal array But am having trouble with 3 dimenional array No problem with this code [CODE]float Mat[][][]; float Mat[]; float *funct1(void) { return Mat; } void funct2() { float *Mat; Mat=funct1(); } [/CODE] But this doesnt work [CODE] float Mat[][][]; float …

Member Avatar for mank
0
123
Member Avatar for piscean123

Can anybody give me the source code of ANY of the following programs.... me newbie to C.... 1. Write a program which takes 10 numbers as INPUT and tell which one is GREATER. 2. Write a program which takes 10 numbers as INPUT and tell which one is SMALLER.

Member Avatar for piscean123
0
121
Member Avatar for pogosecure

Please help me to resolve my problem. How to print a set of character in bold form in "c" or "c++" language.

Member Avatar for Duoas
0
55
Member Avatar for muwaheedibrahim

can ayone share his knowledge related with hardawre and networking with me so that i earn my livelyhood from the start and in return ill pray from THE ALMIGHTY for increase his knowledge! thanks

Member Avatar for Ancient Dragon
-2
35
Member Avatar for chorei

hey all i have a real problem with fibonacci numbers i have calculated max fib(47) with my codes but i have a project that i need to calculate the n'th fib number which is get from the user and print the fib valu to the screen the numbers must be …

Member Avatar for Member #46692
0
290
Member Avatar for sanjuv

Given a grid of integers size n x m, (use n=100 and m=4 to test it), write a C program that can create 4 (m) children where each will compute the sum of row m (size n). Then, the waiting parent, once all children has computed their respective sums, it …

0
57
Member Avatar for Fiume

[LIST] [*]Name: Christa [*]Height: 5'11'' [*]Weight: 137 [*]Hair: mostly black, some ruddy brown undertones [*]Eyes: Hazel [*]Location: Washington [*]Age: 22 [*]Hobbies: writing largely worthless historical/fantasy fiction, drawing cartoons on the papers I grade, and learning everything I can in the meantime. [*]Relationship Status: engaged [*]Fav Music: film scores, video game …

Member Avatar for zandiago
0
148
Member Avatar for #include_rose

I keep getting this warning every time I compile the following code. Can anyone please tell me what I am doing wrong. Also, the printf(head->data) keeps saying that printf's argument is invalid. How do I print head's data? Any help is appreciated. Thanks, [CODE]#include<stdio.h> #include<malloc.h> typedef struct { int data; …

Member Avatar for #include_rose
0
315
Member Avatar for Aarthi Gopal

i had a prob wen i had to sort each column of a matrix. the prob s wen i use larger values say 2453,23465 etc. the sorted matrix returned garbage values.. y s that? n how do i find factorial for 300 n bigger numbers?? i'm not able to store …

Member Avatar for Ptolemy
0
115
Member Avatar for n.aggel

hi, i want to begin socket programming and interprocess communication but i don't where to begin....can anyone suggest some sources?? thanks in advance, nicolas PS:: sorry if the question is vague, but it isn't easy to be more specific....

Member Avatar for stupido
0
210

The End.