15,552 Topics

Member Avatar for
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
230
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
185
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
158
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
242
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
446
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
171
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
106
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
128
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
99
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
Member Avatar for JoBe

Hello ladies and gents, I'm starting on the next exercise, but I'm puzzled a bit and was wondering if any of you might help me with this. I have to enter four integer numbers, non negative and smaller then 16 into ONE variable int x, now, the thing I was …

Member Avatar for Fasola
0
435
Member Avatar for Crazyike
Member Avatar for Narue
0
92
Member Avatar for SquirrelProdigy

Is it neccesary to ever define more than one output or input handle in a Win32 Console program?

Member Avatar for Narue
0
230
Member Avatar for fredkwok

Hi,how do we use perror? Does it only prints out the error message? If so , why don't we use printf instead? Thanks.

Member Avatar for Dave Sinkula
0
72
Member Avatar for Foxtildawn

I keep getting this error message about intializing a varible as a string type: `string' does not name a type I cant figure out how to get rid of it even though i have #include<string> any help would be great: [code] #include <string> #include <fstream> int MAX_ITEMS = 5; enum …

Member Avatar for Narue
0
77
Member Avatar for scrapper777

Hi, I am having problem with the following code.This is on a 32 bit system. The problem statement is: /* isLess - if x < y then return 1, else return 0 * Example: isLess(4,5) = 1. * Legal ops: ! ~ & ^ | + << >> * Max …

Member Avatar for Tight_Coder_Ex
0
167
Member Avatar for susiestudent

I'm not an idiot but there are times when my computer sure makes me feel like one. I have several arrays declared in my code yet there are a couple of new ones that I am trying to create that it won't accept as greater than one dimension. good arrays …

Member Avatar for Narue
1
99
Member Avatar for F50

hi there, I have a linked of structures that I created, but i wanted to implement it using classes. here is a sample of my code that works perfect. The struct, and a function to insert items into the linked list. thanks in advance. [code] struct NodeQ { NodeQ *next; …

0
85
Member Avatar for {{unknown}}

Hi.. I made two codes in C language. One of them is a [B]Dynamic stack [/B] and the other is [B]Dynamic queue[/B]. They are working correctly but I had one problem In both of them. The option 3 in Dynamic Stack [B]code [COLOR=DarkRed]doesn't display the topic in order[/COLOR][/B]? This problem …

Member Avatar for Dave Sinkula
0
139
Member Avatar for kimfalk

How do I solve this? [COLOR=DarkRed]illegal reference to data member 'myClass:flag' in a static member function [/COLOR] [CODE] class myClass{ public: static void change_flag(); private: bool flag; }; myClass::change_flag(){ flag=false; } [/CODE]

Member Avatar for prog-bman
0
488
Member Avatar for Chester1

Iam a New to web page need help making My program access a web page automatic, so when a user starts a program it will send user to server to get information off of server

Member Avatar for Narue
0
117
Member Avatar for scar_zone82

hello there ....can someone help me solve my problem of my assignment....i try to code it....so I need some guidances ... This is the question... An operating systems uses shortest job first scheduling for it’s process management. Assume that there are 10 processes waiting in a queue which is implemented …

Member Avatar for vegaseat
0
189
Member Avatar for Khishin

At the beginning of an "IF" statement, I have: [code]if (SHORT GetKeyState(int 48)==1){[/code] When compiling I get a syntax error just before the constant, and I've played around with it a bit, but haven't found what to do. Could someone fix this or explain to me why it's not working?

Member Avatar for Narue
0
126
Member Avatar for mariners95

Could someone help me with a linked list code. I just cant figure it out. I dont know how to code the part where I need to insert an element in ascending order. Either when there are no nodes then when there is one or a few nodes. Can anyone …

Member Avatar for Tight_Coder_Ex
0
72
Member Avatar for Sadako

Hello! :p I don't fully understand how the Fall-Through method works. I’m making a Calendar and I’m using the switch statement to find which season it is for the month. Here is the book code: [CODE]switch (month) { case 12: case 1: case 2: Console::WriteLine(S" [Winter]"); break; case 3: case …

Member Avatar for Sadako
0
237
Member Avatar for SquirrelProdigy

What I'm looking for is where to look for how to set the size of the console window automatically, as opposed to the default. I've searched through the MSDN library's Console reference for any function that would set it, but nothing seemed relevant to me, granted I'm not very proficient …

Member Avatar for prog-bman
0
113
Member Avatar for deejay400

Hi, Trying to get my head around constructing an array of pointers (I think this is what its called). Been reading lots of online tutorials etc and just getting confused. Basically what I'm trying to is set an array of chars, with each array cell pointing to a linked list …

Member Avatar for Tight_Coder_Ex
0
103

The End.