19,876 Topics

Member Avatar for
Member Avatar for Mac.Z

Hello, let's say the user enters a value in this format xx:xx:xx where xx is an integer, how can I assign each xx to integer vars? I though of everything I know.. can't use getline(),getchar() bcuz they accept characters only, can't use cin either.. thought of storing the xx:xx:xx on …

Member Avatar for Mac.Z
0
320
Member Avatar for mcole50

I need help someone im trying to delete the blanks of this array of strings stored in str[i] loop but cant copy wihtout delete spaces please help some one.. thanks [code=c] void deblank(char str[MAX_STR], char result[MAX_STR]) { int num; //variable to hold value for string length int i, j; // …

Member Avatar for mcole50
0
97
Member Avatar for wujianwei

can anyone provide me with the subtraction bwtween two huge integers?:'( I totally don't have any idea of solving the problem>>. Please...

Member Avatar for ~s.o.s~
0
37
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
94
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
150
Member Avatar for jrivera

I have a homework question in STL. The question asks to write an implementation of STL algorithm replace_copy_if(). My question is NOT regarding how do I code this, but more importantly what exactly does it mean? In other words, is it the same as just creating a function and not …

Member Avatar for jrivera
0
97
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 iamthwee
0
95
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
112
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
222
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
103
Member Avatar for squinx22
Member Avatar for Ancient Dragon
0
29
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
47
Member Avatar for squinx22

just asking where could I get complete tutorials about c++ application making through the net.. Ur help is highly appreciated.. thanx... :?:

Member Avatar for John A
0
76
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
98
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
62
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
41
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
91
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
99
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
92
Member Avatar for maher123

can any 1 of make a program in which there is a calendar which can go on the day, show the day, calculate the day,save the notes on the particular day PLZZZ. USE THE FOLLOWING FOR loop; if then; switches; array 1D ARRAY 2D ARRAY 3D STRING AND ALSO TRY …

Member Avatar for John A
0
52
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
147
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
93
Member Avatar for kpack08

[COLOR=#555555]Hi I was assigned a project in my C++ class. the project is to write a program using arrays. I have to write it for a plane that has 15 seats. Seat 1 to 7 is first class and seat 8 to 15 is economy. The program should be able …

Member Avatar for ~s.o.s~
0
165
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
66
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
147
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
126
Member Avatar for squinx22

how could I connect the saved implementations in subversion to the main/test program outside the subversion? I want to use the saved file in the subversion as a library so that i could use it in any programs... tnx in advance...

Member Avatar for thekashyap
0
115
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
96
Member Avatar for rapperhuj
Member Avatar for Ancient Dragon
0
93
Member Avatar for Tauren

Do you think the C++ Programmer Primer is a good book and will teach me alot of information?

Member Avatar for John A
0
87
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
83
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
248
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
197
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
56
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
94
Member Avatar for Brent.tc

For any of you who have posted at my previous questions [COLOR=darkorange](this is mainly directed towards Ancient Dragon) [/COLOR][COLOR=black]you know that I have a tendancy to ask about things I have nearly no knowledge of.[/COLOR] [COLOR=#000000][/COLOR] [COLOR=#000000]This time is no different, I wish to know how to send a string …

Member Avatar for ~s.o.s~
0
96
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
33
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
264
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
168
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
208
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
70
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 iamthwee
0
123
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
274
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
91
Member Avatar for ChimpusDupus

Hi, Is it possible to use the System.Drawing.Graphics methods without having to put code in the control's Paint event? If so, how? -James

Member Avatar for mkbmain
0
112
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
19
Member Avatar for winbatch

Is there a way using file handling functions to search within a text file to find the position of certain text WITHOUT having to read each character/line and evaluating it? For example, let's say I have a file of 'messages', where a message has a distinct start and end characters. …

Member Avatar for vijayan121
0
366
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
82

The End.