Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
40% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
2
Posts with Downvotes
1
Downvoting Members
2
2 Commented Posts
0 Endorsements
~9K People Reached
About Me

Hobbyist programmer; always learning

PC Specs
MacBook with 2GB RAM, running 1/2 OS X 10.6.8 and 1/2 Ubuntu 11.04 Natty Narwhal Desktop Dell Inspiron…
Favorite Tags
Member Avatar for Rickay

[CODE]int realX = winSize.width + (projectile.contentSize.width/2); float ratio = (float) offY / (float) offX; int realY = (realX * ratio) + projectile.position.y; CGPoint realDest = ccp(realX, realY); [_projectiles addObject:projectile]; projectile.tag = 2; [projectile runAction:[CCSequence actions: [CCMoveTo actionWithDuration:realMoveDuration position:realDest], [CCCallFuncN actionWithTarget:self selector:@selector(spriteMoveFinished:)], nil]];[/CODE] In this simple app, I am trying to …

0
123
Member Avatar for Rickay

[CODE]int realX = winSize.width + (projectile.contentSize.width/2); float ratio = (float) offY / (float) offX; int realY = (realX * ratio) + projectile.position.y; CGPoint realDest = ccp(realX, realY); [_projectiles addObject:projectile]; projectile.tag = 2; [projectile runAction:[CCSequence actions: [CCMoveTo actionWithDuration:realMoveDuration position:realDest], [CCCallFuncN actionWithTarget:self selector:@selector(spriteMoveFinished:)], nil]];[/CODE] In this simple app, I am trying to …

0
123
Member Avatar for Rickay

I have started dabbling in Objective-C for iOS developing. Is using the C forum of this website appropriate for questions regarding Objective-C? If not, what would the correct forum be? Thanks!

Member Avatar for Rickay
0
214
Member Avatar for Rickay

Hey people. Been having a problem when trying to use .gif files as images for sprites. When I try to use one, I get an error such as: [CODE]Documents/Code/Cocos2D/Cocos2D/Player.png: No such file or directory[/CODE] But in the code, I am calling for the picture "Player.gif" to be used, as you …

0
106
Member Avatar for Rickay

I'm not really sure what the proper forum for this is. Basically, I have compiled a small program (written in C++) that I want to execute. It first creates an AppleScript, then runs it. But, when the program is run (it is a 'Unix executable file'), I want to to …

Member Avatar for Rickay
0
260
Member Avatar for Rickay

[CODE]double speedTest() { double dInitialTime = clock(), dFinalTime = 0; double dRepititions = 99999999; double dResult; cout << "\nCalculating...\n\n"; for(int nCounter = 0; nCounter <= dRepititions; nCounter++) { pow(dRepititions, pow(dRepititions, dRepititions)); } dFinalTime = clock(); dResult = dFinalTime - dInitialTime; ofstream outf("Results.dat", ios::app); outf << dResult << endl; return dResult; …

Member Avatar for Rickay
0
5K
Member Avatar for Rickay

[CODE]#include <iostream> #include <windows.h> #include <ctime> #include <cmath> #include <iomanip> #include <string.h> double numerator, denominator; static short multiplycounter; static short dividecounter; const double ten = 10; double* ppnumerator = &numerator; double* ppdenominator = &denominator; using namespace std; /**********************************************************************************/ double lcm(double numerator, double denominator) { if(*ppnumerator > *ppdenominator) { for(long counter …

Member Avatar for frogboy77
0
188
Member Avatar for Rickay

[CODE]int main() { static short multiplycounter; static short dividecounter; double decimal; int rdecimal; cin >> decimal; rdecimal = int(decimal); cout << setprecision(10) << decimal << endl << rdecimal << endl; if(rdecimal % 1 != 0) { while(rdecimal % 1 != 0) { if(rdecimal % 1 == 0) { break; } …

Member Avatar for Rickay
0
622
Member Avatar for Rickay

[CODE]#include <iostream> #include <windows.h> #include <ctime> using namespace std; double time1; int main() { const double seconds1 = time(0); string string1; while(1) { long double seconds2 = time(0); if(seconds2 == seconds1 + 5) { cout << "Five seconds went by.\n\n"; break; } } cin.clear(); cin.ignore(255, '\n'); cin.get(); return 0; }[/CODE] …

Member Avatar for Rickay
0
226
Member Avatar for miha2

Hello. So, I'm a newbie, and this is my second hard assignment. In this assignment, I have to decrypt the message from the teacher (well, not only this, it should open and decrypt any text file). So, the example line would be: [I][B]Ftq Pqoxmdmfuaz ar Uzpqbqzpqzoq ar ftq Ftudfqqz Oaxazuqe …

Member Avatar for miha2
0
698
Member Avatar for Rickay

[CODE]int main2() { cin.get(); cin.ignore(); cin.clear(); while(true) { long double x, y; char ch_op; Sleep(200); cout << "Enter an expression below: \nExamples:\n"; cout << "x + y for Addition.\nx * y for Multiplication.\n" << "x / y for Division\nx - y for Subtraction.\nx & x for Square Roots.\n" << "x …

Member Avatar for Rickay
0
199
Member Avatar for Rickay

I am trying to make a reference program that you can use to access any element of the periodic table based on its name, symbol, atomic number, or atomic mass. It is more than one file, and I need a way to return to main if the user wants to. …

Member Avatar for dylank
0
237
Member Avatar for Rickay

why doesn't this work? [CODE]int main() { fstream file; char output[100], pasword[100]; int a; const string x("Yes"); const string y("No"); string z; char b; cout << "\nEnter correct password to continue: \n" << endl; cin.getline(output, 15); if(output == "file.txt") { cout << "Change password? Type Yes or No. \n" << …

Member Avatar for Ancient Dragon
0
141
Member Avatar for Rickay

Why won't this if statement compile? [CODE]int main1() { char o[15]; cin >> o; if(o == 'oscar') main2(); else cout << "\n\aIncorrect password.\n" << endl; main(); cin.clear(); cin.ignore(255, '\n'); cin.get(); return 0; }[/CODE] I am trying to set a password to access the program

Member Avatar for Rickay
0
113
Member Avatar for Rickay

How can I get a password that has been changed during the use of the program to be applied so that after the program is ended and started again, when it prompts for a password to start the program it wants the new password the user entered, not the original …

Member Avatar for Rickay
0
147
Member Avatar for Rickay

I am trying to get the following code to take in either a number or an integer, determine whether what the user inputted is an integer or a letter, and then print a random digit if it is an integer, or a random letter if it is a letter. [CODE]#include …

Member Avatar for jonsca
0
235
Member Avatar for Rickay

For a program I am working on, I need a way to use an if function for a variable, if the variable is within a certain range of numbers. i.e. [CODE]if(x == 1-5) // meaning if x is from 1 to 5 //do something... if(x == 6-10) // i.e. if …

Member Avatar for jonsca
0
132
Member Avatar for Rickay

I am fairly new to programming but have been working on putting together a group of functions into one program. It is coming along nicely, but for some reason I can't get the loop on the divisibility function to work properly. When you prompt it to quit to return to …

Member Avatar for jonsca
0
154