well I guess I am a little lost. I do not really know the difference between a console program or a windows program. Also that link...I don't really understand it. where do I put that stuff? Directly in my C code?
Me again. Now that I've figured out a way to add 3 numbers from one set to an array (say arr[60]), 20 numbers from another set to the array, and 36 numbers from yet a third set to the array (and solved my infinite loop problem), I have encountered (what I think may be the last) another problem...
Hi again. I am stuck with an infinte loop:
int arr[18]; //an array of 18 integers (Iadding integers later)
int deck[60]; //empty to start
int j = 0;
int r = 0;
int u = 0;
int c = 0;
int i = 0;
deck[0] = 1;
for (i = 1; i < 60; i++)
{
j = 0;
while (j == 0)
{
x = ((323 * rand()) /...
I am trying to create a switch function...this is what I have so far:
switch (fixed)
{
case(1): {
fp1 = fopen("somefile.dat", "w");
printf("\"somefile.dat\"");
while(l<6)
{
for (ctr=(l*10); ctr<((l+1)*10); ctr++)
{fprintf(fp1," %d,"...
is there a way to make a range limit in the cases within the switch function. For example is it possible to do something like this:
switch (int)
{
case(x to y): {printf("YAY!"); break;}
}
-rewclaus
Hi,
I am trying to make a program that will randomly generate a deck of sixty cards for a ccg (customizable card game). In this deck I would like there to be a certain number of cards of different rarities (Rare, Uncommon, Common and Fixed). I have no idea how to even begin this project so I...
How can I transfer items from a DataList to another list and then export that list with a Save command? I want to be able to keep all the info of the transfered Items in the new list...So it's like transferring items in a database to a new database, but using a datalist.
What I'm attempting to...
How can I transfer items from a DataList to another list and then export that list with a Save command? I want to be able to keep all the info of the transfered Items in the new list...So it's like transferring items in a database to a new database, but using a datalist.
I am having trouble making a Datalist control be able to update other data controls in my project. I tried something like this:
Private Sub dlstCards_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single)
datCards.Recordset.Bookmark = dlstCards.SelectedItem
End Sub
and when I...
If I have a database, and I move things from the database into a text box, how can I save the new list to a .txt file or other file?
Or better yet, If I have a database can I create a new database to accept data from the old db and then save the new db?
Well actually I want to limit the x # to a max of 3. And a command button will be used, but I would prefer to just be able to dblClick the item in lst1. Something I should mention is that I don't want to remove the data from lst1, I just want to move it.
Thanks for what you have done Fractal!
Hi, I was hoping someone could help me with a problem. I want to have a list box (call it lst1) that I can move data from to another list box (let's call it newlst). However, if the data I move is already in the newlst I want the lst to redisplay the list but with a x # after the item.
e.g...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.