Questions tagged as 'c'

3
answers

Operators, order, relevance, read and priority

I came across the following question in a comment of the following    One more question .. The! = operator is the same as < ? So I decided to create an answer by explaining right away to take questions or teach those who do not know....
asked by 12.11.2014 / 14:27
3
answers

Compiler reports error when I try to zero vector

The compilers accuse error when I try to zero a vector with the command vetor[10] = {0}; And it only accuses error in this line because I also used it in the int vetor[10] = {0} attribution and there does not acknowledge error....
asked by 24.03.2015 / 21:15
1
answer

What are the advantages of using directives and macros?

Do policies and macros influence program performance?     
asked by 25.02.2016 / 22:30
1
answer

Time is advanced in program .C

I have an application in .c , I ended it but I have a problem with the time. Example: I am recording everything that is done with date and time only the time is advanced. When I do an operation at 12:54 the displayed time is 15:54:16, the...
asked by 13.10.2014 / 17:56
1
answer

Client / Server (Windows) with Sockets in C

I'm trying to work out a program written in C that is capable of uploading a file or text to a particular server. I have searched a lot on google but most of the tutorials are oriented towards linux environment, or it is not so complete or th...
asked by 27.06.2014 / 19:43
3
answers

Unsigned int does not work?

Next, my program keeps compiling even after I have assigned a negative value to an unsigned variable, why does this happen? Using the IDE Code :: Blocks 13.12 unsigned int numero1 = -1;     
asked by 09.05.2015 / 20:05
1
answer

Run program in FullScreen in Windows 7

Hello, I have a project already finished, it was written in C language, how do I run it in fullscreen on windows 7? Are there any libraries for this? I've been searching the internet, but I have not found anything like it.     
asked by 17.11.2014 / 20:04
2
answers

library conio.h in C language for Ubuntu

I'm programming in C in Ubuntu's Codeblock. I'm trying to add a conio.h library. During several searches I found a site that for reasons of incompatibility in ubuntu with the conio.h library, a group created gconio.h. So I should download a file...
asked by 10.10.2015 / 22:09
2
answers

Comparing user-typed variable with file variable

Within my arquivo.txt file I keep two strings "nome" and "senha" , they stay one below the other. I need to get the name and password entered by the user and compare it with the name and password I have saved in the .txt...
asked by 12.11.2015 / 19:57
2
answers

Is there a difference between compiling for the Linux terminal or for the IDE?

I've been programming in C in linux for a semester already, and I always come across people who call themselves better programmers because they compile and run the program through terminal . However, in the face of several se...
asked by 17.12.2015 / 17:27