Questions tagged [standard-library]

The standard library contains core utilities provided by all implementations of the language.

The standard library contains core utilities provided by all implementations of the language.

The size and scope of the standard library varies between languages, some provide only a few basic components for such things as string handling and I/O, whereas others provide higher-level tools for a wide variety of tasks such as XML processing, networking and database access.

For questions about specific languages' standard libraries use this tag in conjunction with the tag for the language, or use the indicated tags for these languages:

677 questions
-1
votes
1 answer

Make std:array size depending on class template parameter

Let's consider following very simplified example #include template class GenericColor { protected: std::array components; } class RGB : public GenericColor { // three components, red, green... } class CMYK :…
stil
  • 5,306
  • 3
  • 38
  • 44
-2
votes
1 answer

In a C program, what exactly happens under the hood if I call a function from a header file from /usr/include?

The header files of C library functions can be found under /usr/include. The actual source files, however, don't seem to be simply located anywhere in the file system. So what exactly happens under the hood if I call a function from a header file…
cssdev
  • 59
  • 7
-2
votes
1 answer

Python - How to create a delete function for user input?

I've been trying to create a program which allows users to view a text file's contents and delete some or all of a single entry block. An example of the text's file contents can be seen below: Special Type A Sunflower 2016-10-12…
TropicalMagic
  • 104
  • 2
  • 11
-2
votes
1 answer

Get dot separated path of a standard library function from the function itself

Is there a way to get a full name (dot separated path of a function including its name) of a standard library function? For example: import sys import os from random import choice my_function = choice([sys.exit, os.path.join,…
niekas
  • 8,187
  • 7
  • 40
  • 58
-2
votes
1 answer

x86 Input a number in the base 2 and output it as a number in base 8

For converting any number in the base 10 to the base 16, a good implementation would be: segment data use32 class=data number dd 0 format_input db "%d", 0 format_output db "%x", 0 segment code use32 class=code start: push dword…
-2
votes
1 answer

Using library functions in home-made OS

I am interested in programming my own OS from scratch(in C). However, every tutorial I encounter has made a message print on the screen by writing directly to the VDU. Why can't I use standard library functions while writing my OS? I don't have much…
-2
votes
1 answer

How to Debug Python built-in module efficiently?

recently I'm learning Python standard library and reading the source code help for understanding I copy code segment and paste to python interpreter but I feel it's inefficient and unwise ('cause import module won't got the _) I wanna to find a…
Rancho
  • 1,988
  • 2
  • 12
  • 12
-2
votes
1 answer

C Standard Libraries and greenhills compiler

I would like to ask two questions.(Microcontroller Project) What is the difference between Runtime library and standard library (For c language)? I would like to write a code for microcontroller that will use standard c library. Previously I used…
waq
  • 15
  • 6
-2
votes
1 answer

C++ where I can find the implementation files of the standard library for the gcc compiler?

I am looking for the implementation files of the c++ standard library (the .cpp files) for the gcc compiler. For instance, where I can find the implementation of the method basic_istream& read( char_type* s, std::streamsize count ) of the istream…
El pupi
  • 458
  • 1
  • 3
  • 13
-2
votes
2 answers

Why couldn't Go read a request properly?

My API needs to parse incoming requests. In the first step, the data needs to be read by Go's ReadAll() function of the ioutil package. Why should there an error occur? The official documentation does not give a hint, because the reasons for such an…
user3147268
  • 1,814
  • 7
  • 26
  • 39
-2
votes
1 answer

Learning C on Windows

I'm studying C now on my own and I have a long C# background. I have a few e-books about C but what I would really love is to find some authoritative material online such as manuals and reference content. When I need information about C# or the…
HelloWorld
  • 2,375
  • 5
  • 22
  • 21
-3
votes
1 answer

How can i use std::search to check contents? what is the right way?

So I am trying to understand std:: search. First I created one array of a class and then copied to a vector. Now I am trying to check if the contents of my vector appear in my array (i have modified one vector value, so they wouldn't be…
Ninhow
  • 47
  • 7
-3
votes
1 answer

How to edit Excel(.xlsx) documents using python - but without using any non-standard modules?

Is there a way to edit an Excel document in python without using any modules that are made to work with Excel documents? I'm not looking for external libraries, I'd like to learn about how to do it on my own. My goal is to make a program that will…
Evan
  • 56
  • 8
-3
votes
1 answer

My eclipse is not being able to read the Standard library?

I wrote this code: public class CheckerBoard { public static void main(String[] args) { // declaration and initialization - How big? int N = Integer.parseInt(args[0]); StdDraw.setXscale(0, N); …
msd
  • 49
  • 1
  • 2
  • 8
-4
votes
1 answer

How c++ linking process works?

I have experience in PHP, JS and C#. I use tutorials from http://learncpp.com to learn C++. But now I have some questions about linking process of C++ Standard Library: I have heared that C++ Standard Library is automatically linked to C++…
Amir
  • 1
  • 4
1 2 3
45
46