132,726 Archived Topics

Remove Filter
Member Avatar for
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 …

Software Development c++
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 …

Software Development visual-basic
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 …

Software Development c++ linked-list
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 …

Software Development
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

Software Development java
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 …

Software Development algorithm c++
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 …

Software Development c++ data-structure queue
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 …

Software Development c++
Member Avatar for StuXYZ
0
263
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, …

Software Development c++ linked-list
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 …

Software Development c matrix-multiplication
Member Avatar for Dewey1040
0
151
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 …

Software Development c++
Member Avatar for mrboolf
0
756
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. …

Software Development asp asp.net vb.net
Member Avatar for 4advanced
0
152
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; …

Software Development c++
Member Avatar for lmastex
0
136
Member Avatar for acperson

[B]*When I compile the program it works. However, when I try to run the program, it outputs the first message then gives me the following error-*[/B] CSCI112LAB2.exe has encountered a problem and needs to close. We are sorry for the inconvenience. [B]*And when I tried to debug it*[/B] Unhandled exception …

Software Development c++ visual-studio
Member Avatar for acperson
0
2K
Member Avatar for vishalsingwall

Hi, This is urgent if any one could please help me resolve the stated issue....... I know how to create cursors in ProC* and how to manipulate them. But I have to do it with a combination of C and MySql. Can any one guide me as to how the …

Software Development c mysql
Member Avatar for Salem
0
137
Member Avatar for StarZ

i have just been learning python(tuple) at school. And this is my first assignment. I can't seem to figure it out. The assignment is on this website: [url]http://schools.tdsb.on.ca/danforthcti/python/main.html[/url] Go to lesson 8>scroll down>its called programming Assignment 9. Can someone help me out? It's simple enough right? thank you!

Software Development python
Member Avatar for vegaseat
0
162
Member Avatar for Dewey1040

I have searched google and the forums here and I couldn't find what i need, if there is a thread somewhere just forward me to it. I am attempting to create a program that will prompt a user for a string. The program will not recognize this string to be …

Software Development c
Member Avatar for Dewey1040
0
206
Member Avatar for adigha

hello, i need to create an applet for a "company", in which you log in, and according to your possition(ex: worker, manager) you can see and change different objects such as sallery and the abililty to fire people. im completely stuck on the login part, i have the gui set …

Software Development gui java java-swing
Member Avatar for PoovenM
0
199
Member Avatar for pixelmeow

Hello, I'm using VB6 and SQL Server 2000. I've got a problem with an insert statement that seems to be randomly failing. Its job is to copy everything from one table into another, removing duplicates using WITH IGNORE_DUP_KEY ON [PRIMARY]. Then my code copies the records back to the original …

Software Development sql visual-basic
Member Avatar for pixelmeow
0
176
Member Avatar for blazen

