18,490 Topics

Member Avatar for
Member Avatar for Munsoned

Hello, I need to print a menu, displaying the available choices as characters, no problem. I need to store that character into a variable, then check to make sure that character isn't Q or q, no problem. However, if the user enters anything other than a, b, c, d, or …

Member Avatar for ft3ssgeek
0
118
Member Avatar for Rob111

Hi there, I need to make a piece of code in C that 1. opens a specified file, 2. Reads the data in the file and separates it as shown below, 3. Converts the strings into integers and then perfoms some manipulation on them, 4. returns the new values to …

Member Avatar for Rob111
0
125
Member Avatar for vuthcam

Would you mind helping me to solve the following problem!! I have a file [B]wires.inp. [/B]it is existing in c:\\ctemp\\vuth\\wires.inp. When i tried to open it : FILE *fwiresInp; fwiresInp=fopen("c:\\ctemp\\vuth\\wires.inp","r"); Error existed!!! it means that i cannot open the file above. Could u suggest me some solutions?? Is it because …

Member Avatar for WaltP
0
206
Member Avatar for civil1

i have assignment to submit on this monday. i don't understand what the question is,can anyone help me? [B]Projectile Motion [/B]You will recall the tutorial problem in which you computed the height of a projectile that was launched "straight up". In this case the height after [I]t [/I]seconds is given …

Member Avatar for Member #46692
0
113
Member Avatar for abhinav.sharma

I ask this question because I want to try out some probability theories and I want to get as close as possible to randomness. What my instinct tells me is that we cannot fabricate any function that is perfectly random, because we are in the first place defining an algorithm …

Member Avatar for abhinav.sharma
0
135
Member Avatar for jerryseinfeld

Hi everyone... again me... My new project is harder :) project wants to you how many records do you want to enter (easy part) surname name years doctor and illness. then asks to you 3 choices. 1- ascend surname 2- ascend doc 3- descend year ... and I guess I …

Member Avatar for Ancient Dragon
0
246
Member Avatar for addicted
Member Avatar for diegojoven

[I]<< split from [URL="http://www.daniweb.com/techtalkforums/showthread.php?t=35463&highlight=count+how+many+times"]here[/URL] >>[/I] how can i make this code to display how meany times a number appears in the array.. example... if there are 5 number 3 it will display this with asterisks.. 3 ***** and so on for each number... here is my code... i almost have …

Member Avatar for WaltP
0
119
Member Avatar for sillyboy

I am trying to use the c compiler in MIPS SDE 5.03. But when I try to compile I get an error. My c file is just hello world at the moment, I'm just trying to get it to compile. Anybody used this before or have any ideas what I …

0
69
Member Avatar for rapperhuj

