132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Zvjezdan23

I have only 2 errors in my code. Both of them are on Line 123. The errors are: 1>c:\users\zvjezdan\documents\visual studio 2010\projects\week5_math\week5_math\program.cpp(124): error C2804: binary 'operator *' has too many parameters 1>c:\users\zvjezdan\documents\visual studio 2010\projects\week5_math\week5_math\program.cpp(124): error C2333: 'main::Vector3::operator *' : error in function declaration; skipping function body This is code for finding …

Software Development algorithm c++ visual-studio
Member Avatar for sfuo
0
187
Member Avatar for AshfaqueIW

Hi all, I came across some vector problem recently. Below is my code. std::vector<int> MyBuffer(10); for(int i=0;i<10;i++) MyBuffer.push_back(i);//First 10 elements are zero and after index 10 i getting stored. Why the behaviour if like this if i provide size during Declaration. I want to know what will be the difference …

Software Development c++
Member Avatar for Zvjezdan23
0
181
Member Avatar for gman1991

[CODE]// this is program designed to create Cd data base #include <stdio.h> #include <string.h> #include <stdlib.h> //============================================= //LINKED LIST USED FOR CREATING THE DATABASE CD //============================================= struct CD_type_node { int CDnum; char title[20]; int CDcount; struct CD_type_node* next; }; struct Artist_type_node // to create a linked list of CD's { …

Software Development c data-structure linked-list
Member Avatar for WaltP
0
124
Member Avatar for james6754

Does anybody think that in the future professional development will be done on other platforms using MonoDevelop? Therefore making C# multiplatform.

Software Development c#
Member Avatar for Ketsuekiame
0
121
Member Avatar for Purkinje

[url=http://www.daniweb.com/software-development/python/threads/375271/1621485#post1621485]Sample code credited to Enalicho[/url] In this example, we count the number of appearances of the number 1 through a range of pages using while loops. First off, notice how easy it is to tell what the variables in this method are doing. I did not write this method, but …

Software Development python
0
191
Member Avatar for cocoll

hello. just i need the conversion of this code written in vb.net: [CODE]Dim SQL = <SQL> sql statement </SQL>[/CODE] thank you.

Software Development c# vb.net
Member Avatar for ddanbe
0
234
Member Avatar for pYnewb

Hello, I would like to stress that this is for personal practice and nothing school or assignment related. The question: Create a function countPages(x) that takes the number of pages of a book as an argument and counts the number of times the digit '1' appears in the page number. …

Software Development python
Member Avatar for Purkinje
0
571
Member Avatar for ranu jain

i have to impliment a chained hash table. in this prog i am using java.util.LinkedList. in one node of linklise i have to store two object-- 1)key value 2)value but java.util.LinkedList. provide add(object) method. that means i can not add two elements in one node of linked list. then how …

Software Development java linked-list
Member Avatar for JeffGrigg
0
183
Member Avatar for Transcendent

[CODE]#include <iostream> #include <string> #include <cstring> using namespace std; int main() { char name[20]; string lastName; char grade; int age; cout<<"What is your first name "; cin.getline(name,20); cout<<"What is your last name "; getline(cin, lastName); cout<<"What letter grade do you deserve? "; cin>>grade; cout<<"What is your age?"; cin>>age; cout<<"Name: "<<lastName<<", …

Software Development c++
Member Avatar for Narue
0
129
Member Avatar for ba.accounts

Hi, Just wondering if anyone has any example of reading data from a file and storing it into an uneven 2D array. For example: the file contains [a,b,c] [a,b,c,d] [a,b,] etc I am able to do this with a complete "square" or matrix but when the columns aren't even I'm …

Software Development java
Member Avatar for ba.accounts
0
2K
Member Avatar for bob12321

Ok so here is the HTML of the page: [CODE]<!-- Generated by F12 developer tools. This might not be an accurate representation of the original source file --> <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"><head> <meta content="text/html; charset=utf-8" http-equiv="content-type"> <meta name="description" content="Proekt za skolo"> <meta name="keywords" content="downloader,hotfile,megaupload,fileserve,filesonic"> <meta name="author" content="flAmingw0rm / www.l33ts.org"> <link …

Member Avatar for bob12321
0
208
Member Avatar for emmas4impact

Hello, I am writing an application which i need to use the date function and i dont know how to implement it. I wanted the date to be ask from user and be stored in a text file. anyone with hints i can really use some help. Thanks.

Software Development c
Member Avatar for Narue
0
152
Member Avatar for opawix

