15,540 Topics

Member Avatar for
Member Avatar for infantheartlyje

Hi folks, I'm having a doubt. I write a letter in notepad and i saved it as 'letter.txt'. Then i realized that i forgot to say one matter in that letter. So i opened 'letter.txt' using any text editor such as notepad, wordpad or something. Now i inserted the letters …

Member Avatar for deceptikon
0
234
Member Avatar for fsemilla

good day to all... does anyone here have a basic tutorial on how to program using C for zigbee...? its just that i have a very important project task in my work which should be accomplished for three months:'( ...i do have basic...i mean enough knowledge programming in C but …

Member Avatar for agieli
1
2K
Member Avatar for Joniniko

Alright so basically i need to create a simple maths game in C. Involving addition subtraction and multiplication of random numbers. But i also need to add a timer to that. So lets say you are given 10 seconds to answer the question and every correct answer adds you 10 …

Member Avatar for JilMakias
0
449
Member Avatar for passionated

#include <stdio.h> int main() { int num, i = 1; printf("\n Enter any Number:"); scanf("%d", &num); printf("Multiplication table of %d: \n", num); while (i <= 10) { printf("\n %d x %d = %d", num, i, num * i); i++; } return 0; } Hi.. Can someone please patiently explain me …

Member Avatar for JilMakias
0
182
Member Avatar for SergioQ

Am not looking for a specific deleted file. Let me put it another way, and maybe someone can help me in another way.... Am looking for lost info. Files lopng deleted etc. But since this machine has bearely been used, it's posssible the data is sitting in an a now …

Member Avatar for YourGamerMom
0
97
Member Avatar for JilMakias

How can i send a file at my e-mail address? I want to write it in my C program. Is there any simple way to do that? I Use Dev C++ compiler. I am not using C# or VB. Thanks in advance for answering.

Member Avatar for DeanMSands3
0
6K
Member Avatar for vic s

hi, my name is vic...i got one problem cannot fix....output for the number of times each of the tasks has been invoked...i run 3 times each of the tasks but the output always is this program has run 1 times..... #include<stdio.h> #include<stdlib.h> void doTaskA(){ printf("Start of Task A\n\n"); int input_1, …

Member Avatar for DeanMSands3
0
230
Member Avatar for badboy11

Looking for an equivalent container class that matches to C#'s Arraylist collections class. Is there anything that comes close to a container that can provide index based enumeration as well as hold multiple data types. I am trying to create an vector that can hold multiple data types. For example: …

Member Avatar for badboy11
0
966
Member Avatar for drewangel

hi all, i need to know how to create a thread using pthread_create()? i have never used pthread in c. am i supposed to used function pointer? how to pass arguments in thread function? i need to know everything about pthread_create(). and yes i am using turbo c++ compiler and …

Member Avatar for DeanMSands3
0
722
Member Avatar for badboy11

Need help with implementing a pure abstract class via inheritance, using namespace to wrap all my classes to avoid conflict with others. I have been able to build and run the code successfully if I remove namespace wrapper from my abstract class and all classes that inherit from my pure …

Member Avatar for badboy11
0
253
Member Avatar for jatinkhandelwal

if would like to print the size of data type entered by user. how can i do so (without using case and if) is it possible to store the data type in a string and print the size of data type in that string???

Member Avatar for Ancient Dragon
0
122
Member Avatar for modesto916

Hi everybody, I am learning C at the University, and I want to study by myself to avoid difficulties there, I am doing some exercises from a pdf that I got, and it asks me to write a program to invert a string using only what was explained in the …

Member Avatar for modesto916
0
162
Member Avatar for Ich bin würdig

Hi guys ! I've made a program that marks a seat taken X in an airplane .. So, here's what I've done.. it runs , but when i try to input other seat code, i.e., 1G, the no.2 in the grid becomes 88.. and I don't know how did that …

Member Avatar for zeroliken
0
116
Member Avatar for shanki himanshu

cant we compare two for inequality? i mean if i have a char array 'a' and i want to know the number of digits in an array which is not '4' or not '7' i.e if my array has value 4567778 the output should be 3 as there are three …

Member Avatar for DJSAN10
0
73
Member Avatar for gynmd

i'm studying file processing. when i execute the second code that Reading Data from a Sequential Access File something goes wrong with it. i couldn't find what is wrong. is there anyone who can help me? [CODE] /*creating a sequential file*/ #include<stdio.h> int main() { int account; char name [30]; …

Member Avatar for nairulhadri
0
225
Member Avatar for nairulhadri

