-
Posts
28,048 -
Joined
-
Last visited
-
Days Won
360
Content Type
Profiles
Forums
Events
Everything posted by robcat2075
-
Welcome back, Rich! It would be cool to see some of your A:M -> 3D prints!
-
Sorry to hear about the job dislocation, Paul! No recourse about that signed contract? Ouch!
-
It wouldn't be hard to memorize the sizes of standard data types and hard code those when programs needed to use them. But part of the power of C++ is that you will be able to create your own data types... and make arrays of them, which could be any length. sizeof() helps you to bullet proof your code so that even if you change the size of your data type or the length of an array, your code can still operate on them without over-running or under-running the total data. project. Write a program that declares an array of strings without specifying a specific number of elements and initializes the elements with a set of data in that same declaration line. Report the size of the array in bytes, the size of an element in bytes, and the number of elements Print out all the array elements For example if the data in the declaration were: aardvark bat cat dingo eel The program output would be... Report on Array! The array is 200 bytes in size. One element is 40 bytes long. The array has 5 elements. 0 aardvark 1 bat 2 cat 3 dingo 4 ferret End of report. If the initialization data in the declaration line were changed to a different number of values: mockingbird narwhal owl parrot quail serpent tapir ...the program should need no other modification to correctly report... Report on Array! The array is 280 bytes in size. One element is 40 bytes long. The array has 7 elements. 0 mockingbird 1 narwhal 2 owl 3 parrot 4 quail 5 serpent 6 tapir End of report.
-
-
Tinkering mode caused simple elephant
robcat2075 replied to johnl3d's topic in Tinkering Gnome's Workshop
He's out for a jog... elephantrun007 tilt.prj Run000.mp4 -
Tinkering mode caused simple elephant
robcat2075 replied to johnl3d's topic in Tinkering Gnome's Workshop
That's adorable, John! -
Yeah. 15 is just a number I dreamed up. Any reasonably short segment length will work as long as you know exactly where to put them in the timeline.
-
I got the movie to download. It looks cool. 3 minutes 24 sec is a long stretch to render in A:M with audio How about this... Cut the audio into exact 15 second segments Put the first 15-second audio segment into a chor and animate the first 15 seconds. Save that out as Chor00. reload that Chor00 into a new PRJ. Delete the first audio and add the second audio at 15 seconds. Animate the next 15 seconds. Save the Chor as Chor01. reload that Chor01 into a new PRJ. Delete the second audio and add the third audio at 30 seconds. Animate the next 15 seconds. Save the Chor as Chor02. continue this until the whole song has been animated. Render without sound (preferably to an image sequence). Sync the video up with the original audio in a video editing program.
-
The download will take a while. Instead of putting all the parts in one PRJ, how about putting each section in a chor in a different PRJ? Render each one separately and edit them together in your video editing program.
-
Multi-dimensional arrays let you store tables of date. Nested loops make it easy to populate and output these tables. John Purcell suggests a multiplication table exercise. In addition to outputting the whole table, choose a few random array elements and output their values. The output will look like this. Format your output neatly! Mult Table! 1 2 3 4 5 6 7 8 9 10 2 4 6 8 10 12 14 16 18 20 3 6 9 12 15 18 21 24 27 30 4 8 12 16 20 24 28 32 36 40 5 10 15 20 25 30 35 40 45 50 6 12 18 24 30 36 42 48 54 60 7 14 21 28 35 42 49 56 63 70 8 16 24 32 40 48 56 64 72 80 9 18 27 36 45 54 63 72 81 90 10 20 30 40 50 60 70 80 90 100 table value at index 5,3: 24 table value at index 3,9: 40
-
I'm probably wrong about that. But it has something to do with... Does your PRJ have a sound file?
-
My first guess is that your machine's clock is somehow making A:M think it has been nefariously set back. But I don't really know.
-
Post your version with arms and hat.
-
SNAP! Those treasure chests are sneaky! Well done, Steve!
-
For a guy who's out-of-shape... he looks great!
-
I think his tights are too tight.
-
Arrays let you store a set of data under one name. Arrays can be a set of almost any data type, even one you created your self. Sample Project Write a program that prompts the user for 5 items of data, then prints the 5 items back out. Example output... I'm Using Arrays! ---------------- Enter a name: Crusty Enter a name: Dusty Enter a name: Musty Enter a name: Lusty Enter a name: Bartholomew These are the names you entered... Name 0 Crusty Name 1 Dusty Name 2 Musty Name 3 Lusty Name 4 Bartholomew Done! John Purcell suggested a program that stores the multiples of 12 in an array and then prints them out. The output might look like this... Twelves! the multiples of 12 are... 12 x 0 = 0 12 x 1 = 12 12 x 2 = 24 12 x 3 = 36 12 x 4 = 48 12 x 5 = 60 12 x 6 = 72 12 x 7 = 84 12 x 8 = 96 12 x 9 = 108 12 x 10 = 120 12 x 11 = 132 12 x 12 = 144 Done!
-
I'm not sure what you mean. When I press the tiny buttons, the value increments/decrements by 0.1. I rarely use that. If I click and drag left/right on a value it will increment/decrement by 1.0 If I SHIFT-click and drag left/right on a value it will increment/decrement by 10.0
-
A:M used for 3d printing: Small spare parts and helpers
robcat2075 replied to Fuchur's topic in Animation:Master
How interesting! I like watching the time lapses although I dont' understand all the decisions the process makes. Could you have avoided all the extra support material for the globe holder if the big C shape had been split down the center and made as two halves to be glued together? -
An apt apparition! Hope you had a happy Halloween, John!
-
May your Halloween be hysterical! Here's some scary animation. Boo!
- 1 reply
-
- 1
-
Note: this post is incomplete yet and needs some editing. Starting a new MFC "Single Document Interface" style program in Visual Studio 2022. The second video in this playlist of MFC tutorials demonstrates the basics of getting a plain-generic Windows program authored in Visual Studio 2015 This post is to document the difference between what is shown in that video and the current situation in VS 2022. Video time - 0:35 Add new Project to solution (this presumes you already a "solution" loaded in VS) (In this image I am adding the new Project to an existing folder in an existing solution) Choose MFC App, then Next 0:40 Enter Project name (location should default to being in your existing Solution) 2:10 Choose Project options This screen mimics the choices in the video 2:12 The VS 2015 screen in the video at 2:12 has no exact match in VS2022 2:14 This VS2022 screen is default auto-populated with names based on the project name. 2:17 The VS 2015 screen in the video at 2:17 has no exact match in VS2022 2:19 Choose Interface features This screen matches the choices in the video 2:32 Choose Advanced features This screen matches the choices in the video 2:37 Generated Class Options This screen is default populated with class names based on your Project name. 2:51 Created Project 5:30 Compiling the Project now should run default MFC "Single Document Interface" window: 12:15 i had to delete the "Save" Button from the _256 toolbar 17:30 Choose Project>Class Wizard instead of "Add Class", then choose MFC in wizard 18:00 Choose from drop down list first then edit ClassName Then OK, then OK in Class Wizard window