199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for meistrizy

Hello. Thanks in advance for helping a newbie. I am supposed to add a bottom loop (which I assume is a do while) that asks the user if he/she wishes to compute another series and as long as the answer is 'Y' or 'y' to iterate the loop until 'n' …

Member Avatar for meistrizy
0
59
Member Avatar for roidel

Hi, i found this code from an article, i want to compile this code, buat I don't have file polygon.h. Can you send file polygon.h to me, because i have search from any web buat i don't find it. This the code [code=c] #include<stdio.h> #include<conio.h> #include<windows.h> #include<math.h> #include<stdlib.h> #include<GL/glut.h> #define …

Member Avatar for jencas
0
176
Member Avatar for gm999

Hi guys, I'm quite new to C++ and I'm having problems with a simple operation. I have to resize an array of structs, but seeing as I am having a problem with the concept, i'll post an example with a simple array of integers. Please bear in mind that this …

Member Avatar for gm999
0
88
Member Avatar for samishunk

A Book shop maintains the inventory of books that are being sold at the shop. The list includes details such as author , title , price , publisher and stock position. Whenever a customer wants a book , the sales person inputs the title and author and the system searches …

Member Avatar for samishunk
0
189
Member Avatar for lllllIllIlllI

Hi guys, I have a program that lets the user play a sound but i was wanting to know how i could make it so the user could vary the speed in which the sound plays so the sound can play slowly and quickly and normaly as well. Is this …

Member Avatar for lllllIllIlllI
0
3K
Member Avatar for Dewey1040

I understand the algorithm SelectionSort, but once again my problem is the easy part( i think the college life is affecting my mind ). How in the world do you read in an unknown number of ints from a file? I thought i did it right but when i run …

Member Avatar for ArkM
0
97
Member Avatar for lmastex

