Posts by Victor OCV • 393 points
27 posts
-
0
votes1
answer15
viewsA: Problems with toggle checkbox(Switchery)
My friend, this way it won’t work even because the attribute checked has no value ! $('#cbxNotFoundMessage').attr('checked',''); that would be the right one.
-
0
votes1
answer492
viewsA: Problem in Reload Table Using AJAX
There’s an easy solution to this, buddy ! You initialize the data table first of all with the data. $('#data-table').DataTable(); Right ?? After initialization, you can make an ajax request that…
-
0
votes1
answer129
viewsQ: How to disable Datatable jquery sorting when it is created manually?
I have a datatable created manually in View follows code <table id="datatable"> <thead> <tr><th>Nome</th></tr> </thead> <tbody>…
-
0
votes1
answer99
viewsQ: How to display a View only when the app starts on Swift 4?
Good guys I’m making an app for a Interview I’m almost done but wanted to add more features. I am doing in Xcode using Swift 4 language.. What I’d like to know is, I have a View called Popupview how…
-
6
votes1
answer41
viewsA: My factorial function does not return the expected value! Language C
Good friend, from what I saw your function is 90% correct, but you are returning the value ans before it is completely correct... You must multiply all the numbers to then return it ... Example: int…
-
0
votes2
answers1337
viewsA: What is the best way to clean the keyboard buffer
Look, one way that my teacher used to clear the keyboard buffer for all kinds of reading was the fflush(stdin) and really I recommend you, because I used too much, and avoided too many bug when I…
canswered Victor OCV 393 -
1
votes1
answer63
viewsQ: What’s the difference if I leave a variable in Otocol marked with Static or without Static in Swift 4?
I’m learning about protocols now, and I saw a code snippet in Swift 4 that defines a protocol, follows below the code snippet. protocol AnotherProtocol { static var someTypeProperty: Int { get set }…
-
4
votes4
answers224
viewsA: My program made in C++ is in infinite loop, how to fix?
Good friend, from what I see, your condition in the is will never be true and will enter the loop. Because of the for(i=0;i>=10;++i) she doesn’t even get in, why i = 0 and you ask i is greater…
-
0
votes1
answer65
viewsA: How to determine if it is possible to scale processes using the EDF (Earliest Deadline First) algorithm?
Well, they say that if a set of tasks with processing time and computational cost is not scaled by the algorithm EDF will not be scaled by any other algorithm, as this is the best that is in…
algorithmanswered Victor OCV 393 -
0
votes1
answer55
viewsA: Program in C++, string no longer accepts characters, and hangs the console, what happens?
Good guys, Dev C++ was in error, because it was too long open and sometimes generates some bug, this was the reason not reading 1000 characters, I closed the program, put the code and saved again…
c++answered Victor OCV 393 -
0
votes1
answer95
viewsQ: Enumeration Swift 4 - What is its usefulness and how does it work for IOS development?
Good guys, I’m studying hard to start developing an app in Swift 4 for a job interview, but the Type Enum left me a little, almost nothing, however, still confused. I wanted to know a little more…
-
-2
votes1
answer49
viewsQ: How does IOS development responsiveness work with Swift 4 in Xcode ?
Good guys, I’m starting now to enter the IOS programming, and I have this doubt in my head, from what I saw, the people work a lot dragging the objects and programming them, however, how…
-
1
votes1
answer230
viewsQ: Declare MAP already passing values in C++ ?
Good guys, I see that with the array I can do this: int array[]= {5,6,4,2}; My doubt is, in the language C++ i can declare map already passing values ? Example: map<string,int> mymap = {…
c++asked Victor OCV 393 -
-3
votes1
answer342
viewsQ: Computational Geometry - How to check if two lines intersect only at the anchor?
Good guys, I need to do a show in C++ that receives a point A(x,0) a point B(x,0) that point To and B they are on the x-axis, always with y = 0. After receiving the point To and the point B, I have…
-
0
votes1
answer372
viewsQ: 2597 - Uri Online Judge - C++
I’m doing a show in C++ to solve the 2597 platform math exercise URI ONLINE JUDGE follows below the description of the problem. I started doing the program in C++, but realize that the input is too…
c++asked Victor OCV 393 -
2
votes2
answers3588
viewsQ: How not to print the line break using the console.log
I’m developing a program in Javascript where I have to sort an array, only I have a problem at the time of printing that array. I need to print everything in a row, with a space between the…
javascriptasked Victor OCV 393 -
7
votes1
answer4999
viewsQ: When to use Cin.ignore() in C++?
When exactly to use the cin.ignore() in a software written in C++? Why many of the times, when I’m making a big software, the readings keep bugging, sometimes if I put cin.ignore() Loosens,…
c++asked Victor OCV 393 -
-1
votes2
answers701
viewsA: How do I use %d or %c... in Cout instruction?
Well, first of all, you need to know that C++, it’s different, it’s not defined by output shapers as %d, %x, or things like that. Instead, you use only the variable and the modelling commands.…
-
0
votes1
answer55
viewsQ: Program in C++, string no longer accepts characters, and hangs the console, what happens?
I made a program in C++ converting morse code to letters. However this program will receive up to 1000 characters. But I do not know what happens, it receives 400 characters at most, and so the…
c++asked Victor OCV 393 -
-1
votes1
answer65
viewsQ: How to determine if it is possible to scale processes using the EDF (Earliest Deadline First) algorithm?
Well, my teacher asked me to do an algorithm IN C-LANGUAGE that receives a value N which is the number of processes to be evaluated. Then it receives N pairs of values, each pair in a row. Each row…
algorithmasked Victor OCV 393 -
-3
votes1
answer46
viewsQ: It is allowed to perform the operation module % with double number in java, and how to change a single position of a string in java?
My doubts.. It is allowed to perform the operation module % with floating point number in java, and why? Because in compilers like c++ this operation is not allowed. How do I access an element of a…
javaasked Victor OCV 393 -
5
votes1
answer439
viewsQ: Do I need a macOS computer to program Swift 4 and Objc?
I’m doing a lot of research on iOS app programming, and all the online courses I find on the computers are Apple-based. To program Apple, you need an Apple computer?
-
0
votes1
answer69
viewsA: Purpose of a foreign key name
What is the purpose of the foreign key name? The intuitive of the foreign key name, is to facilitate the understanding of the relations with other tables. What may entail in the future by neglecting…
-
0
votes1
answer1093
viewsQ: How to read to the end of the file with Javascript - Uri Online Judge
In javascript I am using the Uri online Judge platform, however, I found nothing about reading until the EOF (End of File) in javascript. Could someone tell me how to read up to the EOF with…
javascriptasked Victor OCV 393 -
-1
votes1
answer217
viewsQ: How to Make a Simple HTML Form Responsive with Native CSS?
Good guys, I went for a job interview and asked me to develop a simple form with label and input and a textarea, only this form has to be responsive, and work on all types of devices. I started…
-
1
votes1
answer339
viewsA: Check if the number typed is already present on the struc
Good friend for what I saw in the condition If(found = 1), you do found receive 1, and did not find==1
-
4
votes1
answer112
viewsQ: How to print a hexadecimal value in high box?
I made a program in C++ that reads a number and prints it in hexadecimal, follows the code below. #include <iostream> using namespace std; int main(void) { int n; cin>>n;…