No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
11 Posted Topics
I'm writing an AppleScript to export individual layers in Omnigraffle. It opens the file as it's supposed to, but then at line 4, I get an error: "OmniGraffle 5 got an error: Can’t get alias "[path of file chosen]". Any idea why? [code] set myDocument to (choose file with prompt … | |
Does anyone know how to export from Omnigraffle into Catalyst without condensing everything into a single object (as psd images do)? | |
I'm making a "Chicken and Eggs"-style game where the score and level should be constantly shown. While I can display the background of the MovieClips ("score_txt" and "level_txt") that hold them, I can't get it to output the text. I'm not sure if this is because of an error in … | |
I'm writing a "Chicken and Eggs"-style game. I get an error in Main.as, line 160, that says "1119: Access of possibly undefined property ENTER_FRAME through a reference with static type Class." Line 160 is: [code] basket_mc.removeEventListener(KeyboardEvent.ENTER_FRAME,moveBasket); [/code] basket_mc is a MovieClip of the basket used to collect falling eggs. moveBasket … | |
I'm trying to traverse to the end of a linked list, but I get a segmentation fault when my while loop checks to see if the "next" pointer is null. Any suggestions on how to perform this check without causing a segmentation fault would be greatly appreciated. | |
I am writing a program to compute the fastest/shortest path between locations (stored in a directed graph represented by an adjacency list). I am trying to create this adjacency list ("al") as an array of pointers to Vertex class objects, but I get the error " 'al' was not declared … | |
I'm writing a spellchecking program using a hash table. The hash table (a char * array) serves as the dictionary, storing words inputted from the file wordlist.txt. When I call the lookup function, a floating point exception occurs. Any suggestions you have on how to find what's causing the exception … | |
I'm writing a spellchecking program using a hash table. The hash table (a char * array) serves as the dictionary, storing words inputted from a file. However, a segmentation fault occurs before I can get through reading, hashing, and inserting all 60,389 words (the words are in alphabetical order, and … | |
Is there a way to convert from const char * to char * without casting away the const? I was warned that it could be dangerous and cause crashes (which I would agree with, since when I ran my program with const_cast, it caused a segmentation fault). Alternatively, is there … | |
In an assignment involving cyclic shift hash codes, the instructions include the following code: [code] int hashCode(const char* p, int len) { unsigned int h = 0; for (int i = 0; i < len; i++) { h = (h << 5)|(h >> 27); h += (unsigned int)p[i]; } return … | |
Hi! I'm very new to C++ and have two questions whose answers are probably comically obvious. Any suggestions you have will be accepted gratefully. I'm writing a program that calculates the average of integers (grades) input by the user. Once the average is computed, the program should ask if the … |
The End.