Questions tagged as 'c'

1
answer

Opening and reading giant files in C

How can I open a file for C language reading, over 100 MB? With this code placed below, I can read a file with more than 18,000 lines, but what I really need is to read a file with approximately 5,000,000 lines. Is this possible in C? ch...
asked by 14.12.2014 / 18:10
2
answers

Sudoku does not print screen responses

This code does not have any errors, however the program does not solve the game (it does not print answers on the screen): #include<stdio.h> #include<stdlib.h> #include <time.h> #define N 9 #define D 4 void facil(void); voi...
asked by 10.11.2014 / 21:47
1
answer

Output does not appear in program C [duplicate]

     This question already has an answer here:                   variation while with scanf                                      3 replies                                                 Why do not need the '&' no 'scanf ();'?...
asked by 16.11.2018 / 15:45
2
answers

Copy a square matrix of tam n into another complemetar n-1, omitted line 0 and column 0 of matrix n

#include<stdio.h> #include<stdlib.h> #include<limits.h> #include<locale.h> int main(){ int i,j; int mat[3][3]; int comp[2][2]; for(i=0;i<3;i++){ for(j=0;j<3;j++){ printf...
asked by 06.07.2018 / 05:39
2
answers

After entering the Value of P, you are not running the printf of the second for

#define MAX 15 #define TAM 2 struct { char m[MAX]; int ano; float v; } car[TAM]; int main(void) { int i; int p; for(i=0; i<TAM; i++) { printf("Determine a Marca e Modelo do Carro %d: ", i+1); gets(...
asked by 17.06.2018 / 05:48
1
answer

How do I use an "or" in while in C [closed]

I'm trying to make a naval battle application with which the while stops with 2 conditions, which are the errors or hits of the player, where he can err 5 times and have to hit all points, which in this case is 30. do{ mostrarTabul...
asked by 12.06.2017 / 14:01
1
answer

Socket raw in C

I'm trying to make a C sniffer using the Socket API. I saw a good solution was to use the raw socket: sock_raw = socket(AF_INET , SOCK_RAW , 'Tipo do protocolo aqui UDP/TCP/ICMP'); But I did not understand the foundation of the raw socke...
asked by 21.10.2018 / 21:21
1
answer

Windows and Avast are blocking the compilation of programs in C

Whenever I worked with C language, I used computers from college, so I never had a problem compiling them and running them in the Dev-C ++ IDE. Currently, I installed version 5.11 on my machine, but I just tried to use it today. For testing, I w...
asked by 01.08.2018 / 00:09
1
answer

Understand C ++ / Assembly code

I am studying a Node, and in this process I decided to help in the study to migrate a system in c / c ++ to node, however I am not familiar with c / c ++ and I have a code snippet that I can not understand very well he does, could you help me?...
asked by 03.09.2016 / 05:13
1
answer

Filter information in an XML using C

I need to extract relevant information from an XML that has this structure: <ARTIGO-PUBLICADO SEQUENCIA-PRODUCAO="2"> <DADOS-BASICOS-DO-ARTIGO IDIOMA="Inglês" DOI="" FLAG-RELEVANCIA="NAO" HOME-PAGE-DO-TRABALHO="" MEIO-DE-DIVULGA...
asked by 02.12.2017 / 01:29