15,539 Topics

Member Avatar for
Member Avatar for DarkrShadeOfBlu

I'm writing a blackjack program for class and I am having a problem with Aces, jack, queens, kings, my random number generator generates a 1, 11, 12, 13 for those cards, respectively... but Aces should be worth 11, jacks, queens, and kings, as 10, I have attatched my current code, …

Member Avatar for 1o0oBhP
1
194
Member Avatar for jujuju

Hello, i have done a script that is supposed to read urls from the SOURCE. When a user types in vg.no in stdin or read a file that contains vg.no it gets the last 5/6 topics from the newspaper. the problem here is that from pipe 0 to write pipe …

Member Avatar for jujuju
0
153
Member Avatar for Tripoli178

Hello I'm trying to print a Text file using Borland (example: Test.txt) without opening the file (I'm done with my program, and this is a feature I'love to have by pressing a "Print report" button) with no success. Any one done this before? Thanks

Member Avatar for Narue
0
113
Member Avatar for Acidburn

Hello, currently the only way i've found that I cn do a ".H" file in borland is to create a GUI one rather than a console bsaed *.exe file. When I do that it keeps generating errors.... There must be a way in Borland that I can split up class's …

Member Avatar for Narue
0
104
Member Avatar for murgi666

what would really be fun would be .... how to print a circle of asterisks ... i've been trying for a while and have been getting all kinds of lopsided shapes .... .... even some shapes that I never knew existed ..... :lol: Could somebody out there please help moi …

Member Avatar for kc0arf
0
177
Member Avatar for JayseR

I'm new to this whole Visual Basic idea, and my questions may be newb for all of you, but I'd like to learn. Here is my question. At school I was given an assignment , which is: Write a program which uses functions to accept as input from the key …

Member Avatar for JayseR
0
213
Member Avatar for dello

hi, wonder if anyone can help me. I have a text file with the following format: town_name followed by 12 real numbers i.e London 7.24 8.15 6.45 3.24 3.66 2.45 4.71 6.78 6.45 8.61 7.45 6.55 Manchester 12.23 10.67 7.56 4.34 5.55 6.29 8.77 14.77 9.77 7.49 8.34 7.66 Liverpool …

Member Avatar for dello
0
225
Member Avatar for notdumb

Thanks for the input last night Dave. Anyone willing to help: I have rewritten parts of my compplay function; I know its redundant, but I will work on that after I can solve some other problems. The problems I am having are these, imput on any or all of the …

Member Avatar for BountyX
0
123
Member Avatar for baboon4000

i need a code where you cannot put to more than ane letter a, or more than one letter b........................just one letter

Member Avatar for Dave Sinkula
0
221
Member Avatar for tuskyballer

Write a console application program that will build and display a 10 by 10 rectangle within a 20 by 20 rectangle with diagonals. The 10 by 10 is to be centered within the 20 by 20. Use the hypen (-) character for the top and bottom of the rectangles. Use …

Member Avatar for alc6379
0
117
Member Avatar for Layla_2401

Hello Everyone, I'm a problem with a recursive C function. Before I explain the functionality of the code, I'd like to give a brief explination of what I'm trying to do. I'm working on a general tree data type which represents entities, each of which has a list -array- of …

Member Avatar for Layla_2401
0
327
Member Avatar for Alfarata

I believe this is a form of COBOL used in a Realia complied program. I need to know how this section of code works. 01 TEST-LOCK-TABLE. 05 FILLER PIC X(12) VALUE '03 00000 EA '. 05 FILLER PIC X(50) VALUE '08-0001 LOCK/TLOCK,STMPD,H25,LH,W-RIVET'. 05 FILLER PIC X(50) VALUE '08-0002 LOCK/TLOCK,STMPD,H87,RH,W-RIVET'. 05 …

0
85
Member Avatar for asdflkjh

im doin an assignment where these statements r required MENU 1. Enter the id & four subject marks 2. Calculate the total and average 3. Calculate grade 4. Print the grade wise 5. Print GRADE SHEET 6. Terminate the program so far i manage to come up with this and …

Member Avatar for Acidburn
0
234
Member Avatar for shock1

Write the definition of a function named powerTo , which receives two parameters . The first is a double and the second is an int . The function returns a double . If the second parameter is negative, the function returns 0. Otherwise, it returns the value of the first …

