19,876 Topics

Member Avatar for
Member Avatar for Tenjune

So here's the problem: A function that will display all the vowels from the string. PLease help me

Member Avatar for N1GHTS
0
76
Member Avatar for Panathinaikos22

Hello, I create a delayer for something but it dont work right, that i want is 1, Load Form 2, Draw a text in TabPage 3, Show a text in tabpage for 5 seconds 4, when delay end then add WebBrowser Control to TabPage PS: I forgot notice, when use …

Member Avatar for Mitja Bonca
0
177
Member Avatar for sumi1234

the aim of this program is to create a record of 20 members inputted by the user st the phone number is stored in 3 different parts e.g. 011-234-7891 where 011 is area code 234 is exchange and 7891 is numbr...every record must have a member id and member name …

Member Avatar for sumi1234
0
271
Member Avatar for sifuhall

I have not done development work for many years now but I decided to download the new (and free!) Visual Studio 2010 Express C#. I'm enjoying this, but for the life of me I cannot figure out how to data bind controls. Here is my setup: I have a SQL …

Member Avatar for sifuhall
0
111
Member Avatar for FinaL111

I'm having trouble wrapping my brain around this concept. I have taken two java classes before so this is my first C class. My question is about a portion of my assignment. Basically the assignment is it reads in data about a word search in the format like so: [url]http://pastie.org/2582599[/url] …

Member Avatar for FinaL111
0
280
Member Avatar for minimi

My program compiles and runs, but does not print any output. It is supposed to read the text file and output lines that contain the pattern (which this in case is Bob - so it should print Bobby, Bobbie, etc if those names are in the text file).. This is …

Member Avatar for minimi
0
247
Member Avatar for tayler

[CODE]#include<stdio.h> #include<conio.h> #include<dos.h> main() { int a,b,c,number; clrscr(); int ad() { clrscr(); printf("Enter first number"); scanf("%d",&a); printf("Enter second number"); scanf("%d",&b); c=a+b; printf("The answer is %d",c); } int sub() { clrscr(); printf("Enter first number"); scanf("%d",&a); printf("Enter second number"); scanf("%d",&b); c=a-b; printf("The answer is %d",c); } int mult() { clrscr(); printf("Enter first …

Member Avatar for hszforu
0
167
Member Avatar for functionalCode

Hey everyone: Can someone tell me why when I called printf in main I get a blank character. I ran this code in a C interpreter and it works fine, but when I compile with gcc and run it, it doesn't print out the new string. I get a empty …

Member Avatar for NP-complete
0
103
Member Avatar for cdudefire

For a class in C programming I have been asked to create a dice game. Here are the requirements. A player rolls two dice. Each die has six faces. These faces contain 1,2,3,4,5, and 6 spots. After the dice have come to rest, the sum of the spots on the …

Member Avatar for cdudefire
0
2K
Member Avatar for effizy

First off, this is my first c program and i am by no means a programmer so ignore me if i don't meet your standard and let those willing to show me how it is done respond. Problem Statement: I am trying to use "strtok" to tokenize the strings in …

Member Avatar for Ancient Dragon
0
5K
Member Avatar for vedro-compota

hi , guys/ I again have problem with C understanding. Please help . there's code = [CODE]/* */ #include <stdio.h> #include <stdlib.h> #include <limits.h> main() { char* inputstr; inputstr = simple_readline( "Please specify the input string (one more notification))" , 0); printf("\n You've specified string = %s\n", inputstr); getchar(); getchar(); …

Member Avatar for vedro-compota
0
244
Member Avatar for gauravrishi
Member Avatar for geeksforgeek

Help.....!! Please explain me the output of the following code.I am unable to understand why infinte loop is occuring for i>126. [CODE] #include<stdio.h> int main(void) { char i=2; while(i<=127) { printf("%d\n",i); i+=1; } return 0; } [/CODE]

Member Avatar for Narue
0
104
Member Avatar for kaleam

[CODE]#include<stdio.h> #include<conio.h> #define m 5 void main() { int sal[m],cl[m],i=0,j; int a1=0,a2=0,b1=0,b2=0,split; float gi[m]; clrscr(); printf("\nEnter salary and class for 5 people,Class '1'for risk,'0'for no risk:"); for(;i<m;i++) { printf("\nEnter Salary:"); scanf("%d",&sal[i]); printf("\nEnter Class:"); scanf("%d",&cl[i]); } for(;i<m;i++) { split=sal[i]; for(j=0;j<m;j++) { if(sal[j]<=split && cl[j]==1) a1++; else if(sal[j]<=split && cl[j]==0) b1++; else …

Member Avatar for gerard4143
0
89
Member Avatar for Ravic85

Hello everyone! I've made the mistake of not asking my teacher for help when I had the time. Now I'm stuck and lost. I didn't do this because I felt I should be able to figure this out myself since this is my major. So, I'm giving up and needing …

