Posts by zaque • 323 points
14 posts
-
-2
votes1
answer104
viewsQ: Syntax error using pointer
int main() { char const* path = "/bla/bla"; struct zip *teste; int *errorp; &teste = *zip_open(path, ZIP_CREATE, errorp); return 0; } It returns this error: main.cpp: In function ‘int main()’:…
-
1
votes1
answer1711
viewsQ: How to show accents in python?
I’m needing to read a file of names in python, but they’re full of accents, I’m using this to open arquivo = open('dadostxt/Nomes.txt', 'r', encoding='utf-8') i put utf-8 in encoding, but when I go…
-
0
votes0
answers61
viewsQ: Is there anything like command priority in jquery?
I am creating a page, and on this page there is a side menu, and on top of the side bar there is a menu icon, which when clicked makes the bar appear and disappear, to disappear I am using "display…
-
0
votes1
answer49
viewsQ: how to create output event in JS click
I am using this function for when an icon is clicked the menu disappear. let sidebar = document.querySelector('.sidebar-page') let sidebar_toggle = document.querySelector('.sidebar-toggle-box')…
-
1
votes1
answer64
viewsQ: Vector return problem in c++
I’m trying to make a little program to sort vector and I’m using a helper function to do this, but it’s turning me on to this error message. /media/isaque/dados/exercicios/c/scripts/estrutura de…
-
3
votes1
answer607
viewsQ: Doubt with Random in c++14 and 17
I was searching the Internet for how to do pseudo-random numbers in c++ and all the examples I found were with the srand function, but in some places people said srand is from c, and c++ already has…
-
2
votes1
answer216
viewsQ: When I create a function in C++ do the variables within it stay in memory?
When I was studying pseudocode, I learned that when you call a function and create a variable, it only "exists" when I call that function, for example. funcao teste(): x = 10 retorna x In case, when…
-
0
votes1
answer320
viewsQ: Total values in Django template
I’m developing a forum that on the index page I need to show the subject, how many topics has this subject and how many posts, I can even get back number of topics, but only shows the topic with the…
-
1
votes1
answer178
viewsQ: Error in Django form
I’m trying to run a form in Django but it returns this error form = TopicoForm() raise ValueError('ModelForm has no model class specified.') this is my models class Topico(models.Model): titulo =…
-
5
votes1
answer6199
viewsQ: How to use Objects.filter in Django?
Good afternoon, I have a model here in my Django Subject, and I want to list it in html, but every subject has as a foreign key the model id category, how I make a variable to receive Objects.filter…
-
1
votes0
answers104
viewsQ: Open vsCode and Atom error
Every time I try to open Tom and vsCode this message appears: a javascript error ocurred in the main process Error image in Atom: And on Vscode: I already deleted it from my pc and downloaded it…
-
2
votes2
answers2803
viewsQ: What is the most appropriate content to put in the header or Nav?
I’m creating a page that has her logo and name on header, and a menu with links to other pages using lists on nav, but I’m not putting nav within the header, I put them all inside a div with a class…
-
2
votes2
answers8065
viewsQ: How to make the background image transparent - image?
I want to make the background image transparent without affecting the other items of the body, only the image, but when I put the opacity the whole site becomes transparent, if in case there is no…
-
2
votes0
answers85
viewsQ: How to configure mysql and apache manually?
I used xamp but it always gave some port problems, so I downloaded and configured apache and PHP manually, but now I don’t know how to configure Workbench and integrate it with apache