Posts by Leonardo • 9,130 points
332 posts
-
1
votes1
answer9903
viewsQ: Close file (is being used by another process)
The code I am trying to use is the following (I modified only the path and the content), before these lines I do a check if the file does not exist, ie it only executes it if the file does not exist…
-
1
votes1
answer126
viewsA: Run a form (or create file) only when the program is first opened
Well, I got it here, it was like this, right under the InitializeComponent(); from the splash screen (for it to create before opening the first form) //Cria variavel com uma nova instância com…
-
1
votes1
answer126
viewsQ: Run a form (or create file) only when the program is first opened
I want to know if there is any way I can create a form to be opened only the first time the program runs. Because the form must create a file in the system with login the first time the program runs…
-
2
votes1
answer1008
viewsQ: Handle files with C#
The goal is to capture two string typed into two blocks of text and saved them in a file (this file is already predefined and the user will not know where it is). I also want to know how I read the…
-
0
votes2
answers2189
viewsQ: How to put link in photo caption?
I have an example: <!-- GSM FANS --> <li class="item-thumbs span3 apps"><!-- Tipo do projeto --> <!-- Imagem completa do trabalho --> <a class="hover-wrap fancybox"…
-
5
votes1
answer1562
viewsQ: How to make a wrong user input not bug the program?
Example, I declared the menu option as int, then the ear bug goes in there and type in a letter or a special character and this will make the program crash. The question is: is there any way to…
-
-2
votes3
answers3929
viewsA: Limit the size of a String?
I thought a little, I tried, but it was wrong, but today I came up with the idea, I got there, I tried, and it worked. First we must change the value of the vectors to a number that the user will…
-
1
votes3
answers187
viewsQ: Return to condition start when prompted
I can not use function, I wanted to know how to return to a certain line of code when the number 0 is pressed, example: system(color 7); printf("Teste"); printf("Teste01"); printf("Pressione 0 para…
-
3
votes3
answers3929
viewsQ: Limit the size of a String?
I declared char pl1[10], pl2[10]; And I did this: printf("Nome do Player1: "); scanf("%10s", &pl1); printf("Nome do Player2: "); scanf("%10s", &pl2); Thinking he was only going to read the…
-
4
votes2
answers12278
viewsQ: C: Change color of letters (multiple colors on one screen)
For example, I want print on the same screen: printf(".___. .___. .___.\n"); printf("._1_. ._2_. ._3_.\n"); printf("Digite 0 p/ sair ou outro número p/ continuar: "); but I want the letters of each…
-
0
votes2
answers334
viewsQ: C: Use two gets() in a row (player names)?
I’m trying to play a little game, so I displayed a menu and then I used the command switch to access the options, in case the user wants to play he selects 1 and will be asked to him the name of…
-
3
votes2
answers104
viewsA: How do images/videos adjust themselves?
Well, the solution was simpler than I thought, with the use of bootstrap I was able to do, for this, put the image like this: <img src="..." class="img-responsive" alt="..."> And in the head…
-
1
votes2
answers104
viewsQ: How do images/videos adjust themselves?
Hello, I’m finishing developing an app, I put in it the images with 450px wide, thinking it would work, because currently all devices have at least 480x800 resolution, while compiling I went to test…
-
4
votes3
answers18584
viewsA: How to use gets() in C++?
gets replaces the scanf would look like this: #include<stdlib.h> #include<stdio.h> #include<string.h> int main(){ char lista[100]; printf("Digite seu nome: "); gets(lista);…
-
1
votes0
answers146
viewsQ: Tag script src does not work when compiling application (Windows Phone). Why?
I’m creating an app for a forum, on some pages I want to display content from other sites (these online), to display image works good, but to display a rss created with an online tool it does not…
-
1
votes2
answers1038
viewsA: Are hybrid apps safe?
It depends on the platform you will develop.. *Android -> Generates APK, which are fragile, opening them with Winrar it will show all your code in the www folder. *iOS -> A little safer, but…
-
4
votes4
answers10243
viewsA: How to align <li> items from a <ul> list below?
You create a Javascript like this: function updateScroll() { var element = document.getElementById("teste"); element.scrollTop = element.scrollHeight; } updateScroll(); var timerId =…
-
0
votes3
answers2251
viewsA: Difficulty adjusting menu and footer in responsive layout
Without Javascript it gets kind of complicated and ugly to do, because you will not be able to use the click, only the CSS3 Hover.. You will need to create two CSS3 styles for the menu, one for the…
-
2
votes1
answer808
viewsQ: Display contents of the <link rel=""> tag on the html page?
I am trying to make an RSS reader, I searched and for that I used: <link rel="alternate" type="application/rss+xml" title="RSS"…
-
0
votes0
answers556
viewsQ: HTML5: Download content (script) by clicking on a page and running it.
How do I download a script that is automatically online each time I click to open a certain page? and add it to the page I’m trying to make an app and some pages have read feeds, but at the time I…
-
2
votes1
answer2217
viewsQ: Put HTML5 to read an RSS?
I don’t know much about these deals, I looked before posting here but I didn’t find anything, I don’t know if I’m looking for it right. I’m creating an app in Html5, css3 and javascript. I want to…
-
2
votes3
answers11918
viewsQ: Enlarge an image by clicking it (HTML5 and CSS3)?
I have a problem, in smartphone css3’s Hover is not recognized (or better, it takes about 5 seconds to be recognized), and I wanted to make an interactivity with the photos of my app, as I can not…
-
0
votes1
answer192
viewsQ: Hide click box (tap) on an HTML5/CSS3 website?
I’m making a site to serve with an app for a college job, the desing is ok (for now, and worked cool on smartphone. However, in the menu there is an error when I press some menu item, a light blue…
-
1
votes1
answer713
viewsQ: Javascript and Unity 5 : What is the error of the code? (Animations jump and fall)
I am following a tutorial to create an infinite racing game (Temple Run style), the tutorial is old and the classes etc changed in Unity 5, so I could not play the code, it is made to control and…
-
1
votes0
answers205
viewsQ: Create auto-update phase menu in Unity 5?
Example: At the beginning of the game the menu will only have the Level 1 button, once the guy passes the level how to create an automatic button for level 2 in this menu? This button will redirect…
-
1
votes0
answers341
viewsQ: Unity 5: How to make the game go back exactly where it had ended in its last run?
Example: the guy was playing and in the middle of the stage he closed the game, hence how to make so that when he opens the game again he goes back exactly in the part (or phase) that he had been…
-
1
votes2
answers599
viewsQ: How to request input data N times, and concatenate this data
First I asked the user to enter the amount of links that he wanted to add to the file (in this case a string), hence if for example he type 4, I want to ask the question "Download link: " four times…
-
9
votes1
answer3671
viewsQ: Are there any other low-level languages besides assembly?
Are there other low-level languages besides Assembly? LISP is not (I think) nor Fortran.. Low-level language would be language closer to binary, as well as Assembly, language that works directly…
-
0
votes1
answer318
viewsQ: Python mobile app development
How do I develop mobile operating systems with Python (Android, Windows Phone, and iOS)? How do I start this? Software to use etc. My main focus is Windows Phone.
-
1
votes2
answers2951
viewsA: Copy file content to clipboard on Windows
I used that code: import clipboard clipboard.paste() with open('teste.txt', 'r') as f: conteudo = f.read() clipboard.copy(conteudo) Follow that video to install the Clipboard. In the video, you then…
-
1
votes2
answers2951
viewsQ: Copy file content to clipboard on Windows
Hello, I am making a software for a forum, where members consult the patterns of posts by the software, I am storing these patterns in files and asking Python to read these files and display them,…
-
4
votes2
answers3087
viewsQ: Accent problem, running at Windows Prompt
I am creating software in Python, I’m having trouble accentuating the strings. The program is simple.. It asks a question to the user (name, version, description, etc.) and adds the answers to those…