132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sciprog1

Hello Members, The wait() system call is illustrated to be used as follows: [CODE] int status, pid; /*fork a child process*/ /*parent is waiting for the child to terminate*/ pid = wait(*status) [/CODE] What exactly does the pointer to the "status" variable do when "status" has not even been assigned …

Software Development c
Member Avatar for sciprog1
0
252
Member Avatar for badllama

Otay, I was brushing up my coding skills by creating a basic, coding 101 list class. At this point it works fine with a generic value, either primitive type or class. If it's a class, all the relational operators need to be overloaded to match the class key. I suddenly …

Software Development c c# c++
Member Avatar for badllama
0
140
Member Avatar for Madawar

Hello i want to create a file crawler that lists all files in hard disk using directory functions in C i have been able to list files in one directory only and haven't been able to crawl through other directories and sub-directories this is what i have so far. [CODE] …

Software Development c file-system
Member Avatar for Madawar
0
418
Member Avatar for soccer13

Is there any way to use a single switch statement more than once? In the program I'm writing currently, rainfall figures are read from a file, and I have two methods that are determining which month has the highest/lowest rainfall. I keep a count using these methods and return the …

Software Development java
Member Avatar for jon.kiparsky
0
364
Member Avatar for pandaEater

I'm making a heap class and I want one of my functions, [I]const Employee& Heap::top() const[/I], to return a reference to the top element or throw an error if the heap is empty. I've never used try, catch, or throw statements before so I'm having trouble getting it to work …

Software Development c++
Member Avatar for pandaEater
0
135
Member Avatar for "ICode"

hi all, ---put in mind that im doing an ASP.NET website.... i made a DB using VS2010 (installed SQL server 2008 with the VS 2010 installation). the DB is in the App_Data folder. in the default.aspx.cs file i wrote this [CODE] Sqlconnection con = new sqlconnection(); con.connection = "server=.\\SQLEXPRESS;AttachdbFile=|DataDirectory|\\Database.mdf;Database=Database;Trusted=true;" [/CODE] …

Software Development asp.net c c# c++
Member Avatar for Momerath
0
932
Member Avatar for newbee3

Hello, I need to write a password check function to validate the following: 1. Length of the string is at least 5 characters. 1. Cannot be all digits. 1. Cannot contain a space. Below is some of what I have so far but I'm not sure if it is correct. …

Software Development c++
Member Avatar for Isaac Remuant
0
128
Member Avatar for chamnab

hi does everyone know how to delete ' ->' in visual c++ ? Ex. #include<iostream> -> int main() -> ->{std::cout<<"Hello"; -> ->. return 0; ->-> }

Software Development c++
Member Avatar for Ancient Dragon
0
97
Member Avatar for vJeel

