Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged C

0 votes
715 views
1 answer
    // screen.h #ifndef screen_h #define screen_h #define MAC 1 #define WIN 2 #define LNX 3 #ifdef PLATFORM ... suggestions/hints are appreciated! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
563 views
1 answer
    Is it possible to format a float in C to only show up to 2 decimal places if different from 0s using printf? Ex: 12 = ... > 12.10 12.12 => 12.12 See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
412 views
1 answer
    The output for this code printed out ‘Success’. printf("%m "); See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
463 views
1 answer
    I am trying to develop a program for solving a Rubik's cube in C. I used back tracking technique for this. ... to solve this by using shortcuts. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
477 views
1 answer
    I have to write a C program that prints an ELF file. I'm having trouble figuring out where the section ... of the section header string table? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
435 views
1 answer
    I'm trying to get the loaded address of an ELF binary, but dlopen doesn't work as expected: void *elf = ... binary? (0x0848000 in this case) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
299 views
1 answer
    I often see code such as the following when, e.g., representing a large bitmap in memory: size_t width ... for various processors? Thanks. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
369 views
1 answer
    Find the first n taxicab numbers. Given a value n. I would like to find the first n taxicab numbers. A taxicab ... 24 20683 4 32 18 30 32832 See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
590 views
1 answer
    I have got an array containing unique elements. I need to find out the first n largest elements in the array ... to change the original array!! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
449 views
1 answer
    Is it possible to bind and listen to multiple ports in Linux in one application? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
496 views
1 answer
    I tried to write my own implementation of the strchr() method. It now looks like this: char *mystrchr(const ... there :( Can someone explain? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
398 views
1 answer
    I would like to simulate mouse events using the Win32 API; how can I do it? What I want to do is simulate the ... And I would be coding in C. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
457 views
1 answer
    I've been reading from many sources that the volatile keyword is not helpful in multithreaded scenarios. However, this ... if it's not useful? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
489 views
1 answer
    Could you please help me how to format a struct timeval instance to human readable format like "2010-01-01 15:35:10.0001"? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
314 views
1 answer
    Having an issue with printing a pointer out. Every time I try and compile the program below i get the following error: ... ", pt1); return 0; } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
376 views
1 answer
    I am trying to learn C. Reading through some code, I came across a line like this: __inline__ void () ... ... of a function make it different? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
369 views
1 answer
    Code I've got a function which I can write in one of four possible ways: int do_or_die(int retval); int ... to know that too, for future. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
496 views
1 answer
    I want to try one program which have makefile on it but when I put make in the shell the error was: g++ -g - ... .8 What should I do to fix it? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
405 views
1 answer
    I have a main directory A with two sub directories B and C. Directory B contains a header file structures.c: ... structures.h file into main.c? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
407 views
1 answer
    I wrote this simple C program: int main() { int i; int count = 0; for(i = 0; i < 2000000000; i++) ... I expected (one sum instead of many sums)? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
446 views
1 answer
    I'm trying to convert an int into a custom float, in which the user specifies the amount of bits reserved for ... isn't making any sense to me See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
418 views
1 answer
    Is it possible to restore the normal execution flow of a C program, after the Segmentation Fault error? struct A ... it look like? Other ideas? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
320 views
1 answer
    Could somebody please explain what GCC is doing for this piece of code? What is it initializing? The original code ... .c Thank You, kunjaan. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
568 views
1 answer
    I'm starting to learn some C and while studying the fork, wait functions I got to a unexpected output. At least ... you see where my error is. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
403 views
1 answer
    I recently stumbled across an article that claims Microsoft is banning the memcpy() function in its secure ... similar but safer functionalilty? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
692 views
1 answer
    I need to be able to add an arbitrary section to an ELF file. I cannot use GPL code in this program, so ... rather not write my own ELF code. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
327 views
1 answer
    In a program I wrote, 20% of the time is being spent on finding out the minimum of 3 numbers in an ... the stack. Please see this question. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
409 views
1 answer
    Is there anyway from a C prog to find whether the OS is currently running in 32bit or 64bit mode. I ... configurations. Thanks for the advice. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...