- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 11
- Posts with Upvotes
- 10
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
34 Posted Topics
<script> function a(){ var filename="test.txt"; </script> <img src="img/test.png" title="?"/> How to get the value of "filename" in "title"? | |
Hello, I am new to visAD library. I am trying to plot a 'lowerTerrain.nc' file in visAD. But its longitude(-180 to +180) and latitude(-80 to +80) ranges are displayed automatically in -150 to +150 for longitude range(X axis) and -90 to +90 in latitude range(Y Axis). I have tried this: … | |
Re: provide your table structure and values and input value.And expected output. OR You can try to search error from error log also. | |
Re: Clarify what you want: Are you talking about to show even numbers or data inserted at even positions?? What you have done? post here enen wrong. | |
Re: SELECT EMPNO FROM EMPLIST WHERE REPORTINGTO=14 OR REPORTING TO IN (SELECT EMPNO FROM EMPLIST WHERE REPORTINGTO=14); THIS GIVES EXACTLY WHAT YOU WANT. :) | |
Re: Create a menu and use simple if else.And then you are eligible to post your doubt with your code(whatever you've done). | |
I was wondering if you could help me with a current issue I am having whilst developing an ER diagram. The problem I am having is with identifying the correct Entities. Question:- students can fill registration form online (of 8th,9th and 10th only) they can give online exam. any user … | |
Re: @ <M/>: You know how to find standard deviation.Then just write an algorithm or make a flowchart and implement it in a for loop, as you have done to find the mean. It seems that you have'nt tried. Just in a for loop, subtract each element from the mean, you … | |
Re: Because you are displaying the record of the employee, who is logging in by comparing his id and name. But what output you want??? | |
Re: Your question is not clear in your mind. Use while loop and break it when your input==0.And take input from user within that loop,and check your input.If it is not 0 then increment the variable count. Here you are not counting inegers at all,and just taking input once. | |
Re: @JeffGrigg This also won't compile as this will return String and the function returns double. I've given answer in above thread: http://www.daniweb.com/software-development/java/threads/469961/mean-standard-deviation | |
Re: Here is the problem: On line no. 9 you are passing original number to get it reversed Instead store the doubled number in some temporary variable and then pass it to the reverse function. that is: long temp= input*2; long result = reverse(temp); | |
Re: First calculate the distance manually.If your coordinates are(0,2) and(2,0) then your answer 2.82... is correct. So what you are expecting is wrong and what you are getting as an output is correct. | |
Re: If you haven't done something then start coding. Take user input, Then check that each character is int or not. Then apply prime no. logic to check wether it is prime or not and then sum it up. And then with your effort of coding, post specific doubt in it. | |
I am getting garbage value. Is it need to free 's' every time or the reason is something else. please,help. #include<stdio.h> #include<conio.h> #include<alloc.h> char* toBin(int); void rec(int); void main() { int n; char *out; clrscr(); printf("\n Enter no : "); scanf("%d",&n); out=toBin(n); printf("\n %s",out); free(out); // rec(5); getch(); } /*void … | |
int arr[]={12,17}; printf("\n arr = %d , &arr= %d",arr,&arr); printf("\n arr+1 = %d , &arr + 1= %d",arr+1,&arr+1); getch(); } ans : arr=400 &arr=400 arr+1=402 &arr+1=404 Please tell me how &arr and &arr+ 1 works? | |
Answer is NING. how....? i am not getting. can any one explain please....? ‪#‎inclde‬<stdio.h> void main() { printf(2+"GOOD EVENING"+6); getch(); } | |
Re: 1) Yes, it is complicated. you should use flag and store 1 if 1st date is smaller.and use break; in if block; and use nested block istead of comparing year each time. And print sataement will come at last according to falg value 2) The easy way is count the … | |
| |
Re: Thanx, jwenting . I have the local copy of jdk but I just wanted to solve it by toString methode.But now I know that it's not possible that way. | |
Re: In Dos shell (windows) when i execute my file 'test1.cpp' as c:TC:BIN> test1.exe 22 It is giving me an error as, 'TEST1.exe' is not recognized as an internal or external command, operable program or batch file. what should i do to execute it? | |
Re: you can try to search for a function in graphics which can change font sisize and style,too. it may be settextsyle(); | |
How to calculate time complexiy of the following line of code using 'Big-O' or 'Big-OH' notation??? 1. scanf("%d",&n); 2. for(i=1,m=n+66;i<=m;i++) 3. printf("%d \n",i); 4. for(j=n/21,m=n/5;j<=m;j++) 5. printf("%d \n",j); I have basic idea but i am getting confused...So, please help me to calculate time complexity of each step, plus overall complexity. … | |
Re: You can intercahnge struct variable directly. Eg: struct temp; temp=lol[a]; loa[a]=lol[temp]; lol[temp]=lol[a]; This many not be the solution but you can try this | |
Re: Simply put getch(); then exit(0); This will shows the Error message that you have given and exits the programme untill you press any key. Here, in your coding it will just give error message and proceeds next coding below it that is do actual division. | |
i want to go back to main menu while hitting escape key in my programme. for that i have make a function. [CODE]void exit (char[]) { if(char==27} { exit(0); } } [/CODE] but i have many user inputs which are of type int,float,char..... so i have tried, [CODE]while(kbhit!=27) { //coding … | |
Re: interprete the programme put values of c and d you will undersatnd And array[c] or array[d] are not diffrent but same variable. just index changes like array[0],array[1]..... | |
Re: type entire prog AND type in English the messages as wellas the variable name.Its hard to uderstand. | |
I am not getting all numbers but only last number while readind data from file. And it has to be done with fscanf function.[code]/* input n nunbers fom user and write it in the file.find it's sum and write the ans. in another file */ #include <stdio.h> #include <conio.h> void … | |
Re: seprate a for loop first. 1) which takes only numbers. for(int i=0;i<100;i++) { } | |
In structure hen i read floating point value from user and i get the error like"floating point not conneted..." i have been sugested to write two lines for that extern void float conetor(); #pragma extref floatconnector even though i got the same error it is not even asking for float … | |
/* can any 1 tell me wats the problem."[COLOR="Red"]Que: reverse an array without using temporary array[/COLOR] " [COLOR="Green"]This works for N =5 but when N =6 it displays the original values of an array.[/COLOR] */ [CODE]#include <stdio.h> #include <conio.h> #define N 6 void print(int b[N]) { int i; printf("\n"); for(i=0;i<N;i++) … | |
Re: thnx...bt then why we take & while using integer type of array? |
The End.