Posts
 
Reputation
Joined
Last Seen
Ranked #107
Strength to Increase Rep
+14
Strength to Decrease Rep
-3
85% Quality Score
Upvotes Received
206
Posts with Upvotes
176
Upvoting Members
109
Downvotes Received
36
Posts with Downvotes
33
Downvoting Members
23
73 Commented Posts
~488.69K People Reached
Favorite Tags
Member Avatar for mikeandike22
Member Avatar for vvsmario

I can not solve this problem. I should write a code for PROGRAM in C, which finds the longest word of the text enter by the keyboard. Plaese help me!

Member Avatar for Busuioc
-1
4K
Member Avatar for pvbhargav

Hi all, I have already used InitGraph and have given the path(C:\\TC\BGI) in Initgraph and checked the Graphics option in Linker Options. Still Iam getting this error. I want a solution. Can somebody pls help me. Its urgent.

Member Avatar for Sun_5
-1
14K
Member Avatar for Hi-Tone

Hi all, I trying to add two matrices together using a typedef struct, but i seems to get an error doing this. I asked my professor, but he couldnt help me. Is there anyone who might know why this problem is caused? Thank you so much! Code: /* Structures */ …

Member Avatar for Akbar_5
0
3K
Member Avatar for nivedita5

I am working with a code which stores the information of customers in a file called customer_details.txt then asks the user to enter a name and then searches for the name in customer_details.txt, if the name is found, the entire details of the user is displayed on the output screen. …

Member Avatar for 2teez
0
3K
Member Avatar for Louie_Rave

Hello, I'm just new here. I wanted some people to help me with my project. We were tasked to do a game using Turbo C. I already found some games that has source codes like snake, tic toe, etc. I wanted to be slightly different 'cause I know my classmates …

Member Avatar for markanderson4
1
4K
Member Avatar for tyrantbrian

Following is a matrix multiplication code written in MPI (Message Passing Interface) which could be run on CPU cluster for parallel processing. This has been successfully tested with two square matrices, each of the size 1500*1500.

Member Avatar for Gustavo_4
2
18K
Member Avatar for rizrash

Hey friends i am so excited to join this forum !! its been 3 month since i`ve been learning turbo C !! Now i`ve started lerning and making alot of programs !! Well i am going through one error which is quite funny !! i hope someone of you can …

Member Avatar for David W
0
660
Member Avatar for keval_hack

[I]Interesting tricky program using C & C++: [/I] [B]Program 1:[/B] Create a Program which produce output "Hello World" , the program must not contains semicolon ; in other word any statement of the program will not have a termination semicolon. [B]Program 2:[/B] Write a C or C++ program which run …

Member Avatar for Ahamed_1
-1
2K
Member Avatar for sureshshan1292

Write a C program to Remove even numbers and fill it with zeros. Note: You can use only one loop for your logic. Two variables apart from the array. Input array 1,2,3,4,5,6 Output 1,3,5,0,0,0

Member Avatar for ekambaram
2
3K
Member Avatar for jephthah