When i try to input this data: 11 jack 90 22 mike 99 the result will be on the attachment. [CODE]/*Create a sequential file*/ /*"w" is a made for creating a file for writing*/ /*if the file already exists, it will discard the current contents*/ /*%s stands for string is …

Member Avatar for WaltP
0
221
Member Avatar for sagarnarasgonde
Member Avatar for student_learner

suppose that i write a program in turbo c: Q1.) the operating system program is in RAM.(yes or no?) Q2.) the turbo c application is in RAM. (yes or no?) suppose that i have written this simple code: [code] #include <stdio.h> #include<conio.h> void main() { clrscr(); int a=2,b=3,c; c=a+b*3; printf("%d",c); …

Member Avatar for rubberman
0
329
Member Avatar for Candace Parker

Good day, people! I have here a code in C that needs improvement. It should list all the permutations of ABCDEF where C and E should be beside each other in any order (CE and EC). I know that I must treat C and E as one so I used …

Member Avatar for WaltP
0
3K
Member Avatar for programmerb

please someone help me in printing 2 outputs in c using for or while loops . i am a begineer and i need help fast please. 1st pattern : 0 111 22222 3333333 444444444 55555555555 upto 10 . 2nd pattern: ABCD EFGH IJKL MNOP QRST UVWX YZ PLEASE HELPP

Member Avatar for inspire_all
0
114
Member Avatar for Matkoo

Hello, guys. I made a program to compare numbers, Example input: [QUOTE] 1 3 10 845157 2 1101101 16 5AE12 [/QUOTE] It transfers numbers from different number system to decimal, then it compares them, but it is not so fast as i need, maybe just a little advice needed, I …

0
162
Member Avatar for srinath1

inr main () { int x=3,y=4,z=4; printf("%d",z>=y>=x), } the answer is zero ..how??

Member Avatar for sharathg.satya
0
177
Member Avatar for ohblahitsme

Hello. I've been working on this program that reads input from the user and attempts to put it in a file called profile.txt I've got it to work (I checked this by making it output the file to the terminal), and from what I can tell, it does create the …

Member Avatar for ohblahitsme
0
169
Member Avatar for withinboy

[CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> void addToStart(); void addToEnd(); void printList(); void removeNodeAt(); void createList(); void menu(); int option; struct node { char cName [50]; int cNumber; char tDescrip [50]; struct node *next; }*newnode, *display, *temp, *list, *prev, *head, *tail; main() { do { menu(); switch (option) { case …

Member Avatar for sharathg.satya
0
282
Member Avatar for Nevicar

Hi everyone, I haven't really found much here on how to input into functions and I'm looking for more information on it. Basically my problem is this: I have to make a function that calculates feet into yards, and I'm trying to find out how to make it so I …

Member Avatar for frogboy77
0
224
Member Avatar for ram619

The output is 2011. Can anyone plz tell me how it is so ????[CODE=c]#include<stdio.h> #include<conio.h> void main() { char c[]="GATE2011"; char *p=c; clrscr(); printf("%s",p+p[3]-p[1]); getch(); }[/CODE]

Member Avatar for ram619
0
116
Member Avatar for Gaiety

I have created few files and Makefile in the same place. I have read in below link about the special variables $@ and $< and used as so. [URL="http://www.cs.colby.edu/maxwell/courses/tutorials/maketutor/"]http://www.cs.colby.edu/maxwell/courses/tutorials/maketutor/[/URL] but when the say make i keep getting the error [ICODE]gcc -o calc *.o /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../../crt1.o: In function `_start': (.text+0x18): undefined reference …

Member Avatar for Gaiety
0
177
Member Avatar for jaymayne

Need help making a module that sorts 4 arrays this how it started out void dataSort (float sLengthArray[],float rSlopeArray[],float speedArray[], float size) { void swap (int *x,int *y); int pass,j; for (pass=0;pass < size-1; pass++) { for (a = 0;j< size-1; j++) { if (slengthArray[j] > slengthArray[j + 1]) { …

Member Avatar for zeroliken
0
255
Member Avatar for shaunchu

So, I'm doing a test of strtok and my csv reader to fill an array of structs. Each line in the csv has a bunch of country information, and I'm only pulling the 2nd, 3rd, 8th, and 9th fields in each line to make the structs. My biggest problem at …

Member Avatar for shaunchu
0
173
Member Avatar for ram619

The output of this code is "hhe!". Upto "hhe" I can figure out what is happening but, where does this "!" came from? ASCII value of "!" is 33 and here I don't think we are anyhow getting this value. Thanks in advance[CODE=c]#include<stdio.h> #include<conio.h> void main() { static char s[25]="The …

Member Avatar for ram619
0
202

The End.