Posts by Claudio • 32 points
7 posts
-
0
votes0
answers870
viewsQ: Socket Error ( Socket is closed )
I am making a program using sockets but a very strange error appears when I juice two numbers for 2 time. The socket goes down and I don’t know why here is the server code import…
-
-1
votes3
answers5789
viewsA: Check whether a date is valid in C or not?
Hello I made a small example of how to validate data using if() The user input, function, check date checks if the data is correct; I hope I’ve helped with an example #include <stdio.h> int…
-
-4
votes2
answers102
viewsA: Fix error game
#include<stdio.h> #include<string.h> #include<conio.h> #include<stdlib.h> #define _CRT_SECURE_NO_WARNINGS int main() { char palavra[25], letra[25], lacuna[25]; int vida = 6,…
-
0
votes2
answers69
viewsA: Error in case procedure 3
#include <stdio.h> #include <stdlib.h> #include <string.h> #define _CRT_SECURE_NO_WARNINGS #define T 51 #define Tfilmes 2 struct Filme { char nome[T]; char diretor[T]; int…
-
-1
votes3
answers3223
viewsA: How to use the "fread" function in c to read a txt file string and store that string in an array?
this code can help #include <stdio.h> #include <string.h> int main() { FILE *fp; char c[] = "this is tutorialspoint"; char buffer[100]; /* Open file for both reading and writing */ fp =…
-
0
votes2
answers69
viewsA: Error in case procedure 3
#include <stdio.h> #include <stdlib.h> #include <string.h> #define _CRT_SECURE_NO_WARNINGS #define T 51 #define Tfilmes 2 struct Filme { char nome[T]; char diretor[T]; int…
-
1
votes1
answer1508
viewsA: View an image with Java Swing Jlabel
Use this code if you want to put an image inside the jlabel: // Import ImageIcon ImageIcon iconLogo = new ImageIcon("Images/YourCompanyLogo.png"); "nome da variable da jlabel".setIcon(iconLogo);…