Posts by Carlos A. • 1 point
20 posts
-
-2
votes1
answer42
viewsQ: How to increment primary and foreign keys in Postgresql using SERIAL
I can’t automatically increment primary and foreign keys of my tables using SERIAL, because error happens and always have to enter the key value. create table cliente( cd_cliente serial primary key…
-
1
votes1
answer175
viewsQ: Unable to convert from decimal to double
The abstract class Figura has the virtual method CalculoArea(), where the derived classes called Quadrado, Retangulo and Circunferência override this method according to its geometric figure…
-
-1
votes1
answer315
viewsQ: Cannot implicitly convert void to string in abstract classes
My abstract class code has two errors: Cannot implicitly convert "void" to "string" (Line 5, 6, 11, 12, 17, 18, 23, 24) using static System.Console; public abstract class DevilHunter { public string…
-
0
votes3
answers418
viewsQ: C# - No argument provided that corresponds to the required formal parameter in abstract class code
There’s a error of arguments provided in 3 constructors of my abstract class code, where the method get() must be written in the child classes of the employee class which are the classes…
-
0
votes2
answers74
viewsQ: Create methods in classes to manipulate fields
I made a code of a binary association between two classes Cliente and Caixa, some methods I might not understand how they are inserted into the code in logical way, but the code itself is working, I…
-
3
votes1
answer711
viewsQ: How to add euro currency symbol (€) on a . tex page in Latex?
I’m doing my TCC monograph on Overleaf and I’m having trouble inserting the euro symbol (€) on a page. tex template that my college offers to develop the monograph. Concluding: I wanted to rename…
-
0
votes1
answer143
viewsQ: Error: a property or an indexer that cannot be passed as an out or ref parameter
I’m having second thoughts about CS0206 Error Maybe a property or an indexer cannot be passed as an out or ref parameter on line 39 and 41 of my code, how do you solve this? 35| produtos[i] = new…
-
1
votes1
answer100
viewsQ: Arraylist in C# does not display user-typed values
I made a Arraylist in C# that shows only the name, age and course of a student . But the CS0029 error says it is not possible to implicitly convert string to paraint on line 27 and 37, before I…
-
4
votes3
answers253
viewsA: Cannot implicitly convert "decimal" type to "int" in C#function code
I revisited the issue improving some values and was like this: using static System.Console; namespace Função1 { class Class4 { static int Main(string[] args) { // Utilize vírgula nos valores…
-
5
votes3
answers253
viewsQ: Cannot implicitly convert "decimal" type to "int" in C#function code
This code averages the arithmetic or weighted average of the 3 student grades based on your choice of average according to the use of the Equals, code error is exactly this conversion of decimal for…
-
1
votes2
answers1559
viewsQ: CS0029 Error - Cannot implicitly convert "int" to "bool" as a function of C#
The code receives a user number and print if it is positive for True and if it is negative for False, only that there is a mistake of types going on and I don’t understand how to solve. using static…
-
0
votes1
answer60
viewsQ: Correctly print a double value using Tostring()
I’m having difficulty printing a monetary value correctly with the distribution of its decimal places, I used the ToString() using parameters such as "C", "F" and "N", what needs to be done to leave…
-
0
votes3
answers103
viewsQ: Individual average does not return value and the number of student situations does not count in C#
My code it gets 3 student grades and shows your average, counts the number of approved, failed and who are still on exams and show the average of all. The problems of my code are the accounting of…
-
0
votes3
answers114
viewsQ: Sequence code of numbers returns the incorrect sum of numbers C#
I created a code that collects a sequence of integer numbers that only runs out when the zero number is typed. At the end print the sum of the numbers is wrong where there is always a number unless…
-
1
votes2
answers342
viewsQ: Use of the unassigned local variable of two strings in C#code
My code should be entered the gender of a person, height and age of a person in a repeat loop for 10 people. The code must show the greater weight, lower weight, average height of 10 people, the…
-
0
votes2
answers255
views -
5
votes1
answer138
viewsQ: Untreated POO code exception (Get and Set) from C#
The code in question is used to calculate the circle area value using keywords get and set. After I occurred CS1729 error a constructor was created to fix it private double valor; public…
-
-1
votes1
answer102
viewsQ: Circle area application: method shows that not all code paths return value
I have a code that performs the calculation of the area of the circle on three insatiated objects in AppCírculo, only that the method getArea() that should return the area of the circle with the…
-
0
votes2
answers887
views -
0
votes2
answers887
views