15,539 Topics

Member Avatar for
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
433
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
146
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
155
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
128
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
477
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
186
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
125
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
71
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
235
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
112
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
102
Member Avatar for Justup

i am pretty new at programming but i want to make a program that will download a file from a TFTP server and then execute that file in command prompt with specific paramete. Can someone give me some general coding i should use?

Member Avatar for Justup
0
65
Member Avatar for onauc

Hello everybody, I am very curious to see the source codes that describe an image. I want to actually check the source-codes of gif, jpeg etc. files. Also, I am very curious to see the source codes that describe an sound. I want to actually check the source-codes of mp3 …

Member Avatar for frrossk
0
168
Member Avatar for notdumb

Hi, My assignment for class was to produce a program that runs the seive of eratosthenes to determine all the prime numbers between 2 and n, with n no larger than 100. I tryed to write the program with a boolian array that will turn all non-primes to false up …

Member Avatar for Siersan
0
88
Member Avatar for jillas

I have a question on how to program my nested loops. This is the output i am supposed to have. Enter the number you want to sum to: 8 0 = 0 0 + 1 = 1 0 + 1 + 2 = 3 0 + 1 + 2 + …

Member Avatar for jillas
0
103
Member Avatar for dani1982

I can't get this correct for the life of me please help!! one part (the one thats wrong) says to write it to determine the day of the week for a given day. I don't know how to do this?

Member Avatar for Dani
0
107
Member Avatar for zizi

i would be plzed that some1 tells me why doesn't my program run?and gives this massege [COLOR=Red]"could not creat process!"[/COLOR] [CODE] #include<stdio.h> #include<stdlib.h> #include<conio.h> struct list { char alph; int freq; }; struct list a[256]; /////////////////////////////////////////////////////////////// int main(){ int j,m,f,k; FILE *fin; char ch; clrscr(); fin=fopen("a:test.txt","wt"); printf("\n enter characters($ for …

Member Avatar for Tight_Coder_Ex
0
87
Member Avatar for jlw024

I am having a problem with my make I ran the make depend with no errors but when I ran the make it it gave me an error of ld fatal library -llog_mgr not found.

0
44
Member Avatar for labomba1424

i have to write this program Create a simple game program that guesses a number. Ask the user to think of a number between 0 and 7. Then ask three yes or no questions and a binary search to discover the answer. Input and guard the users answer with an …

Member Avatar for Narue
0
90
Member Avatar for sachin kumar

Hi All, I have a build an application which uses file names from a directory. to get these file names I used the following code from MSDN. FILE * fp; String *extension; // Create a reference to the current directory. DirectoryInfo* di = new DirectoryInfo("C:\Sachin"); // Create an array representing …

Member Avatar for steveh
0
116
Member Avatar for jasweb2002

Hi everyone, I need to write a compiler using Yacc and I have encountered a problem. Since some of the code is C i thought I would try here. The problem occurs at one line in the following program. Once running, everything runs fine till this line is hit, then …

Member Avatar for jasweb2002
0
82
Member Avatar for ITman

can any one give me C program for ROUND ROBIN ALGORITHM . please needed urgently

Member Avatar for ITman
0
107
Member Avatar for chound

Just to attract your attention. :cheesy: :lol: :cool: ;) Here's the problem: I have this string "flames". Then I get a number from earlier part of myprogram. Let the number be 4. Now 'm' is the 4th character. This should be removed. Then the remaining string is "flaes". Now 'e …

Member Avatar for Narue
0
207
Member Avatar for r2d691

Hi, I hope I'm posting this in the right place. I'm trying to develop some code to mark the DSCP field of all packets using the MS Traffic Control api. From looking around this seems to be several years old but I can't find any code examples or useful information …

0
43

The End.