- 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
<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:
I only have experience using pretty basic Oracle. However, I'm now in need of a better understanding of SQL. I'm trying to write a query using CASE statements (as this seems to be the best approach), but am admittedly lost at the moment. Here is what I have as a … |
|
Re:
Hi, I'm getting the following error "" for the query as shown below. Any help is very much appreciated. SET SERVEROUTPUT ON; DECLARE v_CARE_COUNT NUMBER := 0; v_PHONE VARCHAr2(40) := NULL; BEGIN select count(distinct care_level) into v_CARE_COUNT from Table1 where user_id = '100'; IF(v_CARE_COUNT > 0) THEN select phone into … |
|
Re:
How To Implement Using Double Linked List Structure in C++ function DisplayEven(...) that displays only the even elements inserted by the user. |
|
Re:
I have a table EmpList. I want to use loop to bring result as I expected. Example, EmpNo ReportingTo ------------------- 27 14 68 14 104 27 105 27 138 27 139 68 150 8 151 8 8 5 Suppose query input is 14, I need result like this EmpNo ------ … |
|
Re:
Write the program that lets the user play the game of rock , paper , and scissors against the computer? The program should work as follows: 1.when the program begins, a random number in the range of 1 through 3 is generated . if the number is 1, then the … |
|
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:
I am trying to write a program to calculate mean & standard deviation. I sort of figured out how to find mean (it is not correct yet, so i am going to need help on this part as well) but how do you do standard deviation? import java.util.Scanner; public class … |
|
Re:
I have attached data.txt file with contains all of the employees data. The problem is when I login, it would only read one record. Here's my code: #include <stdio.h> #include <conio.h> #include <string.h> #include <stdlib.h> int login(); void displayWelcome(); main(){ int result; do{ system("cls"); result = login(); if(result==1 || result==2){ … |
|
Re:
This is a code that I wrote and for some odd reason it doesn't count the number of inputted integers properly. import java.util.Scanner; public class IntegerCount { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("Enter an integer, the input ends if it is 0: "); int … |
|
Re:
Is this correct? I wrote a decimal format and it doesn't work. how do i correct this: return sum / myFormatter.format(Math.sqrt(x.length - 1)); I will submit the full code if needed. |
|
Re:
I am trying to reverse the number that is doubled from the user input. Problem is that if they enter a number like 20000 it gets doubled into 40000 but it reverses it to 2 rather than 4. How do i get it to make the doubled number reversed and … |
|
Re:
Okay, so for another assignment I have to find the distance of two points. I understand how that works but for some odd reason, when the program the professor set up tests it, the numbers are way off. This is what i have done: public class Distance { public static … |
|
Re:
WAP to print the sum of all the PRIME or EVEN integers in the array and ignore the remaining. |
|
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:
So I just started a "C" class and I've done my first few assignments but I feel like I'm over complicating the codes by using to many if else statements. Here's the assignment and my code. Please let me know what you think: [B]Write a program that asks the user … |
|
Re:
In the following program I'M trying to take a number no more than 12 digits long and make it a factor of 3. If the input is 1, the program would turn the number into 001. If the input is 12, the program would turn the number into 012. If … |
|
Re:
import java.io.*; public class t1 { public static void main(String a[]) { int i; char c='a'; char[] ch={'a','b','c'}; for(i=0;i<3;i++){ System.out.println(ch[i]+" "); } //String s=c.toString(); //char cant be dereferenced String s=ch.toString(); System.out.println(" S : "+s); } } Q-1) I am getting an error while converting a character array to String aoject. … |
|
Re:
How to write a calculator program in c language using command line arguments??? The calculator only needs to perform basic functions of addition, subtraction, multiplication and division of 2 integers only. |
|
Re:
Hello everyone I am trying to create a MS word file using c programming can anyone tell me how to change the font size using c programming and one more thing i a creating this file through a embedded machine in pendrive. |
|
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:
I got an assignment to create a program to sort 10 students' data by grade (and if they have the same grade sort by name) using selection sort only(can't use any other method) in an ascending order. My problem is I can sort their grades using selection just fine but … |
|
Re:
This code is supposed to take two numbers, and multiply them, divide them and print out the product and quotient. ive checked it over numerous times and cannot figure out where my error is, when i type in a real number and 0, the result screen shuts off prematurely..can anyone … |
|
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:
[CODE] #include<stdio.h> main() { int array[100], n, c, d, swap; printf("Enter number of elements\n"); scanf("%d", &n); printf("Enter %d integers\n", n); for ( c = 0 ; c < n ; c++ ) scanf("%d", &array[c]); for ( c = 0 ; c < ( n - 1 ) ; c++ ) … |
|
Re:
how to sorting this, i've problem to sort by *jum_nilai* from the highest until smallest void lihatData(void) { if(pertama==NULL) printf("Data tidak ada !!!"); else { printf("%3s %-20s %-12s %-5s %-7s %-7s %-5s %-5s\n","No","Nama","Jenis K","N Mtk","N B.Ind","N B.Ing","N IPA","Jumlah"); printf("--- -------------------- -------------- ------- ------- ------- ----- -----\n"); sekarang=pertama; do { printf("%3d … |
|
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 … |