standard

About long long and long double

Since when have they been part of standard C++? I think long long is a C++0x feature, is that right? What about long double? Was that already in C++98 or C++03? ...

An alternative to reading input from Java's System.in

I’m working on the UVa Online Judge problem set archive as a way to practice Java, and as a way to practice data structures and algorithms in general. They give an example input file to submit to the online judge to use as a starting point (it’s the solution to problem 100). Input from the standard input stream (java.lang.System.in) ...

Non-Standard widget size for Android

I have a use-case for a vertical 1x4 home screen widget on android. The supported size is 4x1 ie horizontal. Does anyone know if the vertical version can be implemented? I realize changing screen orientation would scrunch the widget together, which I'm fine with. Even better would be if there was an equivalent to "overflow hidden" in cs...

Libraries for developing NCPDP SCRIPT based systems (a standard for e-prescribing)

What are (based on experiences) best (commercial or open source) libraries for developing NCPDP-based systems? Background: NCPDP (National Council for Prescription Drug Programs) is a not-for-profit, ANSI-accredited, standards development organization. One of it's standards is the SCRIPT Standard for Electronic Prescribing, which allows...

What does the C standard say about pointers to structs and their first member?

Consider the following two struct: struct a { int a; }; struct b { struct a a_struct; int b; }; the following instantiation of struct b: struct b b_struct; and this condition: if (&b_struct == (struct b*)&b_struct.a_struct) printf("Yes\n"); Does the C standard mandate this to always evaluate true? ...

C++ Reference Book

Possible Duplicate: The Definitive C++ Book Guide and List Can someone list a C++ book that is just a reference to the standard library? I don't need a "learning c++" book just one that is a reference. Or at least official documentation or something? Googling only reveals "fan-site" reference. ...

C90 - C99: register struct

Hello is "register struct" legal? In terms of standards and (separated from standards) in Gcc? ...

Minor (unimportant) defect in the standard?

This question has no practical issues associated with it, it is more a matter of curiosity and wanting to know if I am taking things too literally ;). So I have been trying to work towards understanding as much of the c++ standard as possible. Today in my delving into the standard I noticed this (ISO/IEC 14882:2003 21.3.4): const_refe...

Where is a reference to regex header on MSDN?

I can include this file directly now without tr1 in VS 2010 but can't find description of this file anywhere on MSDN. Where is a reference to regex header on MSDN? ...

I need a sample NCPDP/EDI file.

Hi, I'm working with a program called MIRTH, but i've not been able to find a sample EDI/NCPDP file anywhere. does anyone know where I can find one or have one on hand... I would be very happy if one were to respond to this message with a sample. Thanks, John. ...

Browser reading HTML from standard input

Does anyone know a Linux browser (it can be console-based) that can read an HTML page from its standard input? For example, I want to do this: generate_html | browser Thanks! ...

What is the Coding Standard and Code?

I want to ask u to give me the Code written with all code standards and OO approach. I want code for Database connection in C#.Net with SQL Server. For Inserting, Searching, Deleting and Updating data in database. kindly help me with this. ...

Makefile for Eclipse C/C++ in Linux

Hello, i'm using Eclipse 3.6 for C/C++ for Linux. I need to compile existing project with my own working makefile. This makefile works well from the command line, but when I imported my project into Eclipse and try to use Build, it doesn't work, seems that it try to use makefile automatically created by Eclipse. I unchecked the switch "G...

Few WinMain questions....

Hi, I have few very simple question. I searched a web for them, but I found different answers so I just want to know which to follow. So, first, I believe WinMain is NOT C or C++ standart, but is only added by Microsoft to determine when to load different CRT startup code, am I right? And second, is WinMain called by OS, in a way of le...

Standard SQL - CHAR to ASCII

Using standard SQL, SQL-92, how can I convert a character to an ASCII value? In MySQL it's easy using the ascii() function, but SQL-92 doesn't have this. ...

Access output from java compiler in C#

I'm writing a program in C# that will compile java files using the java compiler (javac). I am having trouble capturing the output from javac (a command-line tool) to tell the user of errors. I know how to start a process and capture the standard output, but javac returns nothing. Is there any other way that I can capture the output, or ...

C++ standard - how "array of unknown bound of T" is treated

Hi, I've got confused by the fact that this code works: struct S { char c[]; }; S s; According to C++ standard, chapter 8.3.4: "If the constant expression is omitted, the type of the identifier of D is “derived-declarator-type-list array of unknown bound of T”, an incomplete object type." But I cannot figure out how...

How to create standard comment blocks?

At my previous job they used a product called "Whole Tomato" (I think that's what it's called) and it allowed you save custom blocks of code. That way, if you wanted to use it over again, all you'd have to do is start typing what the code block would look like and then it'd give you a drop down option of available blocks. Well, is ther...

External linkage

$3.5/2- "When a name has external linkage, the entity it denotes can be referred to by names from scopes of other translation units or from other scopes of the same translation unit." Should not the highlighted 'or' be 'and' or is it just a wrong day for me to interpret some English stuff? An additional question is if the...

PowerShell: How To Use Standard Output In Place of Filename

I'm writing a C# class that runs a Process (REG) to export registry keys. REG requires that you specify a filename to export to but I would rather have the output of REG directed to the standard output so I can capture it directly in my C# code (using Process.StandardOutput). Is there a way in PowerShell to specify the standard output ...