132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Anuradha Mandal

[B]Input[/B] The input begins with two positive integers n k (n, k<=10^7). The next n lines of input contain one positive integer ti, not greater than 109, each. [B]Output[/B] Write a single integer to output, denoting how many integers ti are divisible by k. my code is......... [CODE] #include<stdio.h> int …

Software Development c
Member Avatar for Narue
0
89
Member Avatar for Gaving30

Hi All, First time asking so go easy :-) I am doing c++ a few weeks now, i am doing questions in Project Euler to hopefully improve my coding, But as you will prob see below i am still very new and "Nieve"... Question is: The prime factors of 13195 …

Software Development c c# c++
Member Avatar for TrustyTony
0
444
Member Avatar for SpiritualMadMan

This is something that is really starting to bug me about Python and wxPython... In VB6 (Disallowed by my employer) I can have multiple Forms loaded at the same time. I can show and hide each and everyone of these forms any time I want to. For example I can …

Software Development puzzle python
Member Avatar for SpiritualMadMan
0
148
Member Avatar for Vaikkundhnaair

I would like to create a login screen with username/password. Can anyone help me? The login screen should validate username/password before the user is redirected to the next screen. thank u

Software Development vb.net
Member Avatar for codeorder
0
841
Member Avatar for Mike Bishop

can someone help a newbie with .net the code i have is working fine to pass one parameter to crystal, can someone help me pass a second parameter called "line"? [CODE]Imports System.Windows.Forms Imports System.Data.SqlClient Imports OEE_NEW.Module1 Imports System.Data Imports System.IO Imports System.Data.SqlTypes Imports System.Windows.Forms.DataVisualization.Charting Imports CrystalDecisions.CrystalReports.Engine Imports CrystalDecisions.ReportSource Imports CrystalDecisions.Shared …

Software Development dataset vb.net
Member Avatar for bklynman01
0
222
Member Avatar for adem87

ı want to update datagritview in c# . ı need to this codes.firt ı use edit and ı will edit after the termineting ı click save how can ı write ı use the access database my last codes but can not work urun = comboBox1.Text; boyut = comboBox1.Text; model = …

Software Development
Member Avatar for adem87
0
102
Member Avatar for khurram01

I am working on simulation and i need to display data to TextArea or JTable, that is generating continuously at run time. ----------------------------simulation class---------------- Class Simulation() { when Nubmer Generate call method ' updateData' in Frame Class to upload on JTextArea. } -----------------------------------frame class--------------- Class JFrame() { Method updateData(string data) …

Software Development display java
Member Avatar for NormR1
0
1K
Member Avatar for ntagrafix

hi, I worked around to modifying regular expression below but i could't get what I need. I google it, many things found but not for what i want. [CODE] Dim valid AS Boolean = Regex.IsMatch(TextBox1.Text, "^(,?\d+){0,20}$") [/CODE] Allow numbers exactly like 32,1,6,32,12,21,21,54,675,8,4,3,2,9,0,21,21,21,43,744 in TextBox1. Perfect. NOW i want 20 numbers …

Software Development gui regex vb.net
Member Avatar for ntagrafix
0
217
Member Avatar for shadowscape

Hello, i have created a Xor function for a DLL i am developing. I have a problem with this function as the decoded text isn't matching its original state and i am unsure as to the cause of this, please could you help me? [CODE] #define export __declspec (dllexport) #include …

Software Development c
Member Avatar for nmaillet
0
128
Member Avatar for pxndx

Hey does anyone know where i can find a list of projects like for school?

Software Development c c# c++
Member Avatar for Obadiah1
0
96
Member Avatar for lolsn0r

Ok i have made a picture ;) That will explain it a lil better. I just need to add that certain code ***|*** to textbox2.text but * can be 1 2 3 4 5 6 7 8 9 button2_click: if textbox1.text.contains("***|***") then ... Picture: [URL="http://imageshack.us/photo/my-images/43/naamlooses.jpg/"]http://imageshack.us/photo/my-images/43/naamlooses.jpg/[/URL]

Software Development vb.net
Member Avatar for codeorder
0
183
Member Avatar for TrustyTony

Again "pseudo-code" for [URL="http://www.daniweb.com/software-development/cpp/threads/379255/1632559#post1632559"]C++ program[/URL]. Quite primitive and simple, but I post it anyway. Generalized to take even even number as parameter.

