132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for chris.vargas.773

For a Class assignment i wrote a program that has to throw a logic_error and then catch it but my code doesn't work i don't know what am i doing wrong. #include <iostream> #include <iomanip> #include <exception> #include <stdexcept> using namespace std; std::logic_error; struct MyException : public exception { const …

Software Development c++
Member Avatar for Lucaci Andrew
0
695
Member Avatar for krunal1986

Hello, I need a simple way to mail from OUTLOOK WEB APP not from OUTLOOK via a VB6 code. Anyone know how to do that? Any code/link avaliable? Thanks, Krunal

Software Development email visual-basic
Member Avatar for samsylvestertty
0
489
Member Avatar for ArtemKrass

Hello! Sory for my English, i'am from Russia Please, Help Me... There is such code: #coding:utf-8 import wx import sys import time import cefpython class MainFrame(wx.Frame): browser = None def __init__(self): wx.Frame.__init__(self, parent=None, id=wx.ID_ANY, title='wxPython example', size=(1000,800)) self.browser = cefpython.CreateBrowser(self.GetHandle(), browserSettings={}, navigateURL="http://google.com") class MyApp(wx.App): timer = None timerID = 1 …

Software Development python
Member Avatar for ArtemKrass
0
135
Member Avatar for x38class

I have an app that fails because mscorlib is not installed from Net Framework 2 SP2 Without it, I get the following error: Could not load type 'System.DateTimeOffset' from assembly 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The error can not be trapped in the runtime of the application, it appears when app …

Software Development assembly vb.net
Member Avatar for x38class
0
215
Member Avatar for ibthevivin

So let's take "banana", what happens when the program gets to if (ch <= 'd')? My understanding is the 'b' is < 'd' so it moves to the else. Am I wrong or right? If I'm right, then what happens at return 1 + g(s, index + 1); public class …

Software Development java
Member Avatar for ibthevivin
0
191
Member Avatar for crazyjdog

I am trying to create a program that takes an input from a user for a file name and then a text string and removes the string from the file. I have been at this one for a while and I have exausted just about every idea I had to …

Software Development python
Member Avatar for woooee
0
104
Member Avatar for kgal

I'm trying to write a program that will ask the user to input the number of values he wants, prompt him for the values and then print out the maximum value and the minimum value. This is what I have so far: count=1 echo "Enter number of integers" read n …

Software Development shell-scripting
Member Avatar for 1234brut
0
707
Member Avatar for xixi.li.7

I have a project to calculate simple moving average of a data, and the data contains over 4000 values. And requires me to skip the first 14 days and calculate the simple moving average on rest of data. I never experience use moving average and ask me to use LINQ …

Software Development
0
227
Member Avatar for Wh1t3gh0st

Hello again I am writing a program that takes the users input and finds that many primes; not the primes of the number from the user just that many. The problem is when I input the amount of primes to generate I don't get all the values from primes variable …

Software Development assembly
0
296
Member Avatar for Wh1t3gh0st

Hi, I am having trouble when I read in an integer from the keyboard and I try to display it to the screen back as the same integer. It pops out as an ASCII character. Am I doing this wrong or is there a way to read it as an …

Software Development assembly
Member Avatar for Wh1t3gh0st
0
105
Member Avatar for cj122