too many new and intermediate users of C attempt to use the command [icode]fflush(stdin)[/icode] to "flush the input buffer". this is patently wrong. the rule is (and click if you don't believe me) : [URL="http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1052863818&id=1043284351"]NEVER [/URL][URL="http://answers.yahoo.com/question/index?qid=20071013052534AAuxWmW"]USE [/URL][URL="http://www.gidnetwork.com/b-57.html"]"FFLUSH()"[/URL] [URL="http://www.linuxforums.org/forum/linux-programming-scripting/41287-problem-fflush-stdin-function.html"]ON [/URL][URL="http://www.it.usyd.edu.au/~dasymond/mirror/c-faq/stdio/gets_flush2.html"]INPUT [/URL][URL="http://www.cplusplus.com/forum/general/6554/"]STREAMS [/URL][URL="http://c-faq.com/stdio/stdinflush.html"]SUCH [/URL][URL="http://gcc.gnu.org/ml/gcc-help/2009-01/msg00287.html"]AS [/URL][URL="http://www.dreamincode.net/forums/showtopic45833.htm"]"STDIN" [/URL] here is one method of properly …

Member Avatar for David_50
0
6K
Member Avatar for binaryjc

**BREAKOUT GAME IN OPENGL** code is in C. Use the 's' and 'd' to move the paddle. Bounce the ball off the paddle to keep it from falling off the bottom of the screen. Break all the bricks to win. So far the program is running. but the right brick …

Member Avatar for pr@j@kt@
0
2K
Member Avatar for Anil2447

Here is the code for [B][COLOR="Red"]Insertion Sort, Bubble Sort and Selection Sort[/COLOR][/B] [B]Insertion Sort[/B] [CODE] #include <stdio.h> main() { int i,j,key; int a[5]={5,2,3,4,1}; for(i=1;i<5;i++) { key=a[i]; while(i>0 && a[i-1]>key) { j=a[i]; a[i]=a[i-1]; a[i-1]=j; --i; } } int k; for(k=0;k<5;k++) {printf("%d ", a[k]);} printf("\n"); } [/CODE] [B]Bubble Sort[/B] [CODE] #include <stdio.h> …

Member Avatar for Talha_5
0
9K
Member Avatar for cse.avinash

Hello every one Can I have a better algorithm to find the nth prime number, where 1<= n <=5000000. for e.g., 1st prime number is 2. 10th prime number is 29. 100th prime number is 541. 1000th prime number is 7919. 10000th prime number is 104729. 100000th prime number is …

Member Avatar for vantrendin
1
6K
Member Avatar for Vandithar

Hi, I want to install turbo c in windows. I don't have cd to install turbo c. I tried downloading a zip package and installing but it is giving error. How can i install and download turbo c in windows? Any suggestions? VANDITHA

Member Avatar for maha harshini
0
389
Member Avatar for ricciola

I have a problem. I have a function that search a string in a text file. This function return an int: 0 if the string I must be search isn't in the file, 1 otherwise. The problem is: if the searching string is "input1" and in the file there is …

Member Avatar for shentong
0
3K
Member Avatar for mixmagz

Here is a code for those who wants Tic Tac Toe [CODE]#include <string.h> #include <stdio.h> #include <conio.h> #include <dos.h> #include <io.h> main() { //_setcursortype(_NOCURSOR); int x1=0, x2=0, x3=0, x4=0, x5=0, x6=0, x7=0, x8=0, x9=0; int o1=0, o2=0, o3=0, o4=0, o5=0, o6=0, o7=0, o8=0, o9=0; int a1=0, a2=0, a3=0, a4=0, a5=0, …

Member Avatar for mkamrul
0
1K
Member Avatar for Josue198s

#include<stdio.h> int main() { int pcheck=1,i; int k=1000 for(i=2;i<k;i++) { if((k%i)== 0) { pcheck=0; break; } } if(pcheck) { printf("%d is a prime .\n",k); } else { printf("%d is not a prime.\n",k); } return 0; } this code works to check any number i that write in k but when …

Member Avatar for rajii93
0
218
Member Avatar for pittdaniweb

Hello everybody, I was asked by an interviewer the following question. but I was not able to answer. Please get back to me if you know the answer. thank you in advance. Que: What is the exact difference between the "for" loop and "while" loop in C language ?

Member Avatar for rajii93
0
794
Member Avatar for nakul_pancholi

Dear all, I am learning C language. I got the following problem while running the problem. Program: [CODE]#include <stdio.h> #include <math.h> #include <stdlib.h> main() { int x; for (x = 1; x <= 250; x ++) printf("x = %d\n", x); }[/CODE] OUTOUT should be: x = 1 x = 2 …

Member Avatar for arulgee6
0
1K
Member Avatar for shakin

** # import a data table with space? # ** Good day! I need to read in all the data in a file within column two and export it in a file. The issue is the data is not standard and has blank fields from time to time. It also …

Member Avatar for N1GHTS
0
255
Member Avatar for Neelam_1
Member Avatar for Neelam_1
0
200
Member Avatar for Thundermax

Hello guys, how can I solve the following problem: I made a pointer that receives the position found by the function srtstr char * pon; pon = strstr (string1, string2); The problem is now, I need to know the position where the string 2 in string1 within the whole. anyone …

Member Avatar for Ancient Dragon
0
149
Member Avatar for nitin1

hey,today someone asked me one question in my class that what is the fastest way to multiply a number by 7 ? I said yes you can use bit-wise operators. the code which i gave him is : int n=10; // for example n = (n<<3)-n; then he aksed me …

Member Avatar for rubberman
0
249
Member Avatar for Raymond Albert

Hello! I'm having a rather difficult time because the concepts weren't very much explained in class for complex situations. I'm a bit entangled with the few if-else conditions I have... :( I've been trying hard to crack the case, but I think somebody really needs to see my work. Write …

Member Avatar for Adak
0
4K
Member Avatar for toniann.midori

Ive spent almost 4 hours messing with this code trying to figure out whats wrong...to no avail. I keep getting zero as the total in the displayTripCost function at the bottom, i dont know if i messed up the pointers or what when i called by reference.... Please help!!! //Toni-Ann …

Member Avatar for toniann.midori
0
344
Member Avatar for logicslab

Dear pals, I installed Turbo c for windows 7 ultimate 64 bit , but it's not user friendly .When it use in full screen the mouse is not working . Any solution for it ? If you know any new C compiler setup let me know. Thanks, Anes

Member Avatar for deceptikon
0
385
Member Avatar for nitin1

Is there any alternative for clrscr() and gotoxy in gcc ? I am using system("cls"); to clear screen but it doesn't identify cls as a valid command whereas in cmd cls is working perfectly on windows? can anyone please help ? i am using gcc as my compiler and using …

Member Avatar for deceptikon
0
1K
Member Avatar for aVar++
Member Avatar for Thundermax