Member Avatar for Narue
0
147
Member Avatar for blackdove

This is my first windows app. I basically have my whole program written except for fixing a few lil problems and writing the code for 2 of my buttons. Could someone help me with the "Hex to Decimal" button code? or give some kind of example? my professor helped with …

Member Avatar for blackdove
0
261
Member Avatar for atul8486

sir i want to convert number in word format like 456 into "four hundread fifty six" .plz help me to make this program.my id is thank you

Member Avatar for Narue
0
155
Member Avatar for kloony

Hi Guys, it's me again! I have been posing memory-related problems for the past few days because I don't seem to understand what is the problem with my code. I kind of figured it's due to memory issues....so here's my question. Suppose I have a (first in first out) queue …

Member Avatar for kloony
0
351
Member Avatar for navyblue

#include<stdio.h> main() {int i; do{ printf("*"); scanf("%d",&i); }while(1); } this is a sample program,but u don't look down upon it when u input a unnummber ,there will no stop! i want to know why ???????????????????

Member Avatar for prog-bman
0
111
Member Avatar for Iamhere

Hi ppl I would really appreciate if someone help me out here. I really tried to do this problem and its driving me crazy. All I could get is the algorithum of worst fit, best-fit next fit and first fit. Please help me as soon as I can. And I …

Member Avatar for Dani
0
228
Member Avatar for pjnutt

Hello, I am attempting to make a stored procedure call to an ADO. I will paste in the try loop. Problem is code compiles and runs, however; the stored procedure never runs. It's supposed to create a row in the DB, and the row is never created. If I run …

0
181
Member Avatar for lappy512

Hello Daniweb Forum Users, I have been trying to create a ported version of a caculator game to C, but I am new to C and have been learning from "The C Programming Language", 2nd Edition. I have had only one major trouble that has prevented me from starting: I …

Member Avatar for Tight_Coder_Ex
0
121
Member Avatar for Alfarata

I have some old dll file that were created using Realia Cobol compiler ver 3.10. How can I read these files to extract the values for my new program?

0
157
Member Avatar for sonaj

I am only a college student at a nearby university and i dont claim myself an expert but i am really having difficulty in trying to make a game called Tic Tac Toe in Turbo C. our professor put some requirements for the game. First, the user may enter an …

Member Avatar for kshama002
0
240
Member Avatar for Iamhere

Hi ppl I would really appreciate if someone help me out here. I really tried to do this problem and its driving me crazy. All I could get is the algorithum of worst fit, best-fit next fit and first fit. PLease I willing to give away g-mail invite if you …

Member Avatar for Narue
0
173
Member Avatar for kloony

I have a first-in-first-out queue implementation such that when it is first initialized, a malloc is called to set aside memory for items that will be placed on the queue. When I am done with the queue, how do I free up the memory? My code for the queue is …

Member Avatar for kloony
0
378
Member Avatar for cghv

Hi, I am writing a program at the moment which requires me to scan in data from an external file, which to be added to a linked list. The external file is a list of pairs of cities and the distances between them - each piece of data is tab-delimited, …

Member Avatar for Dave Sinkula
0
159
Member Avatar for arikeri

I not able to decide how to read in a data of the following table A B(initial values) | x = 0 | x = 1 ------+--------+-------- 0 0 | q=0, y=0 | q=3, y=1 note: q=0 means A and B are 0, 0 1 | q=0, y=0 | q=2, …

Member Avatar for Dave Sinkula
0
105
Member Avatar for arikeri

Hi, I have an assignment which entails coding a sequential state machine form arbitrary charecteristic table of a flip-flop and the state specifications given. .For example, if the user wants one input x and one output y, and the following excitatoin table for the state machine: | x = 0 …

Member Avatar for Dave Sinkula
0
125
Member Avatar for degoden

I need some help with the following problem. We've touched on scanning tree algorithms a little bit, but not to this extent. My textbook has been useless so far. Can somebody help me with the answers to this? Answer the following: template <typename T> int treeFunc(tnode<T> *t) { int n …

Member Avatar for Narue
0
97
Member Avatar for evilsilver

I am trying to get my program to display multiple files for a user to choose from to load, this is the general code i tried but don't know how to actually put it as (the for loop is what i am having the trouble with) [code] ofstream save; ifstream …

Member Avatar for evilsilver
0
75

The End.