import java.applet.Applet; import java.awt.Color; import java.awt.Component; import java.awt.Graphics; import java.awt.Image; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.util.Random; import javax.swing.JFrame; public class StartingPoint extends Applet implements Runnable, KeyListener{ public static void main(String[] args) { StartingPoint sp = new StartingPoint(); JFrame frame = new JFrame("My applet, as application"); frame.getContentPane().add(sp); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); sp.init(); sp.start(); frame.pack(); …

Software Development java java-swing
Member Avatar for NormR1
0
259
Member Avatar for blindislands

My teacher wants me to write a function called double cos(float); to compute the cos of an angle (given in radians) using the Taylor series shown. Your function should find the value of the cos for ANY angle (preferred) or at least angles up to 2 PI (Hint: if you …

Software Development c
Member Avatar for blindislands
0
553
Member Avatar for jayrharris21

Alright guys, brand new to the forum and I'm currently taking my first c++ course. I am not asking for anyone to do my homework for me, but I have been working on the same assignment for the past three days and have been unable to figure it out. Here …

Software Development c++ visual-studio
Member Avatar for jayrharris21
0
553
Member Avatar for krystosan

how should i save data like {username , passwords} to disk for later retrieval so that it cannot be opend and read in by a text editor?

Software Development python
Member Avatar for krystosan
0
171
Member Avatar for hallepalle

Hi my name is Jakob and I'm new to programming. My project now is to make a game called Mastermind in Java Eclipse. Here is an explanation of what Mastermind is: [url]http://sv.wikipedia.org/wiki/Mastermind[/url] My game is going to be text-/number-based and it's just going to be able to run in the …

Software Development java
Member Avatar for NormR1
0
15K
Member Avatar for kaharas

Good Evening. I'm building a C# application, as follows : a main frame that allows the user to popup sub-forms, each one containing a WebBrowser component that loads a flash animation. The problem is the following: whenever i simulate a click on the subforms, they popup in the foreground and …

Software Development
Member Avatar for kaharas
0
186
Member Avatar for VergilDevil123

typedef struct zoz { int age; int mag; int suly; } nevsor_t; int olvas(nevsor_t * pnevsor) { return scanf("%d %d %d", &pnevsor->age, &pnevsor->mag, &pnevsor->suly); } int kiir(nevsor_t nevsor) { return printf("%d year\t%d cm\t%d kg\n", nevsor.age, nevsor.mag, nevsor.suly); } int sort_age(const void *a, const void *b) { struct nevsor_t *ia = …

Software Development c
Member Avatar for Ancient Dragon
0
470
Member Avatar for hartk1213

i need some help with my assignment the link is to the assignment [Click Here](http://www.cwu.edu/~schwing/cs361/CPPprog4.html) Complex.h #include <iostream> using namespace std; class Complex { private: double realPart; double imaginaryPart; public: //Default Constructor Complex(); //Parameterized Constructor Complex(double r, double i); double GetRealPart() const; double GetImaginaryPart() const; void printComplex(); }; test.cpp #include …

Software Development c++
Member Avatar for hartk1213
0
407
Member Avatar for kedxu

**Background**: I have some experience in programming, but it's not a lot and not very good. I'm taking my first Java class this year, but because the pace is so slow I decided to just learn with the aid of the internet. This is how I have learned most of …

Software Development audio java
Member Avatar for kedxu
0
391
Member Avatar for HiHe

Seconds since epoch should be zero, but are not: '''timetuple1.py create a time tuple for epoch 1/1/1970 00:00:00 however, seconds since epoch does not give 0 ''' import time timetuple = time.strptime("01/01/1970 00:00:00", "%m/%d/%Y %H:%M:%S") print(timetuple) print('-'*40) # seconds since epoch 1/1/1970 00:00:00 secs = time.mktime(timetuple) print(secs) '''my result >> …

Software Development python
Member Avatar for HiHe
0
391
Member Avatar for savedlema

Why do I get an error creating a temporary table with something even as simple as this:"CREATE TABLE #Results"? But this "CREATE TABLE Results" works. I thought we put # when we need to create temporary tables (Access), its like I've once done that. Help on that please? Thanks!

Software Development vb.net
Member Avatar for savedlema
0
392
Member Avatar for nesa24casa

Hello, i have created borderless form with transparent png as bacground image but i have issue. Border edges isnt smooth [image](http://www.tuxmachines.org/images/openoffice_31_antialias.png) Its like in this picture on the left and i need it to be smooth. How can i make it smooth? Thanks in advance

Software Development
Member Avatar for nesa24casa
0
178
Member Avatar for Divinedar

I'm still having a problem with this. Can someone help? Let me explain a little more of what I need. Range("G3:G" & Cells(65536, "A").End(xlUp).Row).Select Selection.FormulaR1C1 = _ "=IF(ISNA(VLOOKUP(RC[-6],SUMMARY2!C[-6]:C,7,0)),35,VLOOKUP(RC[-6],SUMMARY2!C[-6]:C,7,0))" Sub Compare() Worksheets("SUMMARY2").Visible = True I'm still having a problem with this. Can someone help? Let me explain a little more of …

Software Development visual-basic
0
153
Member Avatar for dwhite12

I am running into a strange error everytime I use lxml.etree and was wondering if anyone else has ran into this problem before. It was not until, what I believe happened my lxml was updated to a new version, that I started to get this problem. the error is "File …

Software Development python xml
Member Avatar for dwhite12
0
306
Member Avatar for nyfan68

I am working on a phonebook application and I am having trouble implementing the add and find functions in the phonebook class. I am not sure how I am suppose to implement the functions using the prototypes provided. Any help would be appreciated. #ifndef Name_H #define Name_H #include <iostream> #include …

Software Development c++
Member Avatar for Schol-R-LEA
0
158
Member Avatar for ObSys

Ok so im writing a small java application using Zellers Algorithm to work out the day of the week for a given date. I have never compiled a java program before because i'm still moderately new to the language and IDE's etc. I am using netbeans. I have tried to …

Software Development algorithm gui ide java java-netbeans java-swing
Member Avatar for NormR1
0
172
Member Avatar for jongiambi

Hi im writing a fill-in-the-blanks program and I am stuck on how to delete a node from a liked list. I am suppost to follow this psuedocode to finish the program. I think I am close to a solution, can anyone point out what im doing wrong? The list already …

Software Development c++ linked-list
Member Avatar for Ancient Dragon
0
282
Member Avatar for Vish0203

Hi, I'm working on a small project and i'm stuck in a part where I need to replace the existing word in file with a new one. I really have no idea about it.. I'm posting the function block where i'm facing the problem void team::team_list() { string str = …

Software Development c++ file-system ios
Member Avatar for sbesch
0
157
Member Avatar for G_Waddell

Hi, I'm updating an application to .net from VB 6.0. It uses crystal reports to display reports but we get issues around versioning and having to have the client install Crystal so we would prefer not to depend on Crystal. I was originally going to use an XMLReader object to …

Software Development asp.net dataset vb.net visual-studio
Member Avatar for G_Waddell
0
505
Member Avatar for mitesh.24jain

# Asp.net with c# language # I have 3 table let say table1 ,table2 and table3 Table1 with 2 columns pid and productname pid(P.k) productname 1 abc 2 qwe 3 ewre 4 jui Table2 with 2 columns fid and imagename fid(P.k) imagename 1 a 2 b 3 c 4 d …

Software Development asp asp.net
0
120
Member Avatar for kaizen202

In my project, I have created around 12 custom controls(checkbox,radiobutton,editbox,progressbar,scrollbar,button etc...). Custom painting is done in all controls for the extended look and feel using Pen,Brushes,Graphics, GraphicPath,Images,Region and Bitmaps ect. After the use of these objects, I have disposed the objects using the Dispose() method. I am using these controls …

Software Development
Member Avatar for kaizen202
0
412
Member Avatar for tmohney

Hello, I am taking my first basic computer programming course. We are learning how to use C# in Visual Studio. Recently we started learning about classes and how they work in OOP. I get the idea of what they are and what they do. I am having a problem writing …

Software Development oop visual-basic visual-studio
Member Avatar for Mike Askew
0
147
Member Avatar for lior.mor.73

hi! i started my programming studies not a long ago. we work on c++ and somehow the program is not compiling on my computer. the software is legal, i installed and started it with no problem but when i do debug or build i always recieve this error at the …

Software Development c++ legal visual-studio
Member Avatar for Lucaci Andrew
0
82
Member Avatar for vicky30312

I cannot get the math right for the higher option. When you run the program, the program will go lower, but it wont go go higher. What is it i need to change? this program is due by the end of my class today and i can't figure it out. …

Software Development c++ gaming mathematics
Member Avatar for Reverend Jim
0
286
Member Avatar for wmarquez

Hello! I have a question that I think might be simple to answer but I haven't found any documentation anywhere to confirm my suspicions. I pasted only the relevant portions of my code below to the question that I'm asking. My program is supposed to multiply two square matrices. The …

Software Development c storage
Member Avatar for deceptikon
0
205
Member Avatar for ProgenitorVirus

Hi there, I'm reading the contents of a text document and saving all of the values (csv) into an array. My issue is that the very first article in the document is always being saved with "" appended to the beginning. eg. Text document reads: Hello,Doctor,Name,Continue,Yesterday,Tomorrow When it is brought …

Software Development vb.net
Member Avatar for Reverend Jim
0
132
Member Avatar for mmathew

I need to do the following: input First and Last name Output initials. Output however many letters Input Middle name Output Full initials. then redo the process. input First and Last name Output initials. Output however many letters Input Middle name. Output Full initials. Example: Enter your first and last …

Software Development c
Member Avatar for Ancient Dragon
0
5K
Member Avatar for FUTURECompEng

This was in the game development section and I think I accidently put it there (or an admin moved it, if so then next time can you let me know, thanks). So I am posting it here (java forum community is of higer quality when giving responses) , I hope …

Software Development java legal puzzle
0
202
Member Avatar for bandurao

Hello friends, This is my first port so please bear with me. I am developing a simple software in Vb.net 2010. In this software you can add, edit, delete, print records. I have done everything except print option as I dont have any idea on how to do this. I …

Software Development microsoft vb.net
Member Avatar for dinhunzvi
0
293
Member Avatar for anukavi

Hi, I have got an integer as 0010000001. I need to remove the last 4 digits ie 0001 and the remaining digits is 001000(this is expected) The truncation of last 4 digit is standard. ie the size of last digits is always 4. can anybody help me to code this …

Software Development c++
Member Avatar for Lucaci Andrew
0
1K
Member Avatar for Inshu

I have this programme to discuss and I think its a challenging one.. Here I have a yml file which contains the data for an image. The image has x,y,z values and intensity data which is stored in this yml file. I have used opencv to load the data and …

Software Development image python
0
154
Member Avatar for code_r

**Requirements** Write the following function: void splitDate(int dayOfYear, int year, int *month, int *day); dayOfYear is an integer between 1 and 366, specifying a particular day within the year designated by year. month and day point to variables in which the function will store the equivalent month (1-12) and day …

Software Development c++
Member Avatar for Gonbe
0
138
Member Avatar for prakhs

#include <stdio.h> #include <ctype.h> #include <string.h> #include <stdlib.h> int compare(const void * a, const void * b) { return strcmp(a, b); } struct node { char name[51]; int index; }; /* 1.Sort the Array cities (which was copy of A) and Array B2 (which was copy of B). 2.Do binary …

Software Development c
Member Avatar for prakhs
0
164
Member Avatar for shujat132

**My academic assignmentt ** **Please help me in coding for this assignment** In Linux Ubuntu flavor, write a program in C language to do the following tasks. 1) Use fork ( ) system call to create a child process. 2) Child process should first take student name as input and …

Software Development c multithreading ubuntu
Member Avatar for khudayar
0
2K
Member Avatar for nyfan68

I have been working on this phonebook application for a few days now. I am suppose to Create classes Name, PhoneNumber, and PhoneBook that are employed by the provided phone book program, PhoneBookProgram.cpp. Class Name Represents the name for a listing in a phone book (example: Phil’s Pizza) Overloads stream …

Software Development c++
Member Avatar for vijayan121
0
204
Member Avatar for chris.vargas.773

i'm having trouble with this assignment for my cs class the directions say "Make operator+ combine together the contents of two TrashCan, as long as the contents does not exceed the size. Make operator- subtract one TrashCans contents from another, as long as the size or contents don't go negative. …

Software Development c++
Member Avatar for chris.vargas.773
0
121
Member Avatar for belber

hallo all.. i have question about connecting barcode scanner to vb6 how to connecting barcode scanner to vb6... i use usb barcode scanner... did i must set port or some code in vb6..??? or it works automatically..??? i need some code reference plsss...

Software Development visual-basic
Member Avatar for ChrisPadgham
0
1K
Member Avatar for jlmeyer43

So I'm currently working on a program that does the following tasks: Read the encoded message from the attached MessageIn.txt file using StreamReader Count the instance of each character in the file, The most common character in the message should be an "E". Use this information to calculate the amount …

Software Development file-system
Member Avatar for jlmeyer43
0
240
Member Avatar for Morbs

I keep recieving an error on lines of code 77-80 and I'm not really sure what I'm doing wrong. They're all the same error and goes as follows: ----jGRASP exec: javac -g Program5.java Program5.java:72: error: cannot find symbol adultTickets = adultTicketPriceTextField.getText(); ^ symbol: variable adultTicketPriceTextField location: class Program5.buttonListener Program5.java:73: error: …

Software Development gui java java-swing
Member Avatar for Morbs
0
626
Member Avatar for jg1405

I am struggiling to correctly put together these two constructors, one adds an instance of an array class and the other searches for an int passed-in. public void Add(Appointment a) { Scanner s=null; for (int i=0; i<this.m_Appointment.length; i++) { m_Appointment[i]=a; a.Read(s); m_NumElements++; } } public Appointment Find(int appointmentId) { for …

Software Development java seo
Member Avatar for NormR1
0
158

The End.