19,876 Topics

Member Avatar for
Member Avatar for Auto

I have a function in one of my programs that picks a random state from a list. It then puts this random state in a structure array. However the name selected from the list does not match the name that winds up in my array structure. The following is not …

Member Avatar for Auto
0
155
Member Avatar for duner

Hey all, First post here and hello to everyone. I've been studying C for a few months now, and everythnig has been making sense and I'm enjoying the challenge of learning to progeam. Ther is one thing that keeps eluding my understanding of arrays, and that's using a variable in …

Member Avatar for duner
0
2K
Member Avatar for hasan2003

A teacher of mine at NCC course said that a Array cell contains the memory address (pointer) of the next cell. is it true ?

Member Avatar for Acidburn
0
138
Member Avatar for tat2dlady

I have a problem where I read in a 2D matrix and divide the matrix into 2 parts, where the sums of each part are equal. Each part must contain contiguous integers that can be networked together by following paths from one intger containing cell to another via shared sides. …

Member Avatar for tat2dlady
0
165
Member Avatar for Asif_NSU

I have a template linked list class, eg: [CODE]LinkedList<int> list1; LinkedList<implicant> list_imp;[/CODE] Now I need a Linked List of Linked Lists, This is how I declared [CODE]LinkedList<LinkedList<implicant> > list_of_lists;[/CODE] Then I declared a Linked List of implicant class. [CODE]LinkedList<implicant> implicants_list;[/CODE] I calculated some value and put them in the implicants_list. …

Member Avatar for Narue
0
144
Member Avatar for blackdove

I'm doing a "magic square" program and I'm having trouble with a button. It is supposed to stay active for as many clicks as it takes to fill the array storing the numbers, then become disabled. The button stops working the first time i click it though, and i dont …

Member Avatar for blackdove
0
132
Member Avatar for LaurenB

I have run all the required programs including CWShredder, TrendMicro, Spybot, Ad Aware SE, & VX2 Cleaner. However, I am UNABLE to change my homepage. It continues to change on its own to c:\searchpage.html. When I ran TrendMicro, there was one trojan that could not be deleted: mtwirl.dll -- if …

Member Avatar for caperjack
0
242
Member Avatar for the_shark

Hi friends... I have a problem with some c codes and I think that you will be Capable to point it up for me. However, I do not want anybody to post the correct and complete code to me . I want to enter a string of numbers and the …

Member Avatar for the_shark
0
172
Member Avatar for mehdy
Member Avatar for Mature_Student

Hi there, I have used the advice in this forum to solve most of the problems I have had so far but I am running out of time on this final assignment (due this evening) and I am stumped. I need to write a function that takes a time in …

Member Avatar for Mature_Student
0
227
Member Avatar for letmec

I am working on a program for encryption & decryption using SDES Algo. This Algo. takes a key of 10-bit length and input plaintext of 8-bits length and produces a ciphertext of 8-bits length. I have collected the key in an array of char (char key[11]) and plaintext as unsigned …

Member Avatar for Tight_Coder_Ex
0
124
Member Avatar for Auto

After fixing some pointer problems with my structures, I decided to move the functions performed on them to another .cpp file. Here's the definition in my [B]main.cpp [/B] above the int main() of course [CODE][B]struct[/B] employee { [B]char[/B] name[[COLOR=Navy]20[/COLOR]]; [B]int[/B] schedule; [B]int[/B] level; }; [B]struct[/B] employee salesdept[[COLOR=Navy]10[/COLOR]];[/CODE] then in my …

Member Avatar for Auto
0
242
Member Avatar for Auto

I have a program that calls a function to generate an array of structures( data_set ). The structures consist of a char[20] and 2 int data types. Now what I'm trying to do is randomly pick from an enumerated data type and here is the code I have with a …

Member Avatar for Auto
0
154
Member Avatar for tenoran

Thank you for reading the thread. I have been studying "How a floating point number is stored in 32 bits". I know a way to find the exponent numbers. But I don't know a way to find the mantissa values. Why the mantissa of 6.625 would be 010000011(

Member Avatar for Narue
0
125
Member Avatar for bigMon21

I am working on an exersize where I must display the elements of an initialized array of 10 double elements using a pointer variable and pointer arithmatic, I know how to display one element from the array but how do I display each element from the array?

Member Avatar for Narue
0
83
Member Avatar for kaoss1103

Ok i've just started programming(<-- i bought a book)well just started learning, and already 2days in im faceing issues i cant deal with yet or dont understand (well i am on a mac). so i think it would be a smart move getting a mentor(a nice person willing to exchange …

Member Avatar for Acidburn
0
157
Member Avatar for Geek-Master

Hey everyone, I'm trying to find some tutorials for peer-to-peer network programming ( LAN Parties ). I browsed through MSDN for any tutorials, but the only thing they have is stuff on DirectPlay. I would like to know how to connect to another/multiple computers. I've been reading up on Windows …

Member Avatar for alc6379
0
110
Member Avatar for PeterPurple

I posted this this morning on a newsgroup, but no one is answering questions there, I guess the newsgroup is dead. <my post> > I'm a newbie to the Window's platform and I need some > help. I have a program I'm working on that draws and > animates a …

