Forum: C++ Jan 16th, 2009 |
| Replies: 4 Views: 275 Wow. Very quick answer. Thank you very much. I didn't even have time to post my response to my own question before you answered. |
Forum: C++ Jan 16th, 2009 |
| Replies: 4 Views: 275 Nevermind.
Answered my own question.
I suppose some googling first wouldn't have hurt.
For anyone who's still curious about this, use the following extension on any variable you want to use as a... |
Forum: C++ Jan 16th, 2009 |
| Replies: 4 Views: 275 Hi,
The program I'm making to teach myself C++ uses a user-specified file and then does the opening and read/write whatever stuff.
The error i get is this when trying to compile the... |
Forum: C Dec 18th, 2008 |
| Replies: 0 Views: 342 Hi everyone. I was just wondering if anyone could help me with how to play a sound (from a file or directly specifying the frequency doesn't matter) on a Mac. I would prefer doing this directly from... |
Forum: C Dec 13th, 2008 |
| Replies: 3 Views: 546 Perhaps you should start a new thread then |
Forum: C Dec 6th, 2008 |
| Replies: 4 Views: 643 Thanks both of you for your help.
Here's the code I came up with. Its not perfect obviously but it lets the user pick a number to loop to and shows how long it takes to do that loop in seconds. ... |
Forum: C Dec 4th, 2008 |
| Replies: 4 Views: 643 This is just an additional thought but could I get the system time in seconds from the Epoch? So then I could do something like this:
for(conditions)
int x, y, timetaken;
x = (get the time for... |
Forum: C Dec 4th, 2008 |
| Replies: 4 Views: 643 Hi everyone,
I am trying to make a program that times how long it runs for in seconds or milliseconds or whatever. The unit of time doesn't matter, I just need to know if C has any function I could... |
Forum: C Dec 1st, 2008 |
| Replies: 5 Views: 687 |
Forum: C Dec 1st, 2008 |
| Replies: 5 Views: 687 What I mean is, is there any way I could select a character from a string at random? for instance in python:
x = random.choice("Hello World")
and x would return of value of say "W" as an example.... |
Forum: C Nov 30th, 2008 |
| Replies: 5 Views: 687 Hi I'm pretty new to C (about a week experience) and I was wondering if C had anything like Python's random.choice() function. Basically it just selected a random element from what you gave it, a... |