Questions tagged [output]

The externally observable consequences of calling a program on some input

The output of a program is the set of externally observable consequences of running a program on the given input.

A program's output can be manifested in several forms:

  1. What is printed to and/or
  2. What is written to an external file
  3. What changes are made to the inputs, which are then used in other functions or programs
9797 questions
4
votes
3 answers

how can I change my HTML Output with jQuery?

how can I change my HTML Output with jQuery? My Magento-Shop gives me an definition List, but I want these lists as a dropdown (select/options) form. I'm a jQuery Trainee ... not a Pro ;) So I need some tipps or hints. Which were the keywords
user2310852
  • 1,654
  • 1
  • 25
  • 52
4
votes
1 answer

Understanding git log graph output

I'm confused by the following pattern I keep seeing: * 1c49c26 Merge branch 'master' of https://.git |\ | * 5e072f2 Updating todo * | 13e8f22 Adding maven |/ * da94a41 Updating pom So someone branched, did a tiny…
Hamy
  • 20,662
  • 15
  • 74
  • 102
4
votes
3 answers

spaces/nulls inserted into redirected output of the cmd command

When I run the command wmic memorychip get capacity from the command line in the cmd window, the output on the screen looks like: Capacity 2147483648 However, if I add this command to a batch file and try to redirect the output to a file,…
user2296601
  • 41
  • 1
  • 2
4
votes
1 answer

Parallel output using MPI IO to a single file

I have a very simple task to do, but somehow I am still stuck. I have one BIG data file ("File_initial.dat"), which should be read by all nodes on the cluster (using MPI), each node will perform some manipulation on part of this BIG file (File_size…
Arnold Klein
  • 413
  • 2
  • 6
  • 16
4
votes
1 answer

Is there a way in Fortran to write to an output file from subroutine when the file has open statement in main program.

In Fortran, I am trying to write to an output file from subroutine when the file has open statement in the main program. In other words, how do I pass file unit number (terminal number) to subroutine from the main program. Any idea about this is…
maxm
  • 113
  • 2
  • 14
4
votes
3 answers

bash: loop through procces output and terminate the process

I need some help with the following: I use linux to script commands sent to a device. I need to submit a grep logcat command to the device and then iterate its output as it is being generated and look for a particular string. Once this string is…
Nikl
  • 83
  • 2
  • 8
4
votes
2 answers

Can anyone explain output

#define power(a) #a int main() { printf("%d",*power(432)); return 0; } can anyone explain the o/p?? the o/p is 52
akash
  • 1,801
  • 7
  • 24
  • 42
4
votes
1 answer

R - how to plot graphic to an exists window that created by another application

I wrote a Windows application in c++, i want to do data analysis in R but output the graphic to the window of my application, so i call a R routine within my application and i can send the handle of the window to R routine, but i do not know how to…
Sean
  • 100
  • 6
4
votes
1 answer

Delete Exception Message from Output

I'm debugging my application, so I use code like Debug.WriteLine(); a lot. The problem is that I also have thread running that is getting an TimeoutException almost every 500 milliseconds, it is not a problem that I receive this error, because I'm…
Max
  • 12,622
  • 16
  • 73
  • 101
4
votes
3 answers

Clearing only part of the console output

What I want to do: The cursor is initially blinking on the top left corner of the screen: 160 characters remaining _ When I press 'i': 159 characters remaining i When I press 'a': 158 characters remaining ia When I press 'm': 157 characters…
IcyFlame
  • 5,059
  • 21
  • 50
  • 74
4
votes
2 answers

2D Array, output is no where near correct

import java.util.Scanner; public class Maze { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int rows = 0; int cols = 0; String arrayLine = ""; int counter = 0; …
4
votes
2 answers

I can't create a PDF output with R. Only empty pages. (Linux)

If I want to plot a diagram to pdf it doesn't work. I only get an empty pdf page. Here is a small example. > pdf("try.pdf") > plot(x=c(1,2,4,2,5)) > dev.off() I also tried the print() command. But with no luck: > print(plot(x=c(1,2,4,2,5))) NULL …
Joko
  • 2,539
  • 3
  • 17
  • 24
4
votes
2 answers

Why am I getting wrong time output with correct timezone?

Why am I getting this output time: 2013-01-12 18:24:37.783 Code testings[10328:c07] 0001-01-01 17:12:52 +0000 when I run this code: NSCalendar *calendar = [NSCalendar currentCalendar]; calendar.timeZone = [NSTimeZone…
Whylonely
  • 93
  • 4
4
votes
2 answers

how to read newline character in c

Could someone explain the following codes #include main() { char c[]="abc\nabc"; puts(c); } This code as expected generates : abc abc But when i try to take the same string as an input from the user, #include main() { …
Ankit Rustagi
  • 5,539
  • 12
  • 39
  • 70
4
votes
1 answer

Force download script and readfile: Why readfile outputs my html page?

I'm trying to send files (attachments) for users outside webroot. I made force download script, which sends the file in the header and outputs it in stream. This works good, until I call readfile (could be also header settings), which outputs a file…
art2
  • 425
  • 1
  • 5
  • 18