What do you want to save?
Add Code snippet
New code examples
-
C 2022-02-17 02:10:05
callback c++ c
//Define a type for the callback signature, //it is not necessary, but makes life easier //Function pointer called CallbackType that takes a float //and returns an int typedef int (*CallbackType)(float); void DoWork(CallbackType callback) { float v... Add solution -
C++ 2022-02-07 04:50:13
c++ ros subscriber
#include "ros/ros.h" #include "std_msgs/String.h" /** * This tutorial demonstrates simple receipt of messages over the ROS system. */ void chatterCallback(const std_msgs::String::ConstPtr& msg) { ROS_INFO("I heard: [%s]&q... Add solution -
Other 2022-01-28 04:40:51
sdl render text
#include <stdlib.h> #include <SDL2/SDL.h> #include <SDL2/SDL_ttf.h> #define WINDOW_WIDTH 300 #define WINDOW_HEIGHT (WINDOW_WIDTH) /* - x, y: upper left corner. - texture, rect: outputs. */ void get_text_and_rect(SDL_Renderer *renderer... Add solution -
Other 2022-01-24 00:10:16
dining philosophers problem solution using semaphores in c
/* This code is contributed by : Tanishq Vyas (github : https://github.com/tanishqvyas ) Use of Binary Semaphores has been made along with inversion of last philosopher's order of picking chopsticks, in order to avoid circular wait condition. Thus preven... Add solution -
TypeScript 2021-11-21 13:41:36
command line arguments in c
int main(int argc, char *argv[]){ } Add solution
Best helpers
Ranking is empty