132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for daniela.valkanova

void init1() { static int yrs = 1; cout << "The value of yrs is " << yrs << endl; yrs = yrs + 2; return; } void init2() { static int yrs; yrs = 1; cout << "The value of yrs is " << yrs << endl; yrs = …

Software Development c++
Member Avatar for daniela.valkanova
0
151
Member Avatar for daniela.valkanova

#include <iostream> #include <cmath> using namespace std; double dist(int x1, int x2, int y1, int y2) { double r1 , r2 , d ; r1 = sqrt((x1*x1) + (y1*y1)); r2 = sqrt((x2*x2) + (y2*y2)); d = sqrt((x2 - x1)*(x2 - x1) + (y2 - y1)*(y2 - y1)); cout << " …

Software Development c++
Member Avatar for daniela.valkanova
0
284
Member Avatar for daniela.valkanova

> Write a C++ function named fracpart() that returns the fractional part of > any number passed to it. For example, if the number 256.879 is passed to fracpart(), the > number 0.879 should be returned. Have fracpart() call the whole() function you wrote in > Exercise 12. The number …

Software Development c++
Member Avatar for daniela.valkanova
0
364
Member Avatar for yuimikazuki

print "Let's practice everything." print 'You'd need to know 'bout escapes with \\ that do \n newlines and \t tabs.' poem = """ \tThe lovely world with logic so firmly planted cannot discern \n the needs of love nor comprehend passion from intuition and requires an explanation \n\t\twhere there is …

Software Development python
Member Avatar for HiHe
0
163
Member Avatar for nathan.pavlovsky

Hello programmers! I have been working on STL algorithms for some time now as a beginner, and I started doing an exercise, among which is the task of `use the fill algorithm to fill the entire array of strings named items with "hello"`. My code for this is below: // …

Software Development c++ file-system programming-construct
Member Avatar for nathan.pavlovsky
0
2K
Member Avatar for lewashby

In the following program I'm getting the warning -> unused variable ‘fn’. I'm following along with a book so I don't know why it gave me that portion of code if it's unusable. Also, I don't understand this line at all. -> `void(*fn)(int& a, int* b) = add;` #include <iostream> …

Software Development c++
Member Avatar for sepp2k
0
193
Member Avatar for sbesch

I am interested in getting some opinions on the use of include files to sub-divide a large module into functionally related groups. What I'm interested in is opening a discussion on best practices and minimal requirements. Here's the scenario: I am working with a library with 200+ functions. They naturally …

Software Development c++
Member Avatar for mike_2000_17
0
278
Member Avatar for silvercats

1. An assembly instrction is converted into binary, also known as the machine code by the assembler. And it contains only 0s and 1s yes /no? 2. Then, the microcode handles the 1s and 0s of the assmelby instrcution that was convereted before. Yes or no? 3. Does the processor …

Software Development assembly
Member Avatar for Schol-R-LEA
0
427
Member Avatar for chdboy

import java.awt.Frame; import java.awt.SplashScreen; import javax.swing.JOptionPane; public class NewFrame extends Frame { public NewFrame() { // TODO Auto-generated constructor stub SplashScreen splash = new SplashScreen(1000); System.out.println("This is working"); } /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub //SplashScreen splash = new SplashScreen(2000); …

Software Development java java-swing
Member Avatar for JamesCherrill
0
306
Member Avatar for MasterHacker110

I am trying to write some information to an access database using OleDB but I get an error. I dont know what is wrong with it. I it something to do with my SQL code? // The program will make use of a text file for now but must use …

Software Development c# microsoft-access open-source
Member Avatar for MasterHacker110
0
198
Member Avatar for iConqueror

I know that assigning the access type 'private' to a variable is to prevent other methods from accessing and modifing that variable from out side its class. I understand that the get and set modifiers are typically used to access private variables. Why can a private variable be accessed by …

Software Development
Member Avatar for deceptikon
0
169
Member Avatar for Fazelessmetal

/* USE IT HOWEVER YOU WANT :D */ #include <iostream> #include <string> #include <fstream> #include <cstdlib> using namespace std; char name[100]; wchar_t words[100]; int choice; int chmon; int level; int main (int argc, char *argv[]) { //main string used("this game is cool"); string in; cout<<"Hello Welcome to the Code Game!"<<endl; …

Software Development c++
Member Avatar for ddanbe
0
177
Member Avatar for virendra_sharma

Hi, i have windows application , in that i have reference to the web service. Now when i put username and password , application calls to authentication service ( which is hosted on same machine IIS 7.5 ) i get pop up which is asking for Proxy Authentication. can anyone …

Software Development router-proxy-firewall
0
204
Member Avatar for elouch

Hi everyone, i've been searching on the internet about how to read contacts from windows live mail account and i cant see anything in the internet to solve such problem. can anyone help me with this, a pointer or tutorial for this may do. thanks in advance.

Software Development email microsoft vb.net
Member Avatar for elouch
0
245
Member Avatar for elouch

hi all i've been strugling with this error. could someone help me. below is the code stremail = "some@email" For Each store In outlookapp.Session.Stores strchecking = store.DisplayName outlookfolder = store.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox) For Each objfolder In outlookfolder.Folders For Each obj As Object In objfolder If TypeOf (obj) Is Outlook.MailItem Then MsgBox(obj.Subject) End …

Software Development motherboards-cpu-ram session vb.net
Member Avatar for elouch
0
4K
Member Avatar for screenedcreamy

I've been programming in java for almost 5 years now. I'm self-taught, so while I know how to program, I don't know some of the more formal aspects of computer science. So if i were to brush up my knowlegde on algorithms and data structures using java which books can …

Software Development algorithm data-science data-structure java
Member Avatar for screenedcreamy
0
235
Member Avatar for lewashby

(Linux) I just installed eyed3 for python using apt-get, everything installed fine but when I tried to import eyed3 I got a trackback error, no such module. Do I need to do something special to let python know where the module is at or do I need to move the …

Software Development python
Member Avatar for Gribouillis
0
1K
Member Avatar for devh

In Turbo C , I am using bios.h to send and receive data on serial Port. I am using bios(2, 0, COM1) to receive data.... and bios(1, in, COM1) to send data..where (let int in=65 I am receiveing data from Port but unable to send... I copied code from [url]http://electrosofts.com/serial/[/url] …

Software Development c
Member Avatar for nithinkumar
0
1K
Member Avatar for lithium112

I am trying to pull data from user control 1 and insert the data into a label on user control 2. I have been doing a lot of research on this including the link here: http://www.daniweb.com/software-development/csharp/code/217193/passing-data-between-forms but haven't found a suitible answer that will actually work. I am trying retain …

Software Development
Member Avatar for cgeier
0
230
Member Avatar for brittney_2

I don't have a code that needs solving, but merely a simple explanation if possible from an example in a book. There isn't much explaining and I just need to know how this line of code checks to make sure the date entered does not occur in April. The [0-35-9] …

Software Development java regex
Member Avatar for brittney_2
0
215
Member Avatar for henry.moore.319247

this is my first attempt on python and i would really love some help heres my code class Customers(object): def __init__(self, Surname = None, FirstName = None, Address = None, Town = None, Postcode = None, PhoneNumber = None, Date = None, Email = None): self.Surname = Surname self.FirstName = …

Software Development python
Member Avatar for TrustyTony
0
316
Member Avatar for Kellypyz

hello quys, gota a problem here. i have two datareaders.reade1 reads data from one table and read2 from another.i want to loop through reader1 and reader2 so that records that do not exist in reader2 are inserted to the database table and if they exist they are updated. here is …

Software Development vb.net
Member Avatar for cgeier
0
174
Member Avatar for moaz.amin.37

i am confuse about `paint()` method in applet .The confusion is that paint method is getting object as parameter of Graphics class like this `public void paint(Graphics g)` and i read that the Graphics class is an abstract class then how we create object of Graphics class and now you …

Software Development java
Member Avatar for JamesCherrill
0
385
Member Avatar for lyleholc

Hi, I’m pulling out my hair getting Apache/Perl to work and would like some help with getting httpd.conf, Windows path, and other setting correct to run some Perl programs. I’ve set alias, Options, AddHandler, etc. but the simple program below gives permission errors. I’m running a Bitnami WampStack on XP …

Software Development apache perl web-server
Member Avatar for Taywin
0
275
Member Avatar for skp03

Hello Everybody i am using VS2010 C# Windows application i have a doubt how can we encrypt a video file (i have three video files which should not copy and it should not be opened directly) i have designed a application that has a form1 and three buttons in it …

Software Development c# video
Member Avatar for Mike_Gr
0
599
Member Avatar for samuel.tenderfeet

I recently submitted an assignment to my instructor, and i got a less than desirable grade and the jist of the marks were that iw as using hard coded variables so can someone explain to me how to use the getter method a little better? (i assume thats what i …

Software Development java
Member Avatar for stultuske
0
149
Member Avatar for abeer araji

thanks all for help im new in the website and i dont even know how to use it well im not a cheater or any thing else and i will not copy past any thing !! Im here just to learn

Software Development java
Member Avatar for JeffGrigg
0
136
Member Avatar for Fazelessmetal

/* Written by HAYZAM SHERIF ! USE IT HOWEVER YOU WANT :D */ #include <iostream> #include <string> using namespace std; char name[100]; wchar_t words[100]; int choice; int main() { //main string userstring; string mystring; mystring = "THIS GAME IS COOL"; cout<<"Hello Welcome to the Code Game!"<<endl; cout<<"--------------x----------------"<<endl; cout<<endl; cout<<"Please enter …

Software Development c c# c++
Member Avatar for deceptikon
0
171
Member Avatar for Jjajangmyeon

I've hit a wall. I'm trying to open a .txt file and then copy it's contents into an array of character arrays. Can someone point in me in the right direction. I've been at this for about 2 days now and haven't made any head way. Below is a sample …

Software Development c++
Member Avatar for Jjajangmyeon
0
11K
Member Avatar for Fazelessmetal

#include <iostream> #include <string> using namespace std; int main() { string x; cout<<"Enter Text : "<<endl; cin>>x; getline(cin,x); cout<<"The text entered was, "; cout<<x; system("PAUSE"); return 0; } Output that I get when I enter 1 word : Enter Text : LOL The text entered was, Press any key to …

Software Development c++
Member Avatar for NathanOliver
0
350
Member Avatar for Violet_82

Hi guys, I run into a problem. I am trying to write a small program. There should be 4 radio buttons and each of them controls the colour of the Content Pane. The problem I have is with the anonymous inner class (I hear JamesCherrill muttering "why do you bother?", …

Software Development java java-swing
Member Avatar for JamesCherrill
0
298
Member Avatar for asaidi

Hi i m using my host to save mysql database.. when i fill the fields the data is saved ..but i m keeping getting this error ..and really the data input is saved i dont understand why.. the error i get thank you in advance com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The …

Software Development java java-swing
Member Avatar for asaidi
0
301
Member Avatar for Jack_9

Is C really a good language do have under your belt? Would it be better just to learn C++?

Software Development c
Member Avatar for Hiroshe
0
103
Member Avatar for sganandhsg

Hi, In my project developed for using asp.net with vb.net coding. Now we need to performace testing using the Jmeter tool. we can't able to test because in my application lot of session variable used, Jmeter tool does not support session variables i think. Check with debugging: 1.Assign the session(userName) …

Software Development session vb.net
Member Avatar for Dmitri_1
0
310
Member Avatar for abaddon2031

Im working on a project where i have to get the number of printers that are allocated to a certain job and need to split the file name up so that i can read the type and the number of printers and if its a half bed or not. The …

Software Development python
Member Avatar for snippsat
0
269
Member Avatar for rowen_1

Requirements 1. the user clicks the button(Go to animation page) at page one 2. the user will be directed to page two whereby an animation is played for 5 seconds 3. after 5 seconds, the user will be directed to page three. I am trying to delay a page for …

Software Development java java-swing
Member Avatar for JamesCherrill
0
186
Member Avatar for kdejan87

I would like to know which way querying is a better, safer, more efficient. And whether there are some major differences. Sending two examples of code. Would I need something to add, modify or delete. Feel free to express your opinion. Try con.Close() con.Open() Dim sqlQuery As String = "INSERT …

Software Development vb.net
Member Avatar for deceptikon
0
177
Member Avatar for star_trek

hii all, # this is one text file i want to extract data from # Datum/Uhrzeit,Sta.,Bez.,Unit,TBId,Batch,OrderNr,Mat1,Total1,Mat2,Total2,Mat3,Total3,Mat4,Total4,Mat5,Total5,Mat6,Total6,Summe 41521.880937(04.09.13 21:08:33),TB01,TB01,005,300,9721, ,2,27473.31,0,0.00,0,0.00,3,1790.40,0,0.00,0,0.00,29263.71 41521.922606(04.09.13 22:08:33),TB01,TB01,005,300,9741, ,2,27528.53,0,0.00,0,0.00,3,1795.30,0,0.00,0,0.00,29323.83 41521.964274(04.09.13 23:08:33),TB01,TB01,005,300,9760, ,2,27580.88,0,0.00,0,0.00,3,1799.97,0,0.00,0,0.00,29380.84 41522.005942(05.09.13 00:08:33),TB01,TB01,005,300,9780, ,2,27636.00,0,0.00,0,0.00,3,1804.86,0,0.00,0,0.00,29440.86 41522.047610(05.09.13 01:08:33),TB01,TB01,005,300,9800, ,2,27691.12,0,0.00,0,0.00,3,1809.75,0,0.00,0,0.00,29500.87 ## I am unable to extract date and Summe from this file ## 04.09.13 21:08:33 29263.71 04.09.13 22:08:33 29323.83 …

Software Development
Member Avatar for Fenrir()
0
333
Member Avatar for ronniel.duque.1

Need Help Please I want to create a password textbox that would tell if my password that I input is strong, good or weak It will tell that my password is strong if it includes numbers, letters and special characters good if it has letters and numbers and if it …

Software Development vb.net
Member Avatar for Hiroshe
0
630
Member Avatar for myk45

Hi, I have a Qt based tool and I want to add a QtWidget(button) in the gui which will act as a help button for my tool just like the windows help button for any application. The help button when pressed should display some text information in the form of …

Software Development c++ gui qt
Member Avatar for mike_2000_17
0
174
Member Avatar for Steven_9

I am currently taking java and learning how to create GUI. I am trying to create a GUI whereby 1) Upon executing the application,the user will need to key in his username and password. 2) the user will be brought to second page which displays "Welcome to Page Two!" if …

Software Development gui java java-swing
Member Avatar for Steven_9
0
2K
Member Avatar for soujanya.bhat.184

Hi Guys, How to write the contents of JList into a text file. i have a JList and i want to add the list elements to a text file. How to do this?

Software Development java
Member Avatar for stultuske
0
285
Member Avatar for Samarth_1

Hello, I am a bit new to vb.net. I Want to make a translucent button but I am not able to make it. Can anyone help me please? Thanks in Advance

Software Development vb.net
Member Avatar for deceptikon
0
361
Member Avatar for Saboor880

Hello to all! I have two questions 1- please give me a internet link from where i download Vb 6 enterpize edition setup 2- Please also give me a link from where i download vb 6 enterprize edition origina/reference book

Software Development file-system visual-basic
Member Avatar for deceptikon
0
228
Member Avatar for kdejan87

Hello. I recently begun using vb.net. I am creating a form application using Visual Studio Express VB 2008 and SQL server 2008. I have two forms. When the program start is not showing me any form. What is to be done that I could use two forms as one program. …

Software Development vb.net visual-studio
Member Avatar for ddanbe
0
125
Member Avatar for Mr.M

Hi Dw I've create a program to capture the images using the webcam and now what I want is that before the image is saved the program verifies if that image has already been taken and saved. Suppose the I have captured my picture and then if I recapture my …

Software Development image vb.net webcam
Member Avatar for Mr.M
0
211
Member Avatar for spyros.lois

Hello How can i maka a ppt viewer within a form application in c sharp? what is the control that will contain the presentation? i tried webrowser control but i gave up.

Software Development visual-studio
Member Avatar for du_1
0
175
Member Avatar for messr135

I'm making a word unscrambler, an anagram solver of sorts. So, I've stored all possible variations of the word in storedstrings which is an array of strings. Now, i need to delete all the same strings in storedstrings and then store the unique strings in another array of strings. This …

Software Development c++
Member Avatar for David W
0
415
Member Avatar for JNDZ

When I calling AS400 stored procedure from C# application I get this error MSG - ERROR [42S02] [IBM][Client Access Express ODBC Driver (32-bit)][DB2/400 SQL]SQL0204 - GVSP07 in TESTGV type *N not found. Please anyone can help me??????

Software Development c#
Member Avatar for cgeier
0
2K
Member Avatar for geekboots

[Click Here](http://www.geekboots.com/c/intro) get lot of simple c programming which will help you to learn C programming at the beginner stage.

Software Development c
Member Avatar for deceptikon
0
306

The End.