43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for ntrncx

I do an exercise and i wrote this code to test templates [CODE]#include <iostream> #include "Date.h" #include "Time.h" using namespace std; template <typename T> bool compare(T first,T second){ if (first==second) return true; else return false; } template <class T,class X> bool compare(T first,X second){ if (first==second) return true; else return …

Software Development c++
Member Avatar for ntrncx
0
223
Member Avatar for jbvincennes

Hi, I find classes sources on the web that import import org.dyno.visual.swing.layouts.Constraints; import org.dyno.visual.swing.layouts.GroupLayout; import org.dyno.visual.swing.layouts.Leading; But I cannot find this package with google searches. Where is it? Many thanks for your help.

Software Development java java-swing
Member Avatar for jbvincennes
0
527
Member Avatar for andimiami

Hello! I am a student (obviously, haha), and I am confused about how I need to do something in my driver class. I have a text file that I am reading in, then I decided to use a string tokenizer to parse the data. Now, I need to store the …

Software Development apple java
Member Avatar for andimiami
0
198
Member Avatar for lAmoebal

I need to create a basic program for work that utilizes the snmpget command. It needs to be usable in both windows and solaris as our clients use both. What's the best snmp library to use? I tried to download a number of them but I can't even get the …

Software Development c++
Member Avatar for vijayan121
0
4K
Member Avatar for pepyrs