Software Development python
0
132
Member Avatar for Gaiety

Hi, if any one has any idea "how the switch statement works". does it maintain any tables internally or any other machanism? and is there any way to make the switch statement efficient?

Software Development c
Member Avatar for lyfzopen
0
189
Member Avatar for amrita111

main() { char *p = “ayqm”; printf(“%c”,++*(p++)); } how will it work?please explain..

Software Development c
Member Avatar for jnawrocki
0
99
Member Avatar for coolbeanbob

Hello, I am trying to figure out how to get the rand() function to include 0. [CODE]int value = rand() % range + 1;[/CODE] No matter what I set range to be, the lower bound is always 1.

Software Development c++
Member Avatar for Fbody
0
177
Member Avatar for sydsine

plz solve ... [CODE]int main() { const int m=10; int &n=m; n=11; printf("%d%d",m,n); }[/CODE] can w declare &n...its not an error...

Software Development c
Member Avatar for himgar
0
326
Member Avatar for optikali

Hello all! I am generating a random int between 0 and 75: [CODE] public static int rand(){ int num = (int) (Math.random()*75); return num; }[/CODE] How would I generate the same range of numbers but with a 70% bias for the lower half of possible numbers? I thought I might …

Software Development java
Member Avatar for JamesCherrill
0
1K
Member Avatar for coco24

Hi, Im new to java and I can not figure out where I am going wrong in this code. I need to take the value from the arguments in the run configuration. I the values are in args[] array and if there is more than one argument I need to …

Software Development java
Member Avatar for Rameshwar Soni
0
149
Member Avatar for fibbo

Hey guys! I hope what I'm about to do is not frowned upon :) I just would like some input/critics/heads up on my class definition and implementation I did for my project. I am by no means a trained programmer and I doubt my coding style is very good so …

Software Development c++
Member Avatar for fibbo
0
218
Member Avatar for d3zz

Hello. i have this problem with a program im coding in python. heres the code: [CODE]#! /usr/bin/python from Tkinter import * list=[".", ".", ".", ".", ".", ".", ".", ".", "."] root=Tk() def p(lol): list[0]=1 lol["text"] = list[0] def plade(): ###### ROW=0 a1=Button(root, text=list[0], command=p(a1)) a1.grid(row=0) a2=Button(root, text=list[1], command=p(a2)) a2.grid(row=0, column=1) …

Software Development python tkinter
Member Avatar for d3zz
0
260
Member Avatar for coolbeanbob

Hello, I am trying to get the return value from the next_number function up to the makefile function. I am getting an error that says next_number does not have a class type. EDIT: the error is "return statement with a value, in function returning 'void'" I don't understand why it …

Software Development c++
Member Avatar for himgar
0
122
Member Avatar for thompsonSensibl

Hi, I have an array, and it must be sorted. The array's objects have associating values. For example, an array of city details contains these information [I]per object[/I]: (String) cityName, (double) cityNumber, (int) cityNumberOfPets. [CODE] //e.g. city[0] = ("Chicago", 243.2, 14); city[1] = ("New York", 25.3, 15432); city[2] = ("Dallas", …

Software Development java
Member Avatar for JamesCherrill
0
158
Member Avatar for Anuradha Mandal

Which one is update software for c++ and c language. Some practice center such as Codechef,, Uva online judge , I submit a right code but they said the code has compiling error such as it does not familiar with conio.h,getch() etc. I use Dev c++. How can I solve …

Software Development c++
Member Avatar for himgar
0
112
Member Avatar for mikejs

I seem to have broken something I get this error Unable to cast object of type 'System.EventArgs' to type 'System.Windows.Forms.KeyPressEventArgs'. my code: [CODE] Private Sub ListControl_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListControl.SelectedIndexChanged Dim connString As String = My.Settings.strConn Dim conn As New SqlConnection(connString) If ListControl.SelectedIndex > -1 …

Software Development vb.net
Member Avatar for mikejs
0
242
Member Avatar for newsguy

Software from boffins who used to work at the [URL="http://spacetech.dundee.ac.uk/"]Space Technology Centre[/URL] at the University of Dundee promises to reveal secrets of legacy code. Founded in September 2009, [URL="http://www.rapidqualitysystems.com"]Rapid Quality Systems[/URL] is a software development outfit that was 'spun out' of the Dundee University Space Technology Centre, and is still …

Member Avatar for jbennet
0
367
Member Avatar for UGndLord

I know these functions in C, but in C++ they doesn't work. What is replacement for these functions in C++ ? Thanks.

Software Development c++
Member Avatar for Narue
0
3K
Member Avatar for sergent

Why almost always capital letters are used when defining macros or variables like [CODE]#define SOMETHING 432[/CODE] instead of [CODE]#define something 3243[/CODE] Also, why in macro definition x is used for example [CODE]#define macro(x) (x*x)[/CODE] Does the letter matter, and can longer variable names be used like [CODE]#define MACROSQUARE(variable) variable*variable[/CODE]

Software Development c++
Member Avatar for Narue
0
169
Member Avatar for D3X

Hey guys,when i go to enter the same account number as i am logged into as well as any other account and click ok the error message displays however it does not stop me from progressing to transfer money to myself. I have had a shot at it however as …

Software Development java java-swing
Member Avatar for JamesCherrill
0
111
Member Avatar for Anuradha Mandal

Whats wrong with this code.... [CODE]#include<iostream> #include<conio.h> using namespace std; int main() { int x,y; cin>>x>>y; while(1){ if((0<x<=2000)&&(0<=y<=2000)) { if((x<=y)&&(x%5==0)) cout<<y; //else if((x/2)>y) // cout<<y; // else // cout<<y; else { break; } }} getch(); return 0; } [/CODE] I want to print the single value of y.I do not …

Software Development c++
Member Avatar for Narue
0
122
Member Avatar for ellisrn

I need to write a program which will execute a factorial, but with an upper and lower bound. Here's what I've written, but it's not working. I keep getting an error message on the for command with expression syntax. Please, I've got to have this and much much more by …

Software Development c++
Member Avatar for Fbody
0
1K
Member Avatar for Eddrian

Hey guys! I really need your help. I need assembly language codes to check if a string is a palindrome or not.. Pls. help me.. Thanks~! God bless!

Software Development assembly
Member Avatar for thines01
0
343
Member Avatar for tristanbacon

Hello all, I am working on a Blackjack program, but am having a bit of trouble with the finer details. At the moment, I have a list of the cards and their values, as follows: [CODE] Jack = 10 Queen = 10 King = 10 Ace = 11 # card …

Software Development python
Member Avatar for TrustyTony
0
250
Member Avatar for Digitalwolf

I have written a small client server program using tcp sockets, and i ran into trouble in retrieving the data brought in by the receive function. Like down below. [CODE] char *rec; int buff=1024; recv(a,rec,buff,0); [/CODE] You need a char buffer to get the data, but after that i wanted …

Software Development c++ client-server
Member Avatar for Digitalwolf
0
190
Member Avatar for werdna347

[CODE] cout<<"What HTH level are you (1,2,3): "; cin>>hthLevel; switch(hthLevel){ case 1:out<<"Hand to hand level= 1"<<endl;break; case 2:out<<"Hand to hand level= 2"<<endl;break; case 3:out<<"Hand to hand level= 3"<<endl;break; default: cout<<endl<<"Incorrect"; }[/CODE] Need to know how to loop this so if 1,2 or 3 is entered it continues but if an …

Software Development c c# c++
Member Avatar for Cross213
0
290
Member Avatar for Anuradha Mandal

Can any one say why the [B]break[/B] state does not work. [CODE]#include<stdio.h> #include <stdlib.h> int main() { int n; loop: scanf("%d",&n); if(n!=42){ printf("%d",n); goto loop;} else { break; } return 0; } [/CODE] this is my code.

Software Development c++
Member Avatar for Anuradha Mandal
0
103
Member Avatar for klenne

Hi, Actually I don't know if my question belongs in this topic or in the mysql topic. But I'm making a VB.net application with a mysql database and i have to make a trigger but I don't know where I have to use or implement it in my application. I …

Software Development mysql vb.net
Member Avatar for klenne
0
722
Member Avatar for khentz

Below is my code connection to my database..I highlight with red color my target database. And I would like to ask, what is the safest way to target the database. Because Im thinking, what if my database is change to another directory. If that happens, it will cause trouble to …

Software Development open-source vb.net
Member Avatar for gearup4it
0
140
Member Avatar for nera1981

