23 Discussion / Question Topics
Remove Filter This videos talks a little about how we derived what proto-indo-european might have sounded like, and what information we can actually get about the culture of Indo-Europeans based on that language (given that we have a lack of other sources of information about Indo-Europeans). Interesting, eh? https://www.youtube.com/watch?v=ErXa5PyHj4I | |
I put this in the Unix catagory, however I beleive Windows pipes also can perform atomic writes - correct me if I'm wrong! Say I'm trying to save a large stream of information onto a filesystem. This filesystem might be local, it might be LTFS (a tape filesystem. Here, seeks … | |
Since trivial problems bore me, I thought I might make a weekly programming challenge for a bit of fun. Sometimes I find it fun to solve a problem, and compair it to other peoples solutions. Let me know what you think about the idea (if you like the idea, if … | |
Can anyone help me with doing problem 12 on project euler? The question is asking which triangle number has more than 500 factors. The first few triangle numbers are: 1, 3, 6, 10, 15, 21, 28 ... Hope you understand the pattern, cause a can't explain it in words vary … | |
Hey guy's. I've never really cared for game dev befor, but it sounds kinda fun. I'm expecting a spair class next year and need to have something to do in my spair time. I'm thinking of making a clone of rogue (the 80's unix rpg). I'm wondering what the best … | |
I'm seeing if it is possible to write a pong game only using standard C with maximum portability. I've worked out everything except user input. When the game is playing, If the user has no key pressed down, the paddle does not move but the ball should keep moving. I … | |
Kinda had an idea for artificial intelligence, though I don't think it's original. I don't know much about AI, so I'm taking a shot in the dark. My idea comes from biology and evolution (not new in computer science). The 'algorithm' for evolution is simple. Lets say you have a … | |
I'm probably not going post for a few days becouse I'm on Vacation in Toronto (it's hot down here :).) The only roller coster I've ever ridden on is a small one, with a 20 foot hill. Today, I rid on a roller coster called the bebemoth in Canada's wonderland. … | |
Hey guys. I decided to do another project euler problem, and got this problem: [CODE]You are given the following information, but you may prefer to do some research for yourself. * 1 Jan 1900 was a Monday. * Thirty days has September, April, June and November. All the rest have … | |
Who the daniweb mascot? You know, the dude that you see when you don't log in with really long and skinny legs? The picture of his head is just below the "Site Search" button. Does he have a name? Wife? Does he have a house? A car? Whats his blood … | |
Is it possible in C to pass a 2d array without eather of the sizes known? Something like this maybe: [CODE=C]#include <stdio.h> void somefunction(int *array); int main(void) { int array[3][3] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}; somefunction(array); return 0; } void somefunction(int *array) { printf("%d\n", array[3][2]); … | |
I'm trying to write my own function from scratch to add large numbers. This function takes the input of an unsigned long long array, with each number being 10 didgets long (the reason for the long long signed is becouse I might expand it) and adds it to the output … | |
Hey guy's. Can't get this seemingly simple function to work. It is suppost to get a string and return the first 10 characters, than the next time you call it, it returns the second 10 cheracters and so on. I did this in basic a while ago without problems, C … | |
I'm not sure where else to post so forgive me:( I know how to mark a post as solved, but how do I chose who solved it? Sorry if you solved one of my threads and didn't get a forum solved point.:scared: Thanks. | |
Writting a program which involves tallying generated numbers. I'm having problems with the tallying part. It takes a number, and finds it in the second row of an array, and tallies (add 1) to the same position in the first row. Here's my extracted code: [CODE=C]#include <stdio.h> void tally(int number, … | |
Warning, this post contains code for Euler problem 5. Try to solve it youself without looking at anyones code. Its alot more satisfying if you do it yourself. Hello, just found an interesting website called project euler. I managed to get to problem 5 without a too many problems. Anyways … ![]() | |
I'm trying to make a simple prime number generator for bigger program. It needs two numbers (n and c) and needs to edit them. So I decided to put the numbers in pointers, and just give the adress two the pointers. After about a half-houre of fumbling with *'s and … | |
Lately, I've been looking into cryptography, and I'm seeing if I can make a fun, maybe half-decent symetrical encryption alorithm. I am no professional, I've just seen a few algorithms online. I've came up with a few ideas: Version 1) I started of with simple xor encryption. I've learned that … | |
I'm trying to solve [URL="http://code.google.com/codejam/contest/dashboard?c=agdjb2RlamFtcg4LEghjb250ZXN0cxh5DA"]this[/URL] problem. The input file I used was the one on the site: [CODE]4 9 0123456789 oF8 Foo oF8 0123456789 13 0123456789abcdef 01 CODE O!CDE? A?JM!.[/CODE] My abstract idea was: Read the first line, loop the program that many times. Read the next line. Load the … | |
I just wrote a simple function to convert a number with any base into a base 10 number: [CODE=c]#include <stdio.h> #include <math.h> #include <string.h> int tobase10(int *input, int size, int base); int main() { int input[256] = {2, 2, 1, 0}; printf("%d\n", tobase10(input, 4, 3)); printf("Press any key to continue … | |
Here's the deal. I have two arrays. One defining a character set(could be any length), and another defining a string. I want to switch every letter in the string with its placement on the character set. For example: chrset[256] = "abcdefg" string[256] = "gfdc" will turn into: chrset[256] = "abcdefg" … | |
Just getting back into c (I've been dosing assembly for the last few months), so don't laugh at me :S I'm trying to read an input file. The fist line contains how many lines to read. The rest of the lines contain 3 words. Here's an example: [CODE]3 Hello, World … | |
Hey I'm learning assembly (low level only for now) on my linuxbox. Could someone convert the following c++ to asm(low level) so i can learn how to do math operations? #include <iostream> using namespace std; int main() { int a = 10; int b = 12; cout<<a+b<<endl; } Of course … |