:twisted: guys can some1 give me hints to solve this? any help will do. thank you. make a program display a lowercase vowels using do while loop: heres my code: [CODE]char letter; { do{ cout<<letter; } while((letter!='b')||(letter!='c')||(letter!='f')||(letter!='g')||(letter!='h')||(letter!='j')|| (letter!='k')||(letter!='l')||(letter!='m')||(letter!='n')||(letter!='p')||(letter!='q')|| (letter!='r')||(letter!='s')||(letter!='t')||(letter!='v')||(letter!='w')||(letter!='x')|| (letter!='y')||(letter!='z')) }[/CODE] heres my code but it won't work!

Software Development c++
Member Avatar for opawix
0
146
Member Avatar for keshvari

Hello I am trying to write a matrix calculator but I have some problems.I use cofactor method for calculation.If you don't know the this method you can learn it here easily: [URL="http://paulbourke.net/miscellaneous/determinant/"]http://paulbourke.net/miscellaneous/determinant/[/URL] I use two function 1- GetMinor() 2- matrixCofactor() that the first one give me the minor matrix and …

Software Development c
Member Avatar for keshvari
0
1K
Member Avatar for wilson sweet

How can i write a program that creats a password and a username using Visual Basics 6.0

Software Development visual-basic
Member Avatar for Netcode
0
83
Member Avatar for 4everct01

I wonder if anyone can help me or guide me the way to remove the vector and subsitute with normal function instead of using the vector reference? [CODE] /*=================main.cpp===========================*/ #include <iostream> #include "Solitaire.h" using namespace std; void HandleMove(Solitaire& game); void HandleMoveToAnswer(Solitaire& game); void ClearScreen(); int main(int argc, char** argv) { …

Software Development c++
Member Avatar for iamthwee
0
161
Member Avatar for Muhasin

I was developing a login box. But when i give the id and password it never checks for the sensitivity of case. It accepts both capital and small letters if they are same. What i do?

Software Development visual-basic
Member Avatar for Netcode
0
105
Member Avatar for ©lick

Hi. I'm making small application what will do c++ programs compiling easier. I have this code: [CODE]System.Diagnostics.Process.Start("C:\\Alps\\compiler\\H-i586-cygwin32\\bin\\g++.exe", "-c Main.cpp -o main.o ");[/CODE] This code should start [CODE]g++.exe[/CODE] with arguments [CODE]-c Main.cpp -o main.o[/CODE] for compiling main cpp file to o file. Can you see any error in my code? Why …

Software Development c# c++
Member Avatar for ©lick
0
202
Member Avatar for anuj_sharma

Hi Guys, I was going through a [URL="http://www.daniweb.com/software-development/java/threads/374765"]thread[/URL] in this forum and there is one very good reply to this thread. In the past Ive never used such techniques to idetntify how many classes would I create in my program, thus my programs used to be complex. Can you suggest …

Software Development java oop
Member Avatar for JamesCherrill
0
170
Member Avatar for dashure

this is what i have, and i have lots of mistakes in class to class...and friends functions dont know why, need your help CCar.h: [CODE]#ifndef _CCar_H //מונע אפשרות להכללות כפולות של המודול #define _CCar_H #include "CWorker.h" #define LEN_N_FIRMA 20 //class CWorker; class CCar { char m_firma[LEN_N_FIRMA]; // car firma int …

Software Development c++
Member Avatar for dashure
0
112
Member Avatar for stonerain

I am trying to use 2 USB webcams with OpenCV. I can get a visual with one webcam but I haven't done with two webcams. Can anybody help me? I use this code for a webcam. [CODE]void WebCam() { char Vid[] = "WebCam"; IplImage * frm; CvCapture * capture; capture …

Software Development c++ webcam
Member Avatar for Raimucka
0
2K
Member Avatar for ZER09

hi, to all i was thinking how i can create a class that the connection string will be stored there. now i have 4 files the teamSystem.java, login.java, and main.java, and connect.java. the connection string should be written on the connection.java, now i want that other 3 files should communicate …

Software Development java java-jsp
Member Avatar for ZER09
0
189
Member Avatar for orville

Hey all I would like to know how can i validate that a record is not in a datagridview.. Im using a textbox to type the names in and by a press of a button the grid gets filtered.. I want a messagebox or justr a message to appear in …

Software Development
Member Avatar for orville
0
136
Member Avatar for JeffOwens