0
97
Member Avatar for vengefulemus

If dealing with Windows and Serial Port communications isn't bad enough, I cant' even seem to come close when trying to implement a solution using completion routines and the WriteFileEx and ReadFileEx functions. Am simply trying to have both read and write fucntions as overlapped IO using these functions and …

0
65
Member Avatar for JoBe

Hi ladies and gents, I'm trying the next exercise: Write a function value, wich adds the decimal numbers of 'n' together and return the result of this into main? For example: 0.1234 = 10 0.01234 = 10 0.3286 = 19 What Ive got so far is this: [CODE] short amount …

Member Avatar for JoBe
0
299
Member Avatar for galmca

hi...i am really facing a problem in printing a "binary search tree which does an inorder traversal and searches for a node and insert a node"....so i have written a program for that but it doesn't print a binary search tree and is giving some strange grabage values i don't …

Member Avatar for Fasola
0
406
Member Avatar for xplod420_2

Hello i am writing a program and i really need help. here is what the program is about. 1. It needs to ask a number of tickets sold. 2. persantage which goes to some other coast. This input will be entered in percent format. program must convert this to a …

Member Avatar for xplod420_2
0
144
Member Avatar for cblue

Can Anyone explain to me what defines a symmetrical matrix and what is i'm looking for that mkes a matrix symmetrical, any help on this subject would greatly be appreciated. it would help me understand, so i can write the boolean function to test if a matrix is symmetrical or …

Member Avatar for Dave Sinkula
0
92
Member Avatar for ibmackin

how the hell do you do this?! please help asap! a. This problem is similar to the problem in your last assignment. However, this time you will need to keep track of all integers input by the user. b. Create a program that will read a series of ten (10) …

Member Avatar for 1o0oBhP
0
163
Member Avatar for tat2dlady

I have a problem that I am not sure how to even come up with a solution. So, I was wondering if anyone would have any input to the problem at hand. I have to divide a matrix that is defined by an input file into 2 distinct regions so …

Member Avatar for murschech
0
158
Member Avatar for Raza

:) Hello Everyone...IM RAZA..from Pakistan...new member here.. Well i hav a problemm....big problem now adays/// i have a project to make an operating system....can somebuddy help me?? i dont have any idea...guide me if u can.. RAZA. [url]http://www.razasnet.tk[/url] (under construction)

Member Avatar for Raza
0
224
Member Avatar for tw0nk

Hi I am getting this error with my code as I try to pass a 2d array into a function : mymain.cpp:173: error: cannot convert `float (*)[((dimensions - 1) + 1)]' to `float**' for argument `1' to `float objfunc(float**)'])' The code is as follows: [url]http://cpp.sourceforge.net/?show=4356[/url] The lines 0030, 173 and …

Member Avatar for Narue
0
85
Member Avatar for ibmircea

Hello! I want to creat an windows (nt) service? Could anyone tell me where i can find some documentation?

0
101
Member Avatar for Geek-Master

I've used "if and else" statements to test for conditions, but if's can get very "iffy" sometimes. Specially when you need to test for several possibilites. I was wondering if there is another way to do tests for conditions instead of using the IF. Just for better programming. example: tic-tac-toe …

Member Avatar for Geek-Master
0
106
Member Avatar for Tight_Coder_Ex

I'd like to read a floating point value [b]cin >> Value [/b]where Value is declared as a double and then output it to a string justified to two decimal places. I understand how to do it using a temporary file, but I'd like to avoid that method and [b]sprintf() [/b]if …

Member Avatar for Tight_Coder_Ex
0
164
Member Avatar for eleet

I am trying towrite a C program which will print yearly calendars, given as input the year numbers. Input data will be taken from a text file, which will contain an unknown number of data lines, each containing a single integer giving a year, I first created a function to …

Member Avatar for eleet
1
170
Member Avatar for crestaldin

[COLOR=Black][FONT=Arial]Ps I need some help with my Windows programming assignment. My instructor wants us to draw an ellipse(2D) and make it appear like a ball(3D) by applying different shades of the same color to different parts of the ellipse. By assuming any point is the light source, parts near to …

Member Avatar for 1o0oBhP
0
182
Member Avatar for Raven11

I hope this makes sense... I made a program which requires authorization by username and password, once logged in it will allow you to load a program. My question is, is there a tutorial for the program being called to only open if it has been called by a certain …

Member Avatar for 1o0oBhP
0
304
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
199
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
159
Member Avatar for j.kelly

Can somebody please tell me where I should put an enumeration which will be used by several classes. [code]enum Direction { UP = 1, DOWN = 2, NONE = 3 };[/code] All of the classes have their own .h and .cpp files and at the moment I have the enumeration …

Member Avatar for j.kelly
0
86
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
118
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
109
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
182
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
219
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
227
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
136
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
223
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
121
Member Avatar for dallin

I have random numbers such as 1 6 8 5 7 3 9 2 4 in a 1 dimensional array what for loop do I use to reorder the numbers from 1 through 9? thanks.

Member Avatar for Narue
0
329
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
334
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
89
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
236
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
150
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
268

The End.