Here is a simple substring type function that I wrote in C. [code=c] char *substr(char arr[], int pos1, int pos2) { char str[100]; char *sub; for (int i = 0; i <= (pos2 - pos1); i++) { str[i] = arr[i+pos1]; } sub = str; printf("Sub: %s\n", sub); // debugging purposes …

Software Development c
Member Avatar for ArkM
0
138
Member Avatar for kiddo39

I have a small image with a black background and red lines in it and I need to count the red pixels. I know I need PIL, but I'm not sure which method to use. Then once I have the counts I need to equate them to a character, so …

Software Development image python
Member Avatar for vegaseat
0
2K
Member Avatar for acperson

I wrote a program for a class assignment that is supposed to use random number generator to produce sentences. The program has to use four arrays of (pointers to char) and each chosen word must be concatenated to the previous words in an array that has to be able to …

Software Development c++
Member Avatar for acperson
0
3K
Member Avatar for Ugochukwu

Please fellow programmers am relatively new in programming and am currently working on a Library Maintainance and Administration software and am finding it hard inserting pictures with other data's into the database The picture insertion should be optional.Please i need to know the codes i need to achieve this Please …

Software Development sql vb.net
Member Avatar for Teme64
0
180
Member Avatar for ALAZHARY

Hello Everyone, I found the following code somewhere, I understand it but I have trouble with understanding the sequence of execution, in other word, How can I monitor every little step of the function like that?[CODE]void EatSpace(char* Pbuffer) { int i = 0; int j = 0; while((*(Pbuffer + i) …

Software Development c++
Member Avatar for Laiq Ahmed
0
179
Member Avatar for ITlang007

Hi everybody, I'm really new to java and I'm not sure how to do this, //Create an ArrayList of String type to hold first names of the students I created mine like this.... ArrayList<String> first = new ArrayList<String>();

Software Development java
Member Avatar for ITlang007
0
145
Member Avatar for Gaurav arora

Hello Sir, Can u tell me how to merge two tables(no relationship) in datagridview. I have used merge method of datasets but in vain

Software Development
Member Avatar for Renukavani
0
108
Member Avatar for venkat554

[QUOTE=quansah;202627]i want to upload files into a folder and store the relative loaction of that file in a database using php and mysql. help[/QUOTE] how to upload image in vb.net.i need coding so please somebudy help me. thank you

Software Development image vb.net
Member Avatar for Teme64
0
2K
Member Avatar for ctaroz

can somebody help an old man? I started to study Python and I'm OK with IDLE. But I cannot understand how to use it as a server language with my local server Xitami (that I use very well with PHP). Please help me: I need very clear instructions Thank you, …

Software Development python
Member Avatar for ctaroz
0
171
Member Avatar for hunnyz

i have already created a toolstrip however do anyone know how can i make the toolbar dockable?

Software Development vb.net
Member Avatar for waynespangler
0
73
Member Avatar for dr.eu

Hi! I have to write program, who print Triangle made with numbers from 1 to 9,like this: 1 21 321 4321 54321 654321 7654321 87654321 987654321 I wrote code: [code] #include <iostream.h> #include <stdlib.h> int main() { int first, last; cout << endl; for (first = 1 ; first <= …

Software Development c++
Member Avatar for dr.eu
0
181
Member Avatar for polo_coins

I discovered that there is a such class like StringBuilder but I don't find any thing that convince me to use it. Explain me it's advantage and disadvantage and if you gave some examples I like to see them thanks a lot Sergey

Software Development
Member Avatar for polo_coins
0
85
Member Avatar for -Observer-

Hi, I'm new to Java and I need help with the following if someone can help me: Write a program named Personnel that maintains salary information for the employees of a company. The program should display a text based menu, giving the user a choice of selecting a command. The …

Software Development java
Member Avatar for verruckt24
0
107
Member Avatar for Demonisya

Hello..... I want to ask you something..... My teacher gave us our final exam last October 16 & 17.... I want to ask you about this question: Create a program that could show this output * *** **** ****** using while or for..... what I put in my answer sheet …

Software Development c
Member Avatar for Demonisya
0
174
Member Avatar for Swetha Suresh

Iam developing a tool in VB. I need to access my database for few fields and print them as a table. How would i get a create a table in visual Basic. The question may appear bit odd but iam a beginner .. Please help. Thanks in advance

Software Development visual-basic
Member Avatar for sierrainfo
0
114
Member Avatar for AdRock

I would like to know how i check the first character of each line before I either ignore it and move onto the next line or add it to an array. What i am looking for is tags like <. If the line begins with that i move onto the …

Software Development c++
Member Avatar for ArkM
0
3K
Member Avatar for tol

Thank God i found this site. my first day in VB and i was given an assignment to simulate how a lift runs in VB with 4 floors. pls can any one help me so fa i have been able to design the interface. please i need help in writing …

Software Development database-design oracle visual-basic
Member Avatar for Teme64
0
94
Member Avatar for Kartikey

hello sir , i am getting problem with crystal report VB.net and SQL Server i want selected values to be printed in crystal report so i have written sql query for that . dataset shows selected values but crystal report shows all data in database Please help me . following …

Software Development dataset vb.net
Member Avatar for sierrainfo
0
132
Member Avatar for noktasizvirgul

As my homework I need to discuss contemporary issues in the design of programming languages, but I do not know what are these contemporary issues really. I neeed help to find these contemporary issues. Can anybody help me?

Software Development
Member Avatar for Salem
0
174
Member Avatar for pochacco

#include <iostream> using namespace std; int main() { double num_one, num_two, num_three, num_four, num_five, num_six, num_seven, num_eight, sum, product, average; char ans; cout << "Please enter eight numbers: "<< end; cin >> num_one >> num_two >> num_three >> num_four>> num_five >> num_six >> num_seven >> num_eight; cout << "The sum …

Software Development c++
Member Avatar for Salem
0
127
Member Avatar for Se7Olutionyg

[code] #include "magic.h" #include <conio.h> #include <iostream> using namespace std; int main() { float throttle; float frate_; const float time = 10000; float vvel_ = 5; cout << "Hey, this is starfleet, your orders are to safely land this ship" << " with a " << endl << "velocity greater …

Software Development c++
Member Avatar for Salem
0
99
Member Avatar for benji_k

Help! I'm trying to solve a quadratic equation I keep getting the error : term does not evaluate to a function taking 1 arguments Heres the program. I highlighted the problem line // Macros 3 - finding the root of a quadratic equation // ax^2 + bx + c --> …

Software Development c++
Member Avatar for benji_k
0
145
Member Avatar for sid78669

This one is really crazy cause i think my professor screwed it up. I have to write a class Bank. It contains objects savings of class Account. now say i have a savings array and a savings object has [code=cplusplus] Account savings = new Account[5]; //How do i return the …

Software Development c++
Member Avatar for sid78669
0
213
Member Avatar for Manutebecker

for(int n = 0; n<blocksx;n++){ for(int x = 0; x<blocksy;x++){ I just want to be able to shorten this into something easy so I could just type in like one word to get it to work, it is used a lot and sucks to retype... thx

Software Development c++
Member Avatar for Ancient Dragon
0
121
Member Avatar for smeezekitty

i have three problems first one is in vc++ 2008 express heres the code [code=c++]#include <windows.h> #include <iostream> #include <stdafx> using namespace std; int _tmain(){ console::writeline("Window Text"); } [/code] Second is in old turbo C++ 1.01 how can i use a similer to if ( X = X) for char …

Software Development c++
Member Avatar for smeezekitty
0
151
Member Avatar for MattEvans

If I add default arguments to the end of my copy constructor, is it still considered a copy constructor? E.g. will it still be used in the places where a copy constructor would normally be used (or automatically generated). I can verify that it works on one compiler (g++). That …

Software Development c++
Member Avatar for MattEvans
0
222
Member Avatar for christiangirl

I'm having trouble making this program with linked lists work. Where I am having a problem is in printarea() [code] //**************************************************************** // This program tests creating dynamic linked list of // several Dynamic (descendents) // It uses: shape1.h header file // Filename: prtshape.cpp //**************************************************************** #include <iomanip> #include <iostream> #include "shape1.h" …

Software Development c++ linked-list
Member Avatar for christiangirl
0
155
Member Avatar for shamila08

hello, dear all [code=cplusplus] #include <iostream> #include <stdio.h> using namespace std; int count = 1; void print( int *arr, int SIZE){ if (arr != 0) { for (int i = 0; i < SIZE; i++) { // i = position cout << arr[i]; } cout <<"\n"; } } void circular_left(int …

Software Development algorithm c++
0
142
Member Avatar for robgeek

I have an assignment to implement a salesperson class. Here is the layout I got from prof. My questions are typed in red between function prototypes. Any help is appreciated. Thanks. [code] cClass Salesperson { public: Salesperson(); //default constructor [COLOR="Red"]// I know that a default constructor is suppose to set …

Software Development c++
Member Avatar for vmanes
0
145
Member Avatar for gotm

[CODE=C++]#include <iostream> #include <fstream> #include <vector> #include <string> #include <sstream> #include <stdio.h> #include <time.h> using namespace std; bool StringToInt(const string &s, int &i); int main() { // opening up and setting up the input file stream so we can read it // to perform the "account info" and the "history" …

Software Development c++ file-stream
Member Avatar for nmaillet
0
95
Member Avatar for Nanz

Hello all. I want to craete a empty double dimensional array. Later i will get the row and column length. But row length varies each time program. But i will be having the lenght of the row. So hoe to write a generic code for creating a empty 2D array …

Software Development python
Member Avatar for jlm699
0
63K

The End.