Search Results

Showing results 1 to 10 of 10
Search took 0.00 seconds.
Search: Posts Made By: iamboredguy ; Forum: C and child forums
Forum: C Apr 12th, 2006
Replies: 2
Views: 936
Posted By iamboredguy
I know that part. I did that. but it apparently does not work.
Forum: C Apr 12th, 2006
Replies: 2
Views: 936
Posted By iamboredguy
I have a code in which I want to swap an element in a matrix with another. User inputs the row, column no of the elements to be swapped. But the code doesn't seem to work. Can somebody help?
PS: The...
Forum: C Apr 7th, 2006
Replies: 6
Views: 3,129
Posted By iamboredguy
that works. thanks a lot!
Forum: C Apr 7th, 2006
Replies: 6
Views: 3,129
Posted By iamboredguy
nice idea. but how do I randomly shuffle a row? taking rowpos[]={0,1,2,3} how do I shuffle? using rand() won't work since I would have the same problem as before.
Forum: C Apr 7th, 2006
Replies: 6
Views: 3,129
Posted By iamboredguy
I know about the size of the array. I just put 10 so that the program doesnt eat up too much memory during testing. I'm pretty sure I decremented the value of n as well. something else is wrong.
Forum: C Apr 6th, 2006
Replies: 6
Views: 3,129
Posted By iamboredguy
for my project, I need to generate an n*n matrix (n is user input) with numbers from 1 to x (x<n) positioned randomly. I tried implementing it with this code but it doesnt seem to work. x = n*n -...
Forum: C Mar 18th, 2006
Replies: 1
Views: 1,675
Posted By iamboredguy
we have a project in our class to design a sliding numbers game similar to this one:
http://www.eatmygames.com/gameinfo.asp?id=24puzzle
the only difference is that the number of blank spaces is...
Forum: C Sep 5th, 2004
Replies: 9
Views: 8,352
Posted By iamboredguy
The remainder gives you the individual digit. After the remainder is taken, the no. is divided by 10. Since in int no decimal pts are allowed, the original no. has one digit less.
Then the remainder...
Forum: C Sep 4th, 2004
Replies: 9
Views: 8,352
Posted By iamboredguy
You do have to use arrays in the method I know, but int arrays, not strings, which I think are easier to manipulate.

#include <iostream.h>
#include <conio.h>

int main()
{
int a[5]={0,0};...
Forum: C Sep 4th, 2004
Replies: 12
Views: 3,350
Posted By iamboredguy
Shalin's method is the ideal one. However, if you don't want to use strcmp() for some reason, there's always a manual, lenghtier way to do it:

#include <iostream.h>
#include <stdio.h>

int...
Showing results 1 to 10 of 10

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC