I've just broken open the Tkinter GUI API for Python. Compared to GTK3+ with C, it's just so much simpler to use, and the overall aesthetic of the graphics is superior. Just creating the usual basic...
Type: Posts; User: gemera
I've just broken open the Tkinter GUI API for Python. Compared to GTK3+ with C, it's just so much simpler to use, and the overall aesthetic of the graphics is superior. Just creating the usual basic...
I like Python a lot. If c programming is mining the rock face with a pickaxe, programming in Python is more like sitting in the manager's office with the feet up, with a fag in one hand and a glass...
If you're just looking for somewhere to ask questions, gnome had gtk+ mailing lists when I was checking gtk+ out some time back. A google on "gnome mailing list" should get you there.
@Elkvis If list notation is acceptable it would even be possible to go raw with:
range(1,11)
Now, that's snappy code.
Python:
for i in range(1,11):
print i
I took the lazy way out a few months back, found this and bought the Samsung at the head of the list which does have WiFi, and its been fine.
btw, all identifiers for functions in the Standard Library are reserved.
There is a function exp() in math.h, so exp falls into that category.
Technically, using a reserved identifier in your...
The switch condition in evaluatePostFix() uses the original array instead of the tokenised one.
A default case is often a good idea, e.g. one that prints "Error: unknown operator".
This must be a windup.
Your errors are pretty self explanatory.
You're still declaring a local count variable at line 53.
And you haven't updated your calls to find_path() at lines 64,66,68 and 70 to reflect the...
Before you can build a linked list you need valid nodes, and you're not using the typedef structure type that you created.
Your nodes should be of type flightRec.
Edit: Clarification - you're...
Well, I've never had a cow look at me that way before. It was more like the aggressive stare of a bull.
Thankfully on the way back down, the other herd barely acknowledged my presence, and the...
My last foray in to the wilds was stopped 7 miles out by a stubborn cow. Most cows tend to ignore you, but there had been some stories of ramblers being charged by cows and ending up badly injured....
Gotcha! :biggrin:
It is completely useless.
Well I only mentioned it in case the OP went away with the idea that you definitely can't read multi word strings using scanf() and then the prof gave him an exercise expecting him to do just that....
If your prof complains about using functions he hasn't covered, you can change the default behaviour of scanf() using something like:
char buff[100];
scanf("%99[^\n]%*c",buff);
Seems like you are really talking about the limitation scanf() has in reading a string which includes spaces, in that it will just read the first word, and then stop when it detects the following...
Time to enable your compiler warnings.
||=== Build: Debug in test (compiler: GNU GCC Compiler) ===|
C:\Users\HP Pavilion\C Programs\test\main.c||In function 'main':|
C:\Users\HP Pavilion\C...
Yup, and I've already told you twice that you need to declare board in main() and pass it to functions that need it.
Currently you have two different instances of board in two different functions.
There's also the old steam driven method of writing your own summaries as you go.
If you don't have a good C book, I would highly recommend you get one. Nothing beats a good structured approach to learning programming imo.
There's also a good online course by Steve Summit here....
int should easily hold 1000000 these days on most popular platforms.
Its pretty certain that the array (stored on the stack) size takes the program over its stack limit.
You need to initialise your "row" elements before you use them.
@Kobeissi2
Reviewing chapters on pointers and functions in your C book would be a good idea.
That should give you the necessary confidence and understanding in passing variables and arrays to...
Don't have the time to check it in detail ( maybe some of the other guys will chime in :D)
But if you are passing your piece and letter variables from main() like that, they shouldn't be...