Questions tagged [variables]

The tag has no usage guidance.

6 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

I'm wondering how to import Django through my Powershell and how to active Django in my PythonPath

I'm trying to import and active Django in my pythonpath, but I still have this message show up in my manage.py tab on VSCode (I'm using Windows 10 and am finding a lot of Linux inputs): ""&...
0
votes
1answer
64 views

Declaring a variable in loop or outside

I remember when David talked about declaring variables, he said we couldn't say like 'Hey computer, give me a variable called n' and then later say 'oh hey, give me another variable called n'. The ...
0
votes
1answer
39 views

Problem with pointers, getting seg fault while indexing with variable instead of plain number

I would like to ask why is that giving me seg fault. int **a = (int**) malloc (sizeof(int*) * 3); a[0][0] = 1; a[0][1] = 2; a[0][2] = 3; for(int i = 0; i < 3; i++) { printf("%d",...
0
votes
0answers
24 views

Issue Initializing variable

I hope someone can help clear this up for me. If I use this I get an error: int i = GetInt(); https://gist.github.com/anonymous/7707d2b851d40106c525#file-gistfile1-txt I get an error... but if I ...
0
votes
1answer
54 views

Error Message while doing Greedy for declared variable

greedy.c:8:7: note: previous definition is here int i; This variable has been declared and used and I am getting this error message. If I remove the declared variable then it tells me I didn't ...
0
votes
2answers
181 views

pset1 mario Initializing for loop from GetInt

I'm running the Mario program and I have everything working except the correct count, which I can fix. The only issue I'm having is a syntactical one. I'm tying to initialize the "for loop" with the ...