why strcmp doesn't work of comparing all the characters (line, elments) in the database. what should i do?? :'(:'(:'(:pretty::pretty::pretty:

Member Avatar for Ancient Dragon
0
51
Member Avatar for fatboysudsy

Hi all, Am fairly new to the programming world, but am kind of struggling along. I have written a piece of code for a client program with has given me some errors that i just can't see when compiling. The errors listed are : client.c: In function `main': client.c:118: error: …

Member Avatar for WaltP
0
106
Member Avatar for sundarN

Hi all, consider the following xyxy9=ABC:ADC:uio xyoy10=DEF:DCF:uip ........................... .............................. 100 lines I want to compare the strings ABC and ADC........similarly DEF and DCF..... if they are equal then no operation is done else they are written in a single array thanks in advance.

Member Avatar for Lerner
0
75
Member Avatar for sundarN

Hi I want to list all files and directories under a given directory in C. Thanks in advance.:S

Member Avatar for Ancient Dragon
0
48
Member Avatar for saroonah

[COLOR=red][B]good day everyone [/B][/COLOR] [COLOR=red][B]i have a smart question and it is my homework i did not know how to start and what the ideas [/B][/COLOR] [COLOR=red][B]Can you help ????[/B][/COLOR] [COLOR=red][/COLOR] [COLOR=red][/COLOR] [COLOR=red][B]Write a linear-time algorithm that sorts [/B][/COLOR][COLOR=red][B]n distinct integers, each of which is between 1 and [/B][/COLOR][COLOR=red][B]500[/B][/COLOR][COLOR=red][B]. Hint: …

Member Avatar for Infarction
0
113
Member Avatar for NTa_04

hello.. i need help... Make an assembly program that ask 2 input strings. The 1st string is longer that the second one. The program will do the following : -Search how many string pattern that found in the 1st string, example: String1: [COLOR=#0000ff]GCA[/COLOR]TC[COLOR=#0000ff]GCA[/COLOR]GAGAGTATACAGTAC String2: [COLOR=#0000ff]GCA[/COLOR] there are 2 pattern of …

0
66
Member Avatar for ozwego

So I'm designing a Dictionary for one of my classes and I'm having quite a bit of trouble when I try to return a Position, which is just a pointer to a pair<string, Element>. I can't quite figure it out -- I suspect its something I did with my actual …

Member Avatar for ozwego
0
107
Member Avatar for Chicano0409

Hello, I keep getting segmentation faults when running this program. Could anyone help me with this? [code=c] #include<stdio.h> #define SIZE 5 void clearTicket(int ticket[SIZE]); void printTicket(int ticket[SIZE]); int main() { int ticket[SIZE]; int number; int sentinel; int i; /* Simple instruction prompts for the user's benefit */ printf("\nWelcome to the …

Member Avatar for Aia
0
105
Member Avatar for Pablo César

Dear colleagues, I have a BIG headache when I wish to toggle window mode from fullscreen to windowed and vice-versa with DOS applications. I need first to know in which window mode is beeing exhibited in one session. Imeans in WINDOWED mode or FULLSCREEN mode. And I do not know …

Member Avatar for Ancient Dragon
0
159
Member Avatar for Tales

For those who want to learn about windows, I leave the code I was looking for... "Programatically filling a ComboBox and setting it visible or invisible" [code] HWND hWndComboBox[10]; char numChar[20]; // String that contains a number converted to string int yPos = 160, xPos = 60; int counter1, counter2; …

Member Avatar for Ancient Dragon
0
98
Member Avatar for adimoga

hey ppl.. i`m searching for a nice software community. Can you provide a list wit other community like this? I want to make a comparation :) thank yoy, adrian

Member Avatar for adimoga
0
80
Member Avatar for FreeFull

Hello. I made an command-line application. Now I want tomake an gui version but I don't know which GUI I should choose. I want the executable to have requirements for libaries while running (so I don't think about using GTK). I tried QT but I don't know if I can …

Member Avatar for FreeFull
0
162
Member Avatar for tygerberg

Hi I've downloaded versions of flex and bison for xp. The problem is I don't know how to install them. the files say I should use the configure file, but I don't know how. Do I need a program to run the installation process?

0
74
Member Avatar for minyme

Hi guys, actually i'm thinking to swtich from Windows to Linux .. but i'm really confused .. there are more than 1 linux! RedHat, Suse, Mandrike ... etc what do you prefer? and what do you advise me .. ? and i'd be pleased if u gave me a brief …

Member Avatar for jay.smith
0
198
Member Avatar for aerian

HI CAN ANY ONE TELL ME HOW I CAN MAKE AN EXE FILE AS I HAVE MY PROGRAM IN c LANGUAGE PLZ REPLY SOON I NEED IT FOR MY PROJECT

Member Avatar for Ancient Dragon
-1
131
Member Avatar for inorbit

we have 2 face a problem in desiging a cell palcement techniqe using [U]force directed algorithm[/U] in VLSI. We have a matrix and want code of that relevant matrix to print that in c language.the matrix is as follow:- mod 1 2 3 4 5 6 7 8 9 Sum …

Member Avatar for thekashyap
0
109
Member Avatar for Elfshadow

I have trying C and so far it's gone great but this has been driving me mad today. I could swear scanf worked earlier but its crashing my programs? I know you get this problem when you forget the pointer thing & but this should work [code] #include<stdio.h> int main() …

Member Avatar for Elfshadow
0
148
Member Avatar for Dani

I'm taking an Operating Systems course in which I need to write some really in depth programs (more specifically, along the lines of a terminal based program which implements many system level unix-like commands). However, the catch is that this must be written in straight C, which I have no …

Member Avatar for Elfshadow
0
588
Member Avatar for rapperhuj
Member Avatar for Ancient Dragon
0
111
Member Avatar for psuspect

I have this simple program that counts characters in a line as well as a specific character z and Z. I am trying to figure out the simplest way to output my results to a file "outfile.txt". any ideas? #include<stdio.h> #include<string.h> #include<stdlib.h> int main(void) { char string[80]; char *s; int …

Member Avatar for Aia
0
99
Member Avatar for teteret

ok...i'm new to this c language and i was wondering what am i supposed to do if the user enters a string that is longer than my array size. for our assignment, we're supposed to ask for the user's name and our array size is supposed to be 20 characters. …

Member Avatar for Lerner
0
1K
Member Avatar for fulyaoner

Hi to all... In a MFC application, I need to change the background color of a drop down list - combo box control. IDC_MYCOMBO is the resource id and m_myCombo is the name of the control. I need to change the backcolor programmatically. Is there a way to achieve that? …

Member Avatar for fulyaoner
0
282
Member Avatar for ganesh_c

In the thread programming environment on the C language, we have to create a "struct" data structure if more than one arguments are needed. I need a two dimensional array on that struct. I got a syntax error when I declare it! The following is the code: [code=c] #include<stdio.h> #include …

Member Avatar for Salem
0
202
Member Avatar for srinath.sec

hi, how to find out a point in a linked list there is a circular linked list i need to point out when the circular linked list has started in a linked list

Member Avatar for Ancient Dragon
0
61
Member Avatar for pulse0

I was trying to write the falling letters program in C but could not figure out a way to locate a letter on the screen and make its y axis decrese every lets say 1 second? If I use either printf or cout it print the letter in one line …

Member Avatar for pulse0
0
111
Member Avatar for matsau

there appears an icon that has to move at a certain speed, everytime it appears you click on it and it increases speed after few clicks meaning the level is changing

Member Avatar for Ancient Dragon
0
36
Member Avatar for amano

Hello, I have a problem to print the whole string in argv[4]. here's my code #include<stdio.h> #include<string.h> #include<stdlib.h> #define XMAX 65 #define YMAX 32 char screen[XMAX][YMAX]; void printScreen(void); void fill(int, int, char[]); int main(int argc, char *argv[]) { FILE *in; int x, y,z; char a; if (argc!= 5) { fprintf(stderr,"Usage:\n\t%s …

Member Avatar for amano
-1
281
Member Avatar for spacecowboy123

Hi All, I am trying to convert an inputted user string into an array of ints, that will be used as hexadecimals. The user will only enter hex in the string. Does anyone know why the below code produces the following output. The first entry is incorrect, all the rest …

Member Avatar for WaltP
0
173
Member Avatar for Tales

I have this dialog box: [code] IDD_GRUPO_NOMBRAR DIALOGEX 447, 19, 226, 263 STYLE DS_SETFONT | DS_SETFOREGROUND | WS_POPUP | WS_CAPTION EXSTYLE WS_EX_CONTEXTHELP | WS_EX_CONTROLPARENT CAPTION "Nombrar grupos" FONT 8, "Tahoma", 400, 0, 0x0 BEGIN CTEXT "Por favor numere los grupos",IDC_STATIC,65,8,92,8 GROUPBOX "Los grupos iguales deben tener el mismo nombre",IDC_STATIC,16,24,189,212,BS_CENTER | …

Member Avatar for John A
0
250
Member Avatar for nandakishore

[code=c] char SerialGetc(HANDLE *hCom) { char rxchar; BOOL bReadRC; static DWORD iBytesRead; bReadRC = ReadFile(*hCom, &rxchar, 1, &iBytesRead, NULL); if (iBytesRead) return rxchar; else return 0; // return 0 if no character read }[/code] this is my code to receive data iam having doubt that in what format it can …

Member Avatar for Salem
0
78
Member Avatar for doiko

please help. i am a student and my teacher needs it till 2nd of September. please help my pass the class convert from decimal in binary or in the base of 8 numerical system, (it can be used the same interelation with the suitable parameters. Also, for the storage of …

Member Avatar for Member #46692
0
146
Member Avatar for jan1024188

How to check in windows Vista if DirectX 10 is installed? Sorry for wrong topic, you can MOVE it if you want.

Member Avatar for jan1024188
0
294
Member Avatar for xyz329

would you please help me on c program? my problem is how to arrange 100 numbers randomly in 4*4 cells how can we find the output like cell no of particles 1 7 9 34 2 23 87 . . . 16 90 76 53 70 i will be grateful …

Member Avatar for Member #46692
0
33
Member Avatar for nandakishore

iam having doubt on receiving data in serial port .from chipcon board iam receiving link quality packet to pc through serial port. i want to look the link quality value which i received from serial port in decimal (integer) value .i dont know how to see the received and sending …

Member Avatar for Ancient Dragon
0
100
Member Avatar for FoX_

Hi all; I've to use a dynamic array(2D) in my program in C. I've read some tutorials about this and I understood its mental.But still there exist a few points which I didn't understand. Here is a code: [code=c] int main(){ int **a, x; a = (int **)malloc(sizeof(int) * 10); …

Member Avatar for FoX_
0
142
Member Avatar for zam

plz help me with my program i want to create a program "LED Message Board Simulator" but i don't know how to start and to create them. can anyone give me example source code of that program?

Member Avatar for Salem
0
23
Member Avatar for civil1

hi. can you please tell me how to count digit which has genatreted by random number program? i.e= each time occurance of every digit means1,2,3,4........in a genareted random number? if you want to saw my effrot in this stuff,i can saw you it. thanks in advance to any one who …

Member Avatar for Lerner
0
95
Member Avatar for civil1

hi,this is sandy patel. i need simeone's help as soon as possible. i discribe my problem as under: [B]Problem Statement: [/B]This problem requires you to generate a series of random numbers. There are many algorithms that have been developed for this purpose. One scheme generates pseudorandom numbers by performing a …

Member Avatar for Ancient Dragon
0
267
Member Avatar for himanjim

Hi.. I'm trying to write a simple program to include a c file in another one.. TEST1.c #include<stdio.h> #include<conio.h> #include<test.c> void main() { printf("%c" str); getch(); } test.c #include<stdio.h> #include<conio.h> extern char str; void main() { str='A'; } Is somethin like this is possible??? Code didn't run successfully

Member Avatar for himanjim
0
132
Member Avatar for lapan

hi all..can someone help me how to transfer the C programming in Matlab??

0
44
Member Avatar for shmay

This is from my C mid-term study guide so you geniuses should be able to crack it easily: Write a function that will return a random double number. The function takes two parameters (both integers). The first parameter is the maximum whole-number value that number can be (the minimum is …

Member Avatar for Rashakil Fol
0
209

The End.