I have problem with the stopwatch i made. For some reason, when i press "start" it just lags out. Can someone please check the code and tell me whats wrong? THANK YOU SO MUCH! Executor [CODE] package stopwatchpackage; public class StopwatchMain { public static void main(String[]args) { new StopwatchMain(); } …

Software Development java java-swing
Member Avatar for mrnutty
0
186
Member Avatar for lauruskamj

I have to write a C++ program that inputs a file containing three arrays which need to be added together. The file needs to have its dimensions on the first line and then the three matrices following it. I can't seem to get off the ground with this. I know …

Software Development c++
Member Avatar for Ancient Dragon
0
98
Member Avatar for jnewing

Hey all sorry I'm new to c++ and just trying to get my head around vectors of objects etc.. so here is what I'm playing with [CODE] #include <iostream> #include <string> #include <vector> using namespace std; class foo { public: std::string blah; std::string blah1; foo() { } foo(std::string b, std::string …

Software Development c++
Member Avatar for Ancient Dragon
0
170
Member Avatar for ritcherjd

I have a problem at hand. It is to generate a C code - i need to do the following, i will capture an image, then i have to this image into an array using C on which i can do some image processing. How do i go about it? …

Software Development c image
Member Avatar for angelique28
0
1K
Member Avatar for anuj_sharma

Hey Guys, Can anyone please provide me the link for downloading Visual Studio 6.0(Full Version) Thanks.

Software Development visual-basic visual-studio
Member Avatar for abelingaw
0
230
Member Avatar for kengamble

The following Ilmerge example merges all the dll files into a single executable. The problem is this merged executable creates a dos window along with the expected windows form. I do not know how to avoid this dos window. The unmerged version of the exe does not have the dos …

Software Development
Member Avatar for kvprajapati
0
859
Member Avatar for tachyonshower

hi, i had posted before but decided to just give it a go on my own. now i am sort of in a similar spot with my code. i am modeling an oscillatory system by coupling spring-masses in a lattice formation. i would ideally like to have a second lattice …

Software Development python
Member Avatar for tachyonshower
0
200
Member Avatar for Spartan_MSU12

Hey all, this probably is a simple fix and i just don't see it. I am having trouble printing out a code. I am supposed to print a list of User-names passwords and Pin numbers in visual C++ console, but when i run the program my pin numbers seem to …

Software Development c++
Member Avatar for jonsca
0
181
Member Avatar for kshaaban

Hi everyone, i was wondering how it might be possible to send variables from a programme written in c++ to be used in a separate application which is coded in python. I am using opencv to calculate points of interest in c++. I would then like these resulting co ordinates …

Software Development c++ python
Member Avatar for kshaaban
0
314
Member Avatar for arineon

I am trying to come up with my own code for strcat. This is what I have so far. I'm getting a segmentation fault and i can't figure out why. The function prototype and call must not change. Any suggestions? [CODE]//Function Protoype char* stringCat(char *pWord, char *pTemp); //Function call in …

Software Development c
Member Avatar for darkbreaker
0
150
Member Avatar for ace8957

Hi all, I've been working on making a bounded priority queue implemented as an array of queues and I believe I have it at last -- except of course for this error that I don't understand... I am getting an error about the queue array being declared without a type …

Software Development c++ queue
Member Avatar for ace8957
0
414
Member Avatar for schoolboy2010

Hi, My program is supposed to implement a binary tree with an insert, remove, copy, pre-order, post-order and in-order functions. Problem is that my code compiles but doesn't work correctly. When I try to insert more than one node/child node the program crashes/freezes. Could someone help me out. Thanks. header …

Software Development c++ programming-construct queue
0
200
Member Avatar for jrp370

im trying to create a function that does the same thing as the built in list opperation for index with out using the built in command for it. what i mean is i cant have a list lets say myList=[1,2,3,4,5] i then cant simply go mylist.index(3) any idea on how …

Software Development python
Member Avatar for TrustyTony
0
108
Member Avatar for cms271828

Hi, I'm trying to draw 2 quadrilatrials, that share 2 corners and an egde. I also want to smooth edges, so I use ANTIALIASING turned on, but this has the effect of showing a crack between the polygons. The crack dissapears if I turn off ANTIALISAING, but I really don't …

Software Development java java-swing
Member Avatar for Ezzaral
0
128
Member Avatar for amateur¬

Basically, I've written assembly code which allows a text file to be copied from it's current location through the Com cable onto a destination on another computer. This is the code for the transmitter part ONLY. [CODE]#include <stdio.h> #include <conio.h> #define FEND 0x40 int main (void) { char wtmode[]= "wb"; …

Software Development assembly visual-studio
Member Avatar for Goalatio
0
213
Member Avatar for magicsign

You can become crazy with this problem. Lets see this other quick solution to compare strings. Remember that strings are a sequence of bytes. home : h(first byte),o(second byte),...,e(last byte),0 a tag to identify the end of the string. Suppose you have a string inside a register : %esi and …

Software Development assembly
Member Avatar for Goalatio
0
309
Member Avatar for donmiq

Hello, I have an assignment to copy contents of a file (txt), and output it in the destination file which is also a text file. While (or after?) that is done, it needs to output the average of each line, which does not have a constant amount of numbers per …

Software Development c++ open-source
0
45
Member Avatar for tech9x

[code=c++] int main() { Appointment appt; int i; string *description; int *day, *month, *hour, *min, *_hour, *_min; char chr, chr1, chr2, chr3; string *command; command = new string [sizeOfArray]; int sizeOfArray; cin >> sizeOfArray; for(i= 0; i< sizeOfArray; i++){ cin >> command[i]; if (command[i] == "cancel"){ // <---- ERROR OCCURS …

Software Development c++
Member Avatar for mike_2000_17
0
138
Member Avatar for truthsearch

Hello everybody. Is it possible to overlap picture boxes in a flowlayoutpanel. I am trying to learn visual c#. I want to create a card game for practice with four players but only show the hand of the main player as one might set their cards in hand in real …

Software Development
Member Avatar for truthsearch
0
337
Member Avatar for SVSU_Student

I am getting zero, the lowest test score is 10 not zero. I created my own test file with only 10 scores to be able to test my program. I am certain min should equal 10. Here is how I read the data into the array after being sure the …

Software Development c++
Member Avatar for Fbody
0
176
Member Avatar for Jesi523

My code is not wroking to send out an email. I have 3 conditions that need to be met. managerEmailAddress and emailSentToManager only appear in the DB once. completeDate is in another table and it can appear several times. So basically if all items are complete and an email has …

Software Development
Member Avatar for Mitja Bonca
0
88
Member Avatar for -ordi-

Input: A, B, C, D, E ... [CODE] 1/1 1/2 2/3 3/4 2/5 [/CODE] Output (Queue!): [CODE] 5 B 1 E 3 C 4 D 2 A [/CODE] How to make this? Mark competitors (persons) Example: A ... E their come in first queue. A can label/tag 1/1. B can …

Software Development c++ linked-list queue
Member Avatar for -ordi-
0
142
Member Avatar for hq1

Hi so I have this assignment for one of my classes, im having some issues with it. I was hoping someone could have a look at it and tell me what i am doing wrong and what I need to fix. Thanks! heres what the assignment is: The High Fashion …

Software Development c++
Member Avatar for hq1
0
284
Member Avatar for convoluted

Hey all. Let's say I would like to periodically poll for a change in a variable/device/etc. Obviously I would like to use an infinite loop and when need be, break from the loop to end the polling routine. What I don't what to do is peak my processor usage by …

Software Development python
Member Avatar for convoluted
0
198
Member Avatar for sallubhai

Hi, I want to draw some rectangles with the same size and different colors by using an array but don´t know exactly how to do it in the for-loop. [CODE]class Figure { private: int **figur; int row,col; public: Figure() : row(5), col(20){ } void allocate_place(int r, int c) { this->figur …

Software Development c++
0
105
Member Avatar for khaled_jawaher

pls i want to know what i must use to read xml file in remote machine in java. is it possible using saaj,or other.i have jdk 1.6 installed on window 7 os machine. what also suitable softwares for this task. apreciate any ideas

Software Development java xml
Member Avatar for khaled_jawaher
0
236
Member Avatar for tegaelam

Ok so my assignment is as follows: Write a program that calculates the average of a group of test scores, where the lowest score in the group is dropped. It should use the following functions: **void getScore()** should ask the user for a test score, store it in a refrence …

Software Development c++
Member Avatar for daviddoria
0
110
Member Avatar for IMtheBESTatJAVA

I've recently taken up an AP Computer Science class online for Maryland State education at my high school, and was wondering if I could receive help on a few of the projects. Most of them are simple like programs I made in Visual Basic for my first programming class with …

Software Development algorithm java visual-basic
Member Avatar for camcamcam
0
313
Member Avatar for juan92

i created an array of 100 cells, and the user inputs the value into them now i have to find the average of the array but not all of the cells are used how do i go to the last value, instead of the last cell ? any help is …

Software Development vb.net
Member Avatar for juan92
0
97
Member Avatar for localp

I need to add MYSQL to Visual studio 2008, and run a simple SQL may be an insert to verify everything is working. so this is what i did. i got this part from a forum>> [QUOTE]go to control panel>administrative tools>odbc datasource then on user dsn click add select Mysql …

Software Development c++ mysql visual-studio
Member Avatar for Isaac Remuant
0
412
Member Avatar for divakar.it

I am using VB 6 for my Project. There is requirement that Managers want to see blocking dates of an employee for a project. Eg: If an employee blocked for a project till Dec 2010 then the dates in a calender till Dec 2010 will be showing in a specific …

Software Development visual-basic
Member Avatar for AndreRet
0
335
Member Avatar for KLane

I am trying to write a program that reads an external file and does a few statistics but it does not return the correct values for the mean and standard deviation. Can someone help point point out what I did wrong?? Below is my codes:- #include <cstdlib> #include <iostream> #include …

Software Development c++
Member Avatar for SgtMe
0
129
Member Avatar for whodoes21

Hello citizen of Daniweb may I ask a little help from you guys please :) see there's this program that our professor had asked us to make and It's about pointers. as a newbie to this world I was able to (gladly) make it but i feel like it could …

Software Development c++
Member Avatar for whodoes21
0
197
Member Avatar for cwarn23

Hi everybody. I have a question about the best way to retrieve a list of possible source values from the & operator without checking every combination between the range required. The basic problem I face is I have [B](a&b)=c[/B] I know the values of b and c but need to …

Software Development python
Member Avatar for TrustyTony
0
219
Member Avatar for daviddoria

I have this: [code] int serialInt = 40000359; [/code] but what I really need is this: [code] int serialHex = (int)0x40000359; [/code] What can I do to turn serialInt into serialHex? I found some code that claimed to do this: [code] int IntToHex(int input) { std::stringstream ss; for (int i=2*sizeof(int) …

Software Development c++
Member Avatar for daviddoria
0
177
Member Avatar for blknmld69

I have a program, which is essentially done, but there is something I am not very pleased with. First of it is a program that acts like a very basic shopping cart. The user can add or remove items, clear the list of selections they chose, and check out. This …

Software Development java java-swing window-manager
Member Avatar for Gerbiler
0
2K
Member Avatar for moroccanplaya

hi has anyone know detailed info on the mkdir function plus the open dir and how to use it ?

Software Development c
Member Avatar for moroccanplaya
0
132
Member Avatar for zifina

how to open and play video files in windows form? also save videos in a specific folder inside the project. i am new to .net.please help. thanks in advance :)

Software Development vb.net video
Member Avatar for zifina
0
90
Member Avatar for Mike Bishop

Hi all, As you will be able to tell i am very new at VB.net. i have the following code that adds three text fields to my sql table. it works if i input numbers i.e the number 1 in all three feilds but as soon as i in input …

Software Development open-source sql vb.net
Member Avatar for zifina
0
287
Member Avatar for grady-lad

Hello guys I am working on a program using the composite pattern .The program contains two buttons "business accounts " and "personal accounts". When I click on the personal account button the program loads up the tree with all the accounts and visa versa when the business account button is …

Software Development java
Member Avatar for JamesCherrill
0
99
Member Avatar for amr_asd5

i made a reservation system and in first form user should choose [One Way] or [Round Trip] [one way or round trip as radiobuttons ].if user choosed round trip should fill form2 befor submit but my issue [if the user after choosed round trip then form2 opend ,user closed the …

Software Development
Member Avatar for Mitja Bonca
0
106
Member Avatar for sleepybug

hey friends :D! alright i was tryin to work with serialization basics and now i am stuck with this problem of reading an object from a file named 0x.txt. and i know ths program is really a hell lot full of bugs but i have just started sp plz dont …

Software Development java
Member Avatar for JamesCherrill
0
163

The End.