So I have some code that basically takes a file given with 4 points taken from a rotoscoped scene and spits out an output of information in the form of a list Original File Format Frame 1(Point(x,y,z,w,s),Point(x,y,z,w,s),Point(x,y,z,w,s),Point(x,y,z,w,s)) Frame 2(Point(x,y,z,w,s),Point(x,y,z,w,s),Point(x,y,z,w,s),Point(x,y,z,w,s)) Frame 3(Point(x,y,z,w,s),Point(x,y,z,w,s),Point(x,y,z,w,s),Point(x,y,z,w,s)) Frame 4(Point(x,y,z,w,s),Point(x,y,z,w,s),Point(x,y,z,w,s),Point(x,y,z,w,s)) Frame 5(Point(x,y,z,w,s),Point(x,y,z,w,s),Point(x,y,z,w,s),Point(x,y,z,w,s)) Frame 6(Point(x,y,z,w,s),Point(x,y,z,w,s),Point(x,y,z,w,s),Point(x,y,z,w,s)) Output ============ Frame …

Software Development open-source python
Member Avatar for TrustyTony
0
126
Member Avatar for whin_lopez

Hi guys! Any one have an idea of how to create a sub category in vb.net? well I'm thinking of building a sales and inventory system of computer parts and peripherals and here's the logic. I'll be assigning each of them category like for example: Componenets[INDENT]Peripherals[/INDENT][INDENT]Networking[/INDENT] - Processor[INDENT]- Chasis[/INDENT][INDENT] - …

Software Development flash microsoft-access storage vb.net
Member Avatar for kvprajapati
0
541
Member Avatar for dmarente

I have programmatically created a listview in n # of tabpages to display information gathered from an SQL database. Once created, i want the user to be able to select an item from any of the listview's. How can i reference the selected item? This is the code that creates …

Software Development listview vb.net
Member Avatar for GeekByChoiCe
0
168
Member Avatar for Shy01

hello am new here.. can somebody tell me if there's a restriction for a decimal numbers entered? for instance, cout<<"Enter number: " cin>>num; --- if the user put a decimal number on the variable num.. i want this to be INVALID INPUT in the terminal screen as a result. any …

Software Development c++
Member Avatar for mrnutty
0
140
Member Avatar for AshfaqueIW

Hi all, I have a switch statement with more than 15 different cases. I want to replace that with any better alternative which would be efficient and also will take less code. I came to know that function pointer can be one alternative. I dont know any anything about and …

Software Development c++
Member Avatar for mrnutty
0
1K
Member Avatar for hqt

I am trying to use Code::Block, But I still get some problem like when I'm using DevC++. In Watch Windows, I want to see A array. (example: int A[5][5]). but in debug windows, I will appear from top to down: [CODE]A[1][1] A[1][2] ... A[5][5] [/CODE]This style is to difficult for …

Software Development c++ pascal
Member Avatar for hqt
0
356
Member Avatar for violette

can anyone help me why are this thread occur 1.[OleDbException (0x80004005): Not a valid file name.] 2.what is exception stack trace? thank you =)

Software Development vb.net
Member Avatar for violette
0
575
Member Avatar for tombihn

I'm am creating a "pop-up" CheckedListBox over a button on my DataGridView. The values in the list are going to be filtered based on the value in column 0 of the DataGridView. I have already pulled in a "master" DataTable with two columns: ACODE and MATRIX. I want to call …

Software Development vb.net
Member Avatar for tombihn
0
544
Member Avatar for RenanLazarotto

Hello guys! Its been a very long time since I don't show up here. Now I am back with a small project for internal use, but I need a little help. I want to make a program that allows me to change file attributes, like 'hidden', 'read-only' and 'system'. It …

Software Development file-system listview vb.net
Member Avatar for RenanLazarotto
0
120
Member Avatar for ztdep

Dear friends: Could you please tell me how to set the tab in vs2008 so as to use multiple rows of tabs in vs2008. I could not fint it in setting. Regards

Software Development c++
Member Avatar for jonsca
0
171
Member Avatar for J-Dub

Sometimes when I run a program that I am writing in NetBeans, it runs old code or something. It want do what I just put in. Instead it will run past code. I will get a bug in the program I am writing and when I fix it. It still …

Software Development java
Member Avatar for lashbandi
0
131
Member Avatar for mridontknow

[CODE]#include <iostream> #include <algorithm> #include <vector> #include <string> #include <ctime> #include <cstdlib> using namespace std; vector<string> function1(vector<string>v) { for(int i=0;i<4;i++) {cin>>v[i];} return v; } int main () {vector<string>v; vector<string>guess; vector<string>guess=function1(vector<string>v); cout<<"size:"<<guess.size()<<endl; cout<<"contents:"; for (int i=0; i<guess.size(); i++) {cout<<guess[i]<<"";} cout<<endl; return 0; }[/CODE] i need to build vector<string>guess(4) in function function1 …

Software Development algorithm c++
Member Avatar for sfuo
0
133
Member Avatar for sirlink99

