Posts by ProfMarcosPacheco • 139 points
8 posts
-
1
votes1
answer147
viewsA: Reference error in winsock2
1) Remove this line of code #pragma comment(lib,"ws2_32.lib") //Winsock Library 2) In Codeblocks IDE, enter a new project, I named it Sockets 3) Choose Console Application and click GO In the window…
-
2
votes3
answers4341
viewsA: I cannot use accents in Code Blocks
Test this way without putting Portuguese. #include <stdio.h> #include <locale.h> int main() { setlocale(LC_ALL,""); printf("Agora não tem mais problema algum para utilizar…
-
0
votes1
answer196
viewsA: Chained Allocation - Data Structure - C
void retirada(char valor[]) //precisa ser uma string void inclusao(char valor[]) //precisa ser um string Change char value per char valor[] this creates a parameter capable of receiving a string. If…
canswered ProfMarcosPacheco 139 -
1
votes1
answer536
viewsA: Program in c presenting output, strange different from the value of variables
This error occurs because, you want to use a string(text) and only used a char(character). In the C language a string is represented by a string ending with a null character ' 0'. But you put only…
-
0
votes3
answers633
viewsA: C: Delta, X1 and x2 result always giving 0.000000
To understand your error you will need an explanation about the operator & (í commercial) or (and commercial). This operator in C language means: memory address of... Therefore, if you put this…
-
-2
votes2
answers714
viewsA: Why don’t you blow the pile?
In a simplified way we can consider that there are two large areas for memory allocation and manipulation: Stack(stack) Heap(monte). The stack is a much smaller area and the heap or stack is a much…
-
0
votes2
answers10163
viewsA: How to make the rest of the division of a float by a number in c?
According to the website http://www.matematica.pt/faq/numero-par.php: "First the definition of PAR number can only be applied to integers. That being said, a number is even if when divided by the…
-
4
votes3
answers7927
viewsA: Doubt about Struct and Pointer for Struct
Victor My answer will be a little long, but I like to explain the details, because without this conceptual basis you can face new problems. Believe take a little more time reading this long answer…