Hi. I want my Insertion method in my link list class not to insert repeated elements. I have tried several ways but I have seriously ugly bugs in my code: [code=cplusplus] template <typename ListElement> void List <ListElement>::Insert() { NodePtr Ptr; Ptr = new Node; bool repeated = true; if (Ptr …

Member Avatar for Laiq Ahmed
0
173
Member Avatar for umairsario
Member Avatar for stephen lowry

hi guys i have fairly good knowledge of vb6 but cant for some reason get my head around this i want to develop program where you can add multiple names (text string) then press generate and a name is randomly selected for quiz purpose , the name or string dos'nt …

Member Avatar for stephen lowry
0
79
Member Avatar for karang

Hi I have a virtual function setStartupDirectory() virtual bool setStartupDirectory(const SysString &sStartupDirectory) = 0; When I am calling this function setStartupDirectory((const SysString &)m_pApplicationFolderNarrow); I am getting this error Error 2 error C2664: 'setStartupDirectory' : cannot convert parameter 1 from 'const SysString' to 'const SysString &' Am I missing something

Member Avatar for sweeya
0
129
Member Avatar for murderotica

Hello there, I've been working with threads right and I'm kinda stuck with how to implement the BackgroundWorker while I drop a lot of files in my form. I'm having a hard time how to arrange my code, specially on how to deal with the DoWork event of the BackgroundWorker …

Member Avatar for LizR
0
110
Member Avatar for escolta

i get an excel report each month, There are two columns (person`s name and Salary) in this month report there was 99 persons. my question is , if in next month excel report there are less persons...say 75, and also 23 persons raised their salary.. how can i updatae this …

Member Avatar for ss.jagadish
0
1K
Member Avatar for ACRobison02

I have to create a program with parallele arrays that recieves information from a file telling it how many salsas their are (their can't be more than 10). One array containts the name of the salsa, the other array contains the number of salsa jars sold. Then I have to …

Member Avatar for cikara21
0
106
Member Avatar for justted

Hello everyone, I am setting up a section of coding in which I need to add and subtract certain values to a mysql field. However ...the code only seems to add negative numbers (-13.0) as a postive number to the database and its really confusing me now! :( What I …

Member Avatar for justted
0
2K
Member Avatar for Jwhispers

I had to write a program to add two angles together. I've got the meat done, but i'm having a hard time figuring out how to code the program when i add the angles together so that when say Seconds is more than 60 it adds 1 to minutes. example: …

Member Avatar for Jwhispers
0
265
Member Avatar for piznut25

[CODE]/* Filename: odometer.cpp * Author: Tom Pizzo * Email address: pizzotm@clarkson.edu * Description: Program to track fuel and mileage for an automotive vehicle. * Last changed: Dec 1, 2008 */ #include <iostream> using namespace std; const char YES = 'y'; class Odometer { public: Odometer (); //Constructor function to initialize …

Member Avatar for cikara21
0
138
Member Avatar for kitty7

Hello, I am a new programmer attempting to tackle this puzzle after a couple of setbacks. I was excited about this project, but I am very stuck, and I am not sure where to go, or even if I'm on the right track. Okay, so let's get down to the …

Member Avatar for kitty7
0
135
Member Avatar for rouse

I am trying to get a row from a table based on the record number, a unique ID in a table which is passed from another form. The record number seems to be passed correctly and is received on the forwarding page. The query in the PHP page does not …

Member Avatar for Aamit
0
156
Member Avatar for namehere05

Ah right! Im on my first steps on c++, What Im trying to do is have this "basic node" class wich just take an id and from there usign inheritance make "linked list node" and "binary tree node" classes my code so far looks like this [CODE]void main() { sLink* …

Member Avatar for namehere05
0
113
Member Avatar for acperson

I've been trying to fix these errors for a while now and I'm having difficulty. Can anyone help? I've attached my header file, .cpp file and main. The C2533 and C2511 are both in my .cpp file. c:\documents and settings\tina\my documents\visual studio 2008\projects\csci112lab4\csci112lab4\invoice.cpp(15) : error C2533: 'Invoice::{ctor}' : constructors not …

Member Avatar for acperson
0
463
Member Avatar for Bleek

hey... im in a c++ class at school but i also program at home. my teacher refuses to teach me graphics and i wanted to know if there was an easy way to just basically cout a graphic. if this is noobish and i need to learn a lot more …

Member Avatar for Manutebecker
0
395
Member Avatar for anbuninja

Im having a hard time where to start with this assignment. Obviously I did the easy part now its time for the loop which i just dont get. heres how the program will run [B]Enter the initial balance ===> 1000 Enter the number of months to cover: ===> 3 Enter …

Member Avatar for Lerner
0
115
Member Avatar for spi02

Hi everyone! My problem basically boils down to this: I have 71 items, and each item can be either on or off. I need to consider all the combinations (permutations?) and go through a 100 for loop for each of the 2^71 scenarios...on the scale of 10^23. Two questions: [CODE]1) …

Member Avatar for shaun.husain
0
103
Member Avatar for qaizaar

how do i read an input in LC-3 where it checks for yes or no as an answer to a prompt and returns 1 if yes and no if 0. thanks

Member Avatar for c0dex
0
137
Member Avatar for Awebb999

I just learned about bubble sort and still don't know how to make it work in my program I hope someone can help me. This is my task I should use parallel arrays (of size 20) for student name, student number, test score, and letter grade. The list must be …

Member Avatar for Awebb999
0
152
Member Avatar for VirusTalker

Okay so this is the deal. I want to make a call to a routine that replaces all of one certain type of integer with a number. I have it to where it is replaceing the first, however, it misses the tail node.[ICODE] public static SimpleList<Integer> replaceAll(Integer old, Integer nEw, …

Member Avatar for shaun.husain
0
158
Member Avatar for FTProtocol

ok so im trying to find a certain string in a txt file and once its found it needs to skip that line, the next line then add the following 2 lines into their own buffers. EG: Example ofomgwtfcantfindit kthx Woot Bang asdasd 'asdasd asdasd so it finds the string …

Member Avatar for Ancient Dragon
0
188
Member Avatar for ojung
Member Avatar for jbody

There is something that I saw and wanted to check if it is really wrong, as I thought. In the second edition of The C Programming Language 2nd ED by Brian Kernighan and Denis Ritchie, in the section of 5.2 Complicated Declarations, in page 109, it is written so, isn't …

Member Avatar for ArkM
0
119
Member Avatar for cherryteresa

Hi there. I had to make a code to print out a Pascal Triangle. But I'm not getting it to display properly. For example, if the user types in 4, then it will print: 1 1 1 2 1 3 3 But it should print 1 1 1 1 2 …

Member Avatar for cherryteresa
0
293
Member Avatar for 50tips

Hi, I have installed wordpress multiuser script on my vps host. when a user tries to upload a file, the script will create new folder, the new folders begin created are under apache ownership, that's why they are not accessable by normal users. can someone guide me how to set …

Member Avatar for cron410
0
78
Member Avatar for azagorath

hey guys , i am trying to write this program , the program has 3 arrays char source[]="abcdefghijklmnopqrstuvwxyz"; char target[]="jfghdfsdyncdbdfklhdslasudfds"; char line[26]; now i have to ask the user to enter a line cin.getline(line,26) what i want to do is to check the characters in the user input(line) if it …

Member Avatar for azagorath
0
279
Member Avatar for 4ukh

hi guys! | -----------------------|---------------------|------------------------------| | validation_period |-----sys_date-----|-------exp_date-----------| |------------------------|---------------------|------------------------------| |-----------6-----------|---26/11/2008---|-(add validation_period-| |------------------------|---------------------|field value into------------| |------------------------|---------------------|sys_date)...?--------------| |-----------------------------------------------------------------------------| using ms access 2003 i got the system date by using date() function but the real job is to pass the validation_period (which is basically a number of month(s)) field value as a parameter into …

Member Avatar for 4ukh
0
79
Member Avatar for teddybouch

This one's got me really confused, but hopefully y'all will see something I can't for lack of experience and expertise. The following segment of code is part of a larger function that performs a Hough Transform on a series of coordinates to find lines described by the points. I'm looking …

Member Avatar for teddybouch
0
122
Member Avatar for superl

Hi there, Ok I have this problem: I have a databound datagridview from a child table with four collums in it: SongName SongUrl CdNumber that is F_key SongNumber that is primary key identity yes none of them accept null value CdNumber is the F_key from the parent CdNumber that is …

Member Avatar for superl
0
97
Member Avatar for VirusTalker

[ICODE] public static boolean member(Integer obj,SimpleList<Integer> l); // returns true if obj is a member of l, false otherwise { }[/ICODE] the question is how could I use recursion to show that there is a member of a list? I thought that maybe if (l.isEmpty()) {return false} else ? thanks

Member Avatar for VirusTalker
0
108
Member Avatar for Martin88

Hey hi I have a problem with to C++ programs for my final project, the problem is that i tried to make the code but first the C++ program say general protection exception i read some of this but i still think that the structure of my program is not …

Member Avatar for Martin88
0
201
Member Avatar for geekru2

Hi, I am coding a c++ based simulator, for which i need to implement a message queue. The structure of the problem is such. We have a program that contain a "queue" of messagePacket messagePacket in this case is a [icode] pair <int , message> [/icode] where message is a …

Member Avatar for StuXYZ
0
177
Member Avatar for Freaky_Chris

Hi, i'm doing some work with double atm and i have what appears to be a simple expression. When i work this out in my head i get the answer to be 0. However running the code gives me a very obscure value -5.77338e-017 Any help as to what i …

Member Avatar for StuXYZ
0
263
Member Avatar for duhasteme

Why do some of the link here does not work... [url]http://patrick33.freehostia.com/[/url] click on videos...categories...members.. this is a very popular script and I am sure a lot of you guys out there would be familiar with it. Thanks in advance. Patrick.

Member Avatar for martin5211
0
88
Member Avatar for teddybouch

I'm having trouble with passing a linked list between functions. I did some research online and found a few things, one of which was here, that led to the conclusion that I am not passing my linked list by reference. However, I have tried numerous different syntaxes to do this, …

Member Avatar for teddybouch
0
116
Member Avatar for Dewey1040

I know there are multiple threads on Matrix Multiplication but all of them are either different from what i need, or are unanswered. I am trying to multiply two N x N matrices. The two matrices and N are all found in a file via argv[1]. I have spent hours …

Member Avatar for Dewey1040
0
151
Member Avatar for jeffclarke

was directed here by another member...great site! (am a newbie and I recently posted this on MSDN with 0 replies, am hoping someone can help here - you do not need to know VFP, just need help formatted a correct string that ASP will honor), Current Setup: Using: Visual Web …

Member Avatar for arturorivas
0
140
Member Avatar for NinjaLink

Hello all, My objective is simple. I have to take in 2 positive integers and multiply them by using addition. This is a recursive problem. Example of Output: [B]Please enter 2 positive integers to multiply: 4 2 4 * 2 = 8[/B] The problem is whenever the user types in …

Member Avatar for mrboolf
0
756
Member Avatar for Traicey

I have 2 datagrid, 1 with details of Category and the other with the products user selected from the other datagrid, what Im saying is I have a select command on my 1st datagrid so when I select something from my 1st datagrid it should be added to the 2nd …

Member Avatar for 4advanced
0
82
Member Avatar for Sheryl99

I am studying VB.NET in a VB 2005 book, but using VB 2008. What is wrong with this code? I am using ASP.NET to write a web page. For each reference to: ResultFahrenheit.Text ResultCelsius.Text ResultKelvin.Text I get errors that say: Name 'ResultFahrenheit' is not declared. Name 'ResultCelsius' is not declared. …

Member Avatar for 4advanced
0
152
Member Avatar for kibosh

Good afternoon, I'm hoping you guys can help me out with a simple problem. I am working on my first AJAX powered app, and I'm having a problem with the PHP portion. I am passing a value "q" from my app, that should return a Country name. Instead, I get …

Member Avatar for kibosh
0
124
Member Avatar for lmastex

Hi. Can you guys help me out with this link list method. The method issuppose to say if a list is in ascendent order or descendent order. I have this right now: [CODE] template <typename ListElement> int List <ListElement>::order() { NodePtr temp1; NodePtr temp2; temp1 = Head; temp2 = temp1->Next; …

Member Avatar for lmastex
0
136
Member Avatar for raelian1

I'm attempting to create a 3D object based only on bitmap images. Is there a tool or technique or anything that can help me accomplish this?

Member Avatar for PirateTUX
0
200
Member Avatar for blunt57

Hi all I am a beginner with mark up and am trying my hand at HTML, Javascript and PHP. Currently I am copying source code from sites so I can learn and understand the code and rebuild the sites with my own content. Just recently I came across a site …

Member Avatar for snadboy6371
0
2K

The End.