I have this code: [CODE]import java.sql.*; import java.util.ArrayList; public class Car { private int id; private String model; private String color; private Double price; public void setId(int id) { this.id = id; } public int getId() { return this.id; } public void setModel(String model) { this.model = model; } public …

Software Development java
Member Avatar for nera1981
0
122
Member Avatar for Jake.20

Greetings expert programmers, Can someone guide me on how i will connect my vb.net 2008 to ms sql 2008 r2? I already installed mssql 2008 r2, and when i try to add the connection it says i need to call the administator something like that even though i checked all …

Software Development mssql vb.net
Member Avatar for Oxiegen
0
103
Member Avatar for jinglylime

Hi, I need to write a system that simulates buying and selling on the stock market with just text outputs. I need to create a menu so the user can register and delete thier account. Also be able to buy and sell shares. So far I have my classes and …

Software Development java
Member Avatar for JamesCherrill
0
117
Member Avatar for cppman

Hi, I have a .txt file containing information about 1000 events; each event lists 10-15 hit information. This number is not fixed. The format is given below: ================================================================= begin of event: 45 Hits(): X = 1.01101 Y = 1.01101 Z = 0.048 Hits(): X = 1.00502 Y = 1.02509 Z …

Software Development algorithm c++
Member Avatar for cppman
0
179
Member Avatar for king_saqib

[ICODE]if val(text1.text) <> "0" then or "" then c = val(text1.text) * 1 + c [/ICODE] but it show an error somebody help me

Software Development visual-basic
Member Avatar for Deepak Shitole
0
73
Member Avatar for coolbeanbob

Hello, I have been working on an assignment using codeblocks with the GNU GCC compiler. The assignment must compile using Visual Studio 2008. I have not been able to get my hands on Visual Studio 2008 as of yet, but I was wondering if anyone thinks I should be concerned. …

Software Development c++ visual-studio
Member Avatar for coolbeanbob
0
306
Member Avatar for Majestics

As the title stated i want to show tooltip when the user press up and down keys in combo box, Please any hint ..... Regarding to problem

Software Development java
Member Avatar for mKorbel
0
129
Member Avatar for thompsonSensibl

Hi I am having trouble at finding a way to iterate through a string of alphabets until a digit is reached. e.g. iterating through [CODE] //Using a scanner, I can use scanner.getNext() to get the first word. //There may be more than one word; there is no way to tell; …

Software Development algorithm java
Member Avatar for NormR1
0
259
Member Avatar for hondros

I am at my wit's end with this thing. I just can't figure out, why I cannot set the WNDCLASSEX.lpfnWndProc equal to my class's function. Can someone help? Here's my code: system.h [code] #ifndef SYSTEM_H #define SYSTEM_H #include "stdinc.h" class System { private: void initD3D (void); void cleanD3D (void); LRESULT …

Software Development c++
Member Avatar for hondros
0
197
Member Avatar for JoshuaBurleson

I'm working on learning GUI development, I'm attempting to utilize the GUI for a user to search the dictionary: my code so far is[CODE]from tkinter import * class Interface(Frame): def __init__(self, master): super(Interface, self).__init__(master) self.grid() self.create_widget() def create_widget(self): self.pwrd= Label(self, text='Address Book') self.pwrd.grid(row=0, column=2) self.searchlbl= Label(self, text='Enter Search Query:') self.searchlbl.grid(row=2, …

Software Development gui python tkinter
Member Avatar for JoshuaBurleson
0
288
Member Avatar for coolbeanbob

Hello Everyone, I am working on a program that will write random numbers to a file. I am getting the following error on line 31 of the filer.cpp file. "error: no match for 'operator<<' in 'outstream << srand((( srand(((unsigned int)time(Ou)))'" I believe the code used to generate the random number …

Software Development c++ file-system
Member Avatar for coolbeanbob
0
208
Member Avatar for zpzp16

I want to do x=[1,2,3,1,1,2,] y=[1,2] x-y=[3] but when I write z=[set(x)-set(y)] if gave: z=[1,1,2,3] how I can do it?

Software Development python
Member Avatar for woooee
0
143
Member Avatar for matanking

[CODE]#include <iostream> #include <fstream> #include <string> #include <sstream> using namespace std; int main(){ fstream First("firstt.txt"); fstream File("file.txt"); string firsttime; string blah1 = "enable"; string blah2 = "disable"; getline(First, firsttime); if(firsttime!="not"){ First << "not"; cout << "first time settings (to be changed at file.txt)" << endl << "allow every one enter? …

Software Development c++
Member Avatar for venomxxl
0
219

The End.