I am trying to export a project using eclipse, and the Images that I have in a separate folder do not export. I have tried to use [icode]image = new ImageIcon (Toolkit.getDefauleToolkit ().getImage("Image/image.png"));[/icode] and [icode]image = new ImageIcon (ImageIO.read (new File ("Image/image.png")));[/icode] and neither of them worked. It works when …

Software Development image java
Member Avatar for sirlink99
0
1K
Member Avatar for PROgamer

Hi, i do have problem with event handling im done with layouting but the only thing i dont know is what methods of event handling should i use in my program [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; import javax.swing.border.*; import javax.swing.ButtonGroup; public class Pizza extends Frame implements ActionListener,ItemListener { JFrame …

Software Development java java-swing
Member Avatar for hfx642
0
175
Member Avatar for boywonda1

hey all.. I'm [U]new[/U] to VB.net and i wanted to find out how i could load the names of files(in a specified dir) into a combobox? I knw i should have posted code..but i only have an idea as to what should happen. correct me where i'm wrong. 1. get …

Software Development vb.net
Member Avatar for lolafuertes
0
1K
Member Avatar for Galbatorix

Hi, I am using vb.net 2008. Each time i run my project, i get an error message that the assembly could not be loaded and that i need an assembly manifest HELP!!!

Software Development assembly vb.net
Member Avatar for Galbatorix
0
110
Member Avatar for crazycode300

Hello, I have data imported from a text file stored in an array. How do I go about writing it to a CSV file? Also, how do I set up different columns so that the CSV file opens up nicely in Excel. Thanks.

Software Development vb.net visual-basic
Member Avatar for lolafuertes
0
956
Member Avatar for singh_soorma94

I making a program. I know most of it just need help with the number generator. I want it to occur the number of times inputted.

Software Development
Member Avatar for skatamatic
0
152
Member Avatar for BlueNoteMan

I am using getschema and simply trying to get names of tables within database data1.dbc. I have looked at the returned schmema info with the debugger and with the following code and can't see table names (which I know are in database). Have I used GetSchema correctly or am I …

Software Development open-source
Member Avatar for lolafuertes
0
128
Member Avatar for Zvjezdan23

This is a class that uses a vector to store 3 points (x,y,z) so i can find the distance from each of the points. Can anyone help me?? [CODE]#include <iostream> #include <string> #include <algorithm> #include <cmath> #include <vector> #define inline using namespace std; int main() { class Vector3 { public: …

Software Development algorithm c++
Member Avatar for Zvjezdan23
0
161
Member Avatar for zachattack05

If I have SQL authentication enabled, and a user (UserA) on a database has permission to delete rows on TableA, but not TableB, and there is a relationship between TableA and TableB, can UserA successfully delete a record on TableA and have the changes (based on relationships set up) cascade …

Software Development sql
Member Avatar for zachattack05
0
118
Member Avatar for carloskire

Hi. I'm programming this Java app on NetBeans 7 to deploy it via Web Start and is all going well. I'm developing on Windows but the jnlp, jar etc. are to reside on a unix box. It runs well on unix too. At the moment my app reads a text …

Software Development java java-netbeans unix
Member Avatar for carloskire
0
505
Member Avatar for jaycastr

Hey guys, I am writing a web application in asp.net using c sharp. I have a web page that lets the user create a program. In this system a program is made up of many applications and an Application can belong to many programs hence a many to many relationship. …

Software Development sql
Member Avatar for jaycastr
0
156
Member Avatar for Srin

I need to instantiate a class during runtime based what a user has selected in a list, but these classes each have their own new specific functions and variables, they use the same named functions, but set different variables, and different numbers of variables. I made an example, since my …

Software Development java
Member Avatar for JamesCherrill
0
297
Member Avatar for watery87

Hi guys, i currently want to replace all spaces into another(or 2) special character, and vice versa. e.g (replacing spaces with 'xx' character and vice versa). Another way would be removing all spaces completely. Is there any method i can use to accomplish that? [code] #include <iostream> #include <vector> #include …

Software Development algorithm c++
Member Avatar for WaltP
0
123
Member Avatar for moshe12007

hello i wanna build software that i will be can speak with my friend with our cams i have used that dll : WebCam_Capture and that only show my camera . but i cant show my friend camera/ how can i do it?<<< thankss

Software Development webcam
Member Avatar for Momerath
0
104
Member Avatar for fatalaccidents

Hey guys, I'm very new to C++ and had a really quick question concerning linked lists. So I was wanting to pass a linked list to a function. I realize from another post that I need to put void function(Class * & head) to have it actually do something to …

Software Development c++ linked-list
Member Avatar for fatalaccidents
0
107

The End.