- Strength to Increase Rep
- +8
- Strength to Decrease Rep
- -2
- Upvotes Received
- 43
- Posts with Upvotes
- 38
- Upvoting Members
- 16
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
Integration Specialist
- Interests
- Music, Computers/Programming, Reading, Playing guitar, Aussie Rules Football, Cricket
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 … |
|
Hello, I am trying to parse a string using regular expressions. This string can potentially have any number of non-alphanumeric characters acting as delimiters. These delimiters can also be grouped together. Here are some examples of the data: 00923:5342:123 --> I want to extract 00923, 5342 and 123 into an … |
|
Hello , i have read the manual page of alloca , it is documented there that "alloca works similar to the malloc but it allocates memory from stack and frees automatically. i can't get how can i use that in a program . if i'm not wrong can i use … |
|
Write a program for the following problem. An instructor needs a program that accepts a student identification number and three test scores, test1, test2, and final_test as input, and determines and outputs for each student the semester average and the final letter grade according to the following scheme: SEMESTER AVERAGE … |
|
how can I output 123454321, if i input 5. and 1234321 if i input 4? |
|
hi narue! i want a program that converts any number inputted into words. like "124" into "one hundred twenty-four" i did figure out the logic but i don't know what specific codes to type. i have my intro codes but i don't know how to do the rest. here it … |
|
I am making a program to compute simple interest. P*R/100 this is what i have done... Please tell me whats wrong [CODE]int main() { int p,n,count; float r,si; count=1; while(count<=3) { printf("\n enter values of p,n,andr"); scanf("%d %d %f",&p, &n, &r); si=(float)p * (float)n * r / 100; printf("simple interest … |
|
please help me on this.. i have to make a payroll system using turbo C program but i don't know how to make it.. pretty please...:) |
|
Iam a freshmen and we're given a task to program a calendar using turbo C and does'nt exceed line 54 and some texts are with specific colors.(red) for the days under sunday,(light gray)for the month.... I will really appreciate your help thanks....... Here's the format: ex: enter month:1 january 2004 … |
|
hi all plz explain me with syntax "how to pass pointer to a function or pointers to a function " . plz tell me if there any big tutorial which can solve my problem providing a deep knowledge about it . and one more probim : what is incorrect int … |
|
[code] #include<stdio.h> int m,i,c; main() { clrscr(); for(m=1; m<=10; m++) { for(i=1; i<=10; i++) { c=m*i; printf ("%d\t",c); } printf ("\n"); } getch(); } [/code] |
|
So I finally get to the end of this evil program, and then it won't compile because it says "type double not expected". Here is my error message in its entirety: program 3 item.cpp(111) : error C2062: type 'double' unexpected program 3 item.cpp(121) : error C2062: type 'double' unexpected program … |
|
[code] float decimal = 2.345324 float dec_points = decimal%1; [/code] hey guys, I have a small but trivial problem... i have been trying to do the above but i keep getting a error... "error C2296: '%' : illegal, left operand has type 'float'" Anyone got a clue? Thanks guys! |
|
HI can anyone help me to write this programe in c Q ; WRITE A PROGRAM TO DETERMINE AND PRINT THE SUM OF THE FOLLOWING HARMONIC SERIES FOR A GIVEN VALUE OF N; 1+1/2+1/3+14+....................1/N THE VALUE SHOULD BE GIVEN INTERACTIVELY THROUGH THE TERMINAL |
|
I am writing a guessing game, player could only enter number ten times, after that, a "End" message should print. the random name =ran1 your enter number = a count the enter times = b I wrote : if ( ran1 != a) { b++; } printf("the count number: %d", … |
|
help me to implement a short C program that works with factorization of integers it is supposed to compute and print out the sum of all natural numbers below 100,000 that are multiples of 3,5 or 7. if asked to sum all the natural numbers below 20 which are multiples … |
|
I need to convert seconds to Minutes, hours and seconds. I must use pass by reference in variables. I know I need to use the modulus to deal with the remainders when I'm converting to Hours, minutes and seconds. I am really having a difficult time with the code. |
|
I want to write a C program to test whether the character is uppercase, lowercase, digit or special symbol. [code=c] void main () { char ch; printf("\n Enter any character from the keyborad"); scanf("%c",&ch); if (ch>=65&&ch<=90) printf(" \n the character is uppercase); if(ch>=91&&ch>=122) printf(" \n the character is lowercase); if(ch>=48&&ch<=57) … |
|
Hey guys. Started C a couple weeks ago and I'm trying to learn how to implement functions. I need to make a function which returns a 1 if its a prime number and 0 if it isn't. This is the pseudo code given to us and I'm having trouble constructing … |
|
i would like to know the way we can make user enter a number in a menu reply perhaps so that he doesnt have to press the enter key...........i.e. the program automatically proceeds with the give value and doesnt wait for an enter key to be pressed. its easy in … |
|
I was given homework to write a program that finds if a double (64 bit) is negative. The double uses twos complement, so the first bit will tell if it is positive (0) or negative (1), but you all probably know that. The problem I am having is that there … |
|
Hey I know gcc is problably the best natural complier for C but Im looking for a IDE. I cant use Visual Studio 2008 (which Id like to) as it uses it own compiler. I was using wx-dev (I believe it is called like that) and it is pretty good. … |
|
I am having a small issue I have to use only putchar and get char to get an operator and two numbers and print the format into num1 (operator) num2 I have a lot of code but I am afraid to post on the site because someone might steal it … |
|
HI , I am a student in an university... I am assigned a project about the knight's tour on the chess , but must use the Warnsdorff's rule ... rule : Put a knight on the chess with any square , and find all patchs of knight (knight pass each … |
|
Hi, I am writing a reverse function, to reverse a string, but when I am compiling I am getting an error, and I know its from the malloc line of code. This is the first time i have used malloc, but I want the function to work for any length … |
|
give me the perfect program like that output.[code]#include<stdio.h> #include<conio.h> void main() { int i,j; int a=15; int b=30; clrscr(); for(i=0;i<=a;i++) { for(j=0;j<=b;j++) { if(i==0||i==2||i==a) { if(i==0||i==2) if(j==0||j==b-4||j==b) printf("+"); else printf("-"); if(i==a) if(j==0||j==b) printf("+"); else printf("-"); { if(i==1||j==14) printf("mywindow"); if(i==1||j==28) printf("X"); } } if(j==0) if(i==1||i==3||i==4||i==5||i==6||i==7||i==8||i==9||i==10||i==11||i==12||i==13||i==14) printf("|"); else printf(" "); if(j==b) if(i==1||i==3||i==4||i==5||i==6||i==7||i==8||i==9||i==10||i==11||i==12||i==13||i==14) … |
|
1. Write a program to implement a static circular queue. It should include the following functions: i) Enqueue – To add an element to the end of the queue [4] ii) Dequeue – To remove an element from the front of the queue [4] iii) IsEmpty – To check whether … |
|
How can I Write a C language routine that defines a function mult(). The function mult() is supposed to perform scalar multiplication on the two vectors ‘a’ and ‘b’, and returns the vector ‘c’, such that c=a.b. Also, it pads zeros ‘0’ to the smaller of the two input vectors … |