Member Avatar for Eagletalon
1
1K
Member Avatar for divyam_shukla

i have an existing database and i want to attach that database one time to sql server and when thee database is attached then it open that database

Member Avatar for kvprajapati
0
116
Member Avatar for CoolAtt

hi . can someone plz explain how to do regex in C. input: a text file. aim: read each line from the text & check if a RegEx pattern exists. finally return that pattern if it exists. plz share any algo or code snippets if u have.thx.

Member Avatar for rubberman
0
236
Member Avatar for Rupindersingh

The following program is supposed to sort eight strings in alphabetical order, but its not functioning properly. Can anyone please debug this [CODE]void main() { char *p[8], *s; int i,j,t; clrscr(); printf("Enter the strings:\n"); for(i=0;i<8;i++) gets(p[i]); for(i=0;i<8;i++) { for(j=i+1;j<8;j++) { t=strcmp(p[i],p[j]); if(t>0) { s=p[i]; p[i]=p[j]; p[j]=s; } } } printf("\nSorted …

Member Avatar for Rupindersingh
0
116
Member Avatar for shamusk

Hi everyone, i need to generate random numbers between two values a & b, where both a and b less than 1. Example a random number between a = 0.60 and b = 0.69. what i am trying to do is in C program temp_ins = a + (drand48())*(b - …

Member Avatar for shamusk
0
180
Member Avatar for shanker31

Hello every1 My name as you know is displayed out.I am a CS student and we have mini-project assigned to every1 in my class. I have finished around 50% of my project.I need help.. My question: I want to take input from the web page,do the calculation in background (in …

Member Avatar for Ancient Dragon
0
147
Member Avatar for sharma89bunty

Hello sir, Good afternoon! i am happy to get the help from you. for that thanku very much. but now i need help in the for loop. * * * * * * * * * * * * * * * here is the picture, i want the coding …

Member Avatar for Ancient Dragon
0
99
Member Avatar for sydsine

plz explain these function. how can w divide a number by 3 using only atoi function.

Member Avatar for cse.avinash
0
453
Member Avatar for techie929

Hi, I dont know why I am getting segmentation fault when adding the line 'int n' [CODE] #include <stdio.h> #include <string.h> #include <stdlib.h> int main(int argc, char *argv[]) { char* pStr; // no memory allocation int n; printf("enter a string\n"); fgets(pStr,20,stdin); printf("\nvalue of string is %s\n",pStr); while(*pStr!='\0') { printf("value of …

Member Avatar for techie929
0
112
Member Avatar for Master Mascus

Hey guys i got a question to solve, can anyone help me out.. Write a C interactive program that will encode a word or sentence entered by a user. The encryption will be done as follows: For any word or sentence (note: blank spaces, special characters are ignored here, i.e …

Member Avatar for Master Mascus
0
169
Member Avatar for thamilalagan

[CODE]struct NUMBERS { char name[MAXCHARS]; struct NUMBERS *value; };[/CODE] i am new to programming ...can anyone explain this for me ?

Member Avatar for cse.avinash
0
83
Member Avatar for cppgangster

Hi I want to learn network programing, but I dont know where to start. I want to do windows networking. Help please

Member Avatar for cppgangster
0
85
Member Avatar for D.M.

I need help! In this program, if you hit the ENTER KEY the program will display the word "newline". If you hit the SPACE BAR it will display the word "spacebar". But unfortunately, the second statement did'nt worked (SPACE BAR). help me.... [CODE]#include<stdio.h> main() { char n; scanf("%c",&n); if(n='\n') printf("newline.."); …

Member Avatar for Narue
0
108
Member Avatar for sunny124

Hi, I created a previous thread of re-sizing dynamic arrays. I got the answers to that question and I could re-size the dynamic arrays but when I tried to apply similar steps to creating a dynamic array of struct, my program compiles but crashes when i try to run it. …

Member Avatar for Narue
0
186
Member Avatar for murnesty

I'm currently choosing which data structure to use for my data logging. Just want to ask for suggestion which type of data structure is better. It has limitation on memory either store in microcontroller RAM or SD card. - I can't know the total type of logging it has. (for …

Member Avatar for Narue
0
155
Member Avatar for chiiqui

Guys help me please, the equation on 2/3 is giving the waterTemp to 0; how come it is not changing? and also, if the nWaterTemp reached 20.00or somewhere 20.00 to 21.00; it is supposed to print that "THe kettle is now on "Help please [CODE]#include<stdio.h> #include<stdlib.h> #include<cstdlib> #include<time.h> void wait …

Member Avatar for Moschops
0
252
Member Avatar for ROCK_ST@R

[CODE]#include<stdio.h> #include<stdio.h> #include<stdlib.h> struct bst { struct bst *left; int info; struct bst *right; }; struct bst root; void create(struct bst*,int); void preorder(struct bst*); void postorder(struct bst*); void del_leaf(); void del_singlechild(): void main() { struct bst *p; int n,c; char ch; root=(struct bst*)malloc(sizeof(struct bst)); printf("\nenter the info:"); scanf("%d",&root->info); root->left=root->right=NULL; do …

Member Avatar for D33wakar
0
229
Member Avatar for fullarmorzz

We are asked to input 10 integers where in we need to display: 1. The sum of all the odd numbers 2. The sum of all the even numbers I do not know how to make a statement and i do not know whether to use for or while and …

Member Avatar for ashok1514
0
204
Member Avatar for resell4
Member Avatar for sunny124

Hi, When i use realloc to re-size my array it is re-sizing it correctly but my some of my data is getting lost. Strange thing is that If I don't use realloc, I can still re-size my array by just increasing the index before inserting the data. In this case …

Member Avatar for Ancient Dragon
0
118
Member Avatar for daveoffy

I am working on a "searching" program. But it always returns a "." as the up directory or whatever. And I can't do an if statement to check if its a period or not. The goal is to get the only name of the folder in that directory. There is …

Member Avatar for MonsieurPointer
0
311
Member Avatar for NTxC

Hello, I need to write code which detects whether keystrokes are injected by applications (with SendInput, keybd_event) or are genuinely coming from the keyboard. I came across a possible solution: creating a WH_KEYBOARD_LL hook and checking the INJECTED flag. So I've made this so far: [CODE] HHOOK g_hHook; LRESULT CALLBACK …

Member Avatar for MonsieurPointer
0
443
Member Avatar for jayesh.rocks

Write a C program to read Roll number,Name and Marks of 3 subjects of a student using structure

Member Avatar for MonsieurPointer
-5
154
Member Avatar for muratgul

hi, u are so good at c, i saw some program that i looked for, but i dont look at result, i need a program, for beginner level of c programming (because i am beginner), converting binary to gray, gray to binary i only know while, if, for, a little …

0
53
Member Avatar for top_coder
Member Avatar for Narue
0
66
Member Avatar for aFg3

I want to create a simple file....with the command Example: [CODE]touch file.txt[/CODE] ok its created *BUT* ****I want to edit this file in shell and save it, writing EOF to finish. Any suggestions? How i do that? Thanks!

Member Avatar for aFg3
0
134
Member Avatar for D.M.

I have a program that reads the data from a stream. Let's just pretend that I already made file in C:\ (record.txt) and I wrote the following words: hello world me you But the program will display in this manner: hello world me you instead of: hello world me you …

Member Avatar for D.M.
-1
77
Member Avatar for dimmu11

I'm stuck on this function that is related to the game of life. It is supposed to randomly populate the game board with '*'s based on the user input (what percentage they want to be '*'). this is what I have so far, but it crashes when I try to …

Member Avatar for WaltP
0
133
Member Avatar for mdegges

Hi everyone, I'm trying to store user input into an array. The output looks like this: Enter the size of the arrays: 5 Enter the cells of array1: 1 2 3 4 5 Enter the cells of array2: 5 4 3 2 1 This is my code so far: [CODE] …

Member Avatar for mdegges
0
8K
Member Avatar for ambigouscase

Given the number of commodities bought, create a program that computes the total amount purchased in a fast food center. Assume that the following unit price of each commodity Fried Chicken= 29.75 Cheese Burger= 25.00 French Fries= 18.50 Soft Drinks=14.25

Member Avatar for cherrymae.calma
0
185
Member Avatar for NeilA

Hello All, My son (14) just finished a course on C# and I'm looking for some practice assignments for him. Can anyone tell me a good place where I can find such? Thanks in advance.

Member Avatar for skatamatic
0
54
Member Avatar for Aman6o

I need help understanding the increment operator and the output of this program. I am confused with the output of 'i' and 'm' According to me: i = 4 and m = 20 but, that is not what you get when you compile. Please explain. Thanks in advance. [CODE]#include <stdio.h> …

Member Avatar for Narue
1
146
Member Avatar for Zvjezdan23

Is there any way a user can input numbers into an array like you can in c++??? Or strings for that matter????

Member Avatar for Mitja Bonca
0
1K
Member Avatar for bizcat

Hello! I am fairly new to C, and trying to learn to deal with malloc. The objective for the code, is to allocate memory in order to store a string on the heap. Compiler says "Warning: assignment makes integer from pointer without a cast" "Warning: format '%s' expects type 'char …

Member Avatar for gerard4143
0
182
Member Avatar for Ich bin würdig
Member Avatar for Narue
0
174
Member Avatar for xxmp

Hello I have to function void lala_a(adktis *p) void lala_k(kdktis *p) These two functions are doing the same things but i want to make one function tha can accept adktis/kdktis something like this void lala(adktis *p); void lala(kdktis *p); Is there a way to do this in c? Thank you …

Member Avatar for xxmp
0
130

The End.