Hello guyz, First of all, sorry for starting new thread with similar topic but I read each and still can't figure out how to do it. I'm having a database, using GridView I retrieve the data into my WEB application. Then I set the rows to editable (not sure if …

Software Development asp.net vb.net visual-studio
Member Avatar for jbisono
0
126
Member Avatar for guidely

Hi, I have problem passing array from main to another function Here is my code [CODE] #include <stdio.h> #include <string.h> # define Line_size 200 int processing(int lineCount, char harbour[Line_size][Line_size]) { int i; for(i=0;i<lineCount;i++) { printf("%s", harbour[i]); } } int main ( void ) { static const char filename[] = "data.txt"; …

Software Development c
Member Avatar for guidely
0
289
Member Avatar for akemi3

Hello, I'm currently taking AP Computer Science with no prior experience with programming and I am facing a bit of a problem with the last problem on my programming assignment. You see, what I have to do is write a program that displays a name four times either horizontally or …

Software Development data-science java
Member Avatar for akemi3
0
99
Member Avatar for knight fyre

I'm trying to learn Java Servlets on my own but I'm having some very basic problems. The code [CODE]"import javax.servlet.ServletException;"[/CODE] produces a compiler error, "the import javax.servlet cannot be resolved". I'm using version 3.2.2. Why am I having this problem?

Software Development java
Member Avatar for varun.x.anand
0
625
Member Avatar for virendra_sharma

Hi frnz , i need a code for 2^n and suppose user enter n = 4 , so the output will be 16 . Now whatever output we will get i need sum of numbers in that output e.g here we have 16 i.e 1 + 6 = 7 . …

Software Development c
Member Avatar for Mouche
0
136
Member Avatar for romz

Good Day to all, Can anyone give me an idea on how I can select an item in ListView using Right Click mouse button? Any insight would be great. Thanks

Software Development listview visual-basic
Member Avatar for romz
0
179
Member Avatar for vedro-compota

Hi there) Guys , as I understand - this is c++ code = [CODE]int WINAPI WinMain(HINSTANCE hInst,HINSTANCE,LPSTR,int ss) { /* создаем и регистрируем класс главного окна */ WNDCLASS wc; wc.style=0; wc.lpfnWndProc=MainWinProc; wc.cbClsExtra=wc.cbWndExtra=0; wc.hInstance=hInst; wc.hIcon=NULL; wc.hCursor=NULL; wc.hbrBackground=(HBRUSH)(COLOR_WINDOW+1); wc.lpszMenuName=NULL; wc.lpszClassName="Example 4 MainWnd Class"; if (!RegisterClass(&wc)) return FALSE;[/CODE] but tell me please - …

Software Development api c
Member Avatar for vedro-compota
0
338
Member Avatar for cyberdaemon
Member Avatar for cyberdaemon
0
66
Member Avatar for Labdabeta

I am extremely confused about libraries and have been having trouble understanding them with google. Basically I want to create a library so that I can use a bunch of functions from another file without all of the libraries' contents being seen. EG: library code: [CODE]class test { private: int …

Software Development c++ ide
Member Avatar for Labdabeta
0
217
Member Avatar for James19142

i made a header file with my function declarations and the cpp file with the definitions. While making the definitions in the .cpp file i included the header and from the highlighted text the definitions seemed to match declarations in the header. In the header the the declarations were able …

Software Development c++ file-system
Member Avatar for James19142
0
881
Member Avatar for thenewbiecoder

[url]https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0B3GcG6SeWKK_YzE1NDNmY2MtNTY0Ny00NTVhLTg1M2EtNDc5YzRmOGEzMjA0&hl=en_US[/url] I am completely stuck on this assignment I'm not sure what I should be getting. Can anybody take a look at my code and please help me. I need to complete this assignment asap. thanks Direction: Design, implement, and test a class that represents a phone number. The number …

Software Development c++
Member Avatar for vijayan121
0
220
Member Avatar for altXerror

ok. so i'm having trouble with the Windows API. i'm just learing how to use it, so i don't know much about it. anyways, i just wanted to create a window and have it displayed then catch the exit message and close, but VC Compiler is throwing errors. 1>c:\users\furrix\documents\visual studio …

Member Avatar for altXerror
0
342
Member Avatar for mrbungle

I have a listview that pulls data from a MySQL and I can now [URL="http://www.daniweb.com/software-development/vbnet/threads/386126"]finally sort queries by date range [/URL] (thanks Unhnd Exception!!). Also in that query, I have it sorted by ID number. This brings me to another question. The ReportViewer pulls up a really nice report for …

Software Development listview vb.net
Member Avatar for mrbungle
0
473
Member Avatar for adot76

I am having a problem and hopefully you guys can help me out.. I need to count the frequency of a character in a string(option 5 in the program. I can do this part however i cannot get my program to count anything that is in uppercase. It only does …

Software Development c
Member Avatar for Narue
0
212
Member Avatar for Blink383

I had to reconstruct my program from the last time I had posted for help. My instructor enlightened me that I needed to follow her example to the tea, even though I had the same output that was required, I did not have all concepts required meet. So, after spending …

Software Development apple java
Member Avatar for Taywin
0
231
Member Avatar for julylee06

Ok, so I need some guidance. Am trying to implement a linked list in java. I can't get it. I have been on here - dreaminncode, wikipedia, and some other colleges sites - I still don't/can't get it. I did look at the previous threads on this but they didn't …

Software Development java linked-list
Member Avatar for julylee06
0
227
Member Avatar for daianahoney

Hello. I am wondering how to split a string lets say char *a="raining apples training away" using a delimiter like "g a" and the result will be: rainin pples trainin way I tried using strstr but I got stuck. Any hints will be greatly appreciated. Thank you in advance!

Software Development c
Member Avatar for daianahoney
0
3K
Member Avatar for JOSheaIV

Okay so alittle while ago I decided I wanted to write a program that would read in data from a website (the HTML data) and then use it from there (long story short I was to read in a list of urls, then access each of those and gather data …

Software Development html-css http-protocol
Member Avatar for JOSheaIV
0
229
Member Avatar for sirlink99

I am making hearts, and I cannot seem to add all the cards to the deck. here is my code [CODE] import java.lang.reflect.Array; import java.util.Vector; public class Hearts { String cards[][] = {{"Spade ", "Heart ", "Club ", "Diamond "}, {"A","2","3","4","5","6","7","8","9","10","J","Q","K"}}; Vector <String> deck = new Vector<String> (); String player1[] …

Software Development java
Member Avatar for sirlink99
0
123
Member Avatar for Süspeñce

[CODE]//I make program of infix to post fix xpression plz tell me waht wrong with my code //some it true result for arthematic opertaors b,w two oprend but with more then it does //not provide valid output plxxxxxxxxxxxx help me #include<iostream.h> #include<conio.h> #include<stdlib.h> #include<string.h> int presidence( ); void infixToPostfix(char *); …

Software Development c++
Member Avatar for Süspeñce
0
386
Member Avatar for Rox Vi

Hi, I am using ASP.NET to develop a system. Would you mind to share with me whether the code can be encrypted or convert to DLL to prevent coding exposure to other?

Software Development asp asp.net vb.net
Member Avatar for NetJunkie
0
310
Member Avatar for Forte1292

Okay so we are doing a BankAccount program in my CS class. One method is supposed to return the information like this - Account Name: <name here> Account Number: <number here> Account Balance: <balance here> The instructions say to return it on multiple lines using the \n command. How do …

Software Development java
Member Avatar for Forte1292
0
128
Member Avatar for zack_falcon

See, I have a board game with a 2D array acting as the board. There are number in the 2D array, and should a number be placed (by the player) in a spot in the 2D array where a number already resides, the following can happen: > If the residing …

Software Development
Member Avatar for Ketsuekiame
0
163
Member Avatar for SyncMaster170

Does anyone know how to create a custom report for the data that is in a datagridview? My app is nearly complete but would like to spice it up a bit and be able to create a report button,that, once clicked, creates a simple report. I only need one specific …

Software Development
Member Avatar for Mitja Bonca
0
104
Member Avatar for mohamed moamen

[CODE] float i = 55 ; float y = 23 ; float u = i / y ; System.out.println(u); [/CODE] i want to print u Round to five decimal places how i can do this approximation ?

Software Development java mathematics
Member Avatar for mohamed moamen
0
123
Member Avatar for techyworld

Can someone dry run and explain me this code? having problem to understand recursion program. [CODE] public class Multiplication { public static void main(String[] args) { System.out.println("Answer:"+Mult(2,3)); } public static int Mult(int x,int y) { if (y==1) return x; else return x + Mult(x,y-1); } }[/CODE]

Software Development java
Member Avatar for techyworld
0
88
Member Avatar for johnt68

Hello:) Previously I have made a temperature convertor web app with code behind the button click. I have now been asked to do one using methods/functions and am getting stuck on vaiables to pass and how I do it. Could someone explain variable naming and passing to me in a …

Software Development
Member Avatar for arunkumars
0
156
Member Avatar for JoshuaBurleson

I'm trying to utilize partial in order to bind an image to it's associated name in a list "you'll see what I mean" but I'm getting a TypeError thrown on it, this is my first time trying to work with partials so I'm just not quite sure what's going on: …

Software Development python tkinter
Member Avatar for JoshuaBurleson
0
192
Member Avatar for esy928

Hello! Im a java noob and I need to create a program that determines whether the input is an integer or not , can anyone help me out? thanks in advance! btw I have to use [B]Scanner [/B] from [B]java.util.[/B] , I have no idea on how to check if …

Software Development java
Member Avatar for abors
0
641
Member Avatar for wissam.ashkar

Hi, I have RadDatagrid filled from MsAccess, I want when i click on a row once, my textboxes got filled with data from this row.

Software Development
Member Avatar for wissam.ashkar
0
65
Member Avatar for sergent

It seems like when invoking a function explicitly, it should be compiled at compile-time with a specific variable type, but I am not sure how implicit function invokation works. I don`t think compiler will create a different function for evey datatype available (since there can be many different data-types in …

Software Development c++
Member Avatar for stereomatching
0
180
Member Avatar for dwiniers

Hello there! I need your expertise in vb6. I made a new exercise for my vb6 subject using database Microsoft access. With the fields of FirstName, MiddleName, LastName, Birthdate and Age. and there is correct information of my family in every fields. Using navigation command. Im using Microsoft ADO Data …

Software Development microsoft-access visual-basic
Member Avatar for 4ukh
0
110
Member Avatar for Raim

So I'm making a simple calculator program on the Windows Form Application of C++. Nevertheless, I'm stuck on the exponents, factorial, and square root part. In my System32 Console calculator, these were the codes I use for the exponent, factorial, and respectively, while I just used the sqrt function of …

Software Development c++
Member Avatar for Raim
0
427
Member Avatar for sindel

Hello! I didn't read the rules or anything, so I don't know if I'm posting in the right place, but I need help with a program as soon as possible. I have to answer this question: Find the first ORF in a sequence from a position (findORF(DNA, position)). It must …

Software Development python
Member Avatar for woooee
-2
168
Member Avatar for mrbungle

Hey, I need to pick from two date ranges from a couple of datetimepickers in the form. Then when I run the query, it should clear the current data in the listview, run the query, then re-populate the listview. I use the same code to simply load the listview, and …

Software Development listview vb.net
Member Avatar for mrbungle
0
419
Member Avatar for icebirdy

I just started learning C++ let's say i have 2 classes classes A and B Class A = a1(a,b) I want an instance of class B attributes to be like this where a1 is an instance of class A: Class B = b1(x,y,a1,z) how do i go about doing this? …

Software Development c++
Member Avatar for sfuo
0
148
Member Avatar for battlex2010

I have made picture viewer in VB which also shows all the pics present in a folder as thumbnails using image list and listbox. The problem is whenever the user clicks refresh it takes long time for the image to load. I want to some how make a cache like …

Software Development caching image vb.net
Member Avatar for battlex2010
0
1K
Member Avatar for sjava

public class Employee { private String Name; private String SIN; private Integer Salary; public Employee(String string, String string2, int i) { // TODO Auto-generated constructor stub } public Employee() { } public Employee(String N, String sin, Integer Sal) { Name = N; SIN = sin; Salary = Sal; } public …

Software Development java java-swing
Member Avatar for sjava
0
115
Member Avatar for cipherbeale

Im having a problem with error message c4430 according to MSDN the warning is created when an int is not declared. Overlooking ,y code I can't find the problem is there something I am missing? here is the code [code=cplusplus] #include<iostream> #include<string> using namespace std; class student { public: ~student(); …

Software Development c++
Member Avatar for Narue
0
998
Member Avatar for wissam.ashkar

Hello guys, I am building a small accounting system, one of the main functions of this system is to add a new supplier. I am using Telerik, Rad controls ( trial version) to make some appearance improvements. Moreover, I have a winform to add a new supplier which contains several …

Software Development c#
Member Avatar for wissam.ashkar
0
245
Member Avatar for stereomatching

Below is part of the source code of an allocator from the sgistl(2.91.57) [CODE] void ( *set_malloc_handler( void(*f)() ) ) () { } [/CODE] The purpose of this function is mimic the behavior of set_new_handler. But i don't know what is the meaning of this function. return type = void …

Software Development c++
Member Avatar for stereomatching
0
143
Member Avatar for cozmo87

The following code works: [CODE] public class Main { public static void main (String args[]){ final JWindow f = new JWindow(); JLabel l = new JLabel(new ImageIcon(Main.class.getResource("images/logo.png"))); f.getContentPane().add(l, BorderLayout.CENTER); f.pack(); Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension labelSize = l.getPreferredSize(); f.setLocation(screenSize.width/2 - (labelSize.width/2), screenSize.height/2 - (labelSize.height/2)); f.setVisible(true); f.setAlwaysOnTop(true); } }[/CODE] When I …

Software Development image java java-swing
Member Avatar for cozmo87
0
623
Member Avatar for christot

please help me , i really dont have any idea about our project . i need to fix it 1 week before our defense so that i can work well with it and study all about it ..

Software Development java
Member Avatar for christot
-1
222
Member Avatar for Chaitanya Dhote

Hi, Sir, How can I validate integer value which inputs from console in set method?????? plz help me... [CODE] namespace validation { public class role { private string role_name; private int role_id; public int Role_id { get { return role_id; } set { role_id = value;} } public string Role_name …

Software Development
Member Avatar for Mitja Bonca
0
143
Member Avatar for brainfo

my code is being compiled but the window auto close after it execute value. I can do this by using getch() also but i wanto to do it without getch() .please help. [CODE] #include <iostream.h> #include <stdio.h> class greatest{ private: int x,y,z; public: void getdata(); void display(); int largest(); }; …

Software Development c++
Member Avatar for nightcrew
0
147
Member Avatar for datdude07

I have a problem getting my assembly program designed to get the first 47 numbers of the fibonacci series to output to a file. I'm not getting any errors except for when opening command window. This is the exact question on my homework problem if this helps : Using Programming …

Software Development assembly file-system visual-studio
Member Avatar for datdude07
0
2K

The End.