132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for blue_Student

Hi, i have this project where the size, 2d array of size n is scanned from a file; asks for the vertex pairs from the command prompt until the user decides to stop inputting them. There is something wrong with my code because it skips the scanning of int variables …

Software Development c
Member Avatar for Ancient Dragon
0
518
Member Avatar for phephe

Hi, I am having trouble writing the code to work for my C# .Net assignment. I already design the form and now I have to get the code to work for my program. The problem I am having is if I put a number in my design form other than …

Software Development c#
Member Avatar for Armen_2
0
2K
Member Avatar for dan.doca

so i got a class going for making and showing tree elements, i need some help with the following: i need to display the leaves and the height of the tree. here is the code: // ar.cpp #include <iostream> #include <stdlib.h> using namespace std; class nod { public: char inf; …

Software Development c++ data-structure queue
Member Avatar for dan.doca
0
376
Member Avatar for Adox

Hello, I was wondering if someone could help me in this case. I need the program to open a txt file. But the User shall inform the location where the file resides. Can be by text. Example: "C: \ documents \ test.txt". To open files I know just the fopen.

Software Development c
Member Avatar for rubberman
0
231
Member Avatar for Srinivas_2

Hi All, I am trying to create a VB application where I will have to upload the Excel data into MS access automatically, can anyone suggest me a method as how to do it? Regards, Srinivas

Software Development vb.net
Member Avatar for Reverend Jim
0
144
Member Avatar for Gen_2

i really have a problem to this code. can anyone help me? Try Dim fBrowse As New OpenFileDialog With fBrowse .Filter = "Excel files(*.xls)|*.xls|All files (*.*)|*.*" .FilterIndex = 1 .Title = "Import data from Excel file" End With If fBrowse.ShowDialog() = Windows.Forms.DialogResult.OK Then Dim fname As String fname = fBrowse.FileName …

Software Development dataset sql vb.net
Member Avatar for Reverend Jim
0
162
Member Avatar for Lius

Hello guys, I have a project to save an image from canvas to file. I have tried googling for 3 days and nothing works. Can anybody show me how to do it. I have search from this forum and this is what i get. http://www.daniweb.com/software-development/java/threads/436548/saving-canvas-as-image " Create a new buffered …

Software Development html-css image java
Member Avatar for Lius
0
2K
Member Avatar for Sevyt

I have a WPF app which saves a few textboxes in a XML file. But for some reason sometimes it saves ok and the other time it does not. And the problem always is how it closes the XML file. For example, closing the XML file shoudl end with </Data> …

Software Development file-system xml
Member Avatar for Mike Askew
0
2K
Member Avatar for SkyCross

hello everyone. I am doing a program with c# DatabaseMicrosoftAcces And I got error Overflow. It points out in ExecuteQuery(); pls help me. Here's my code using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.OleDb; namespace sad { public partial class …

Software Development open-source
Member Avatar for Momerath
0
791
Member Avatar for kangarooblood

Hi there, I'm a real newbie to python so sorry if this is a stupid question or if I don't fully get your answer, no hate please! I'm trying to write a small program to use when calculating differential equations bu using Euler's step method, don't worry if you don't …

Software Development mathematics python
Member Avatar for rrashkin
0
367
Member Avatar for Emma_3

I'm trying to convert a number from any base between 2-36 to any base between 2-36. I have the conversion to base 10, but I'm having trouble getting it from base 10 to the desired base. Any ideas? I know part of this idea will work, I just can't get …

Software Development c++
Member Avatar for David W
0
521
Member Avatar for Gink

Currently JTextField aligns all text to the left side, how do you change it so all text typed into it goes to the right side instead?

Software Development java
Member Avatar for vrebo
0
146
Member Avatar for mystycs

I am trying to print my queue which has values in it. Right now i have this. for(int i = 1; i<ReadyQueue.size(); i++) { } But i am stuck now because i have no idea how to print a queue without popping it off the front. So now i am …

Software Development c++ queue
Member Avatar for David W
0
1K
Member Avatar for mystycs

I have a class below class CPU { public: void setPID (int a) { PID = a; } int retrievePID() { return PID; } private: int PID; }; And i am curious if you can create a queue into this class? I am trying to queue in a value into …

Software Development c++ queue
Member Avatar for David W
0
473
Member Avatar for Opsive

Hello, I am writing a little script that needs to get the timezone from an rss feed, and I am using [URL="http://www.feedparser.org/"]Feed Parser[/URL] to parse the rss feeds. The way that I am converting the date into Unix Epoch time is: [CODE] feedDate = feed['feed'].get('updated_parsed') or feed.entries[0].get('updated_parsed') feedDate = mktime(datetime(*feedDate[0:6]).timetuple())[/CODE] …

Software Development python unix
Member Avatar for Gribouillis
0
913
Member Avatar for chubbyy.putto

Here is question: Write a program that reads a string from the user containing a date in the form mm/dd/yyyy. It should print the date in the form March 12, 2012. #include<iostream> using namespace std; int main() { int mon; int day; int year; string month[] = { "January", "February", …

Software Development c++
Member Avatar for David W
0
1K
Member Avatar for memona.ali.5836

Write a program to get 3 numbers from user for integer variable a, b,and c. if a is not zero, find out whether it is the common divisor of b and c.

Software Development c++ programming-construct
Member Avatar for David W
0
207
Member Avatar for babyluxe03

can someone help me to identify what is wrong with my code? i recheck and recode it many times as possible but still cant figure out the one error. it doesnt run.

Software Development vb.net
Member Avatar for babyluxe03
0
245
Member Avatar for mystycs

How can i write it so that my program only accepts positive integers that are great than or = 0? I want my program to ask "How many devices do you wish to add?" And if a user enters a letter, or anything negative it will ask them to enter …

Software Development c++
Member Avatar for David W
0
19K
Member Avatar for Tsaou

I keep getting loads of linker errors that probably have something to do with virtual-functions/definitions and/or static class members... I've seen several relevant posts but none of the solutions suggested work, can you see wht the problem is here? My projects consists of 3 files: BALLS.H #include <iostream> using namespace …

Software Development c++ seo
Member Avatar for Ancient Dragon
0
511
Member Avatar for mystycs

I am getting an error on this code. Is it to do with whats in the while loop? How do i get it working? Basically i want to be able to take in letter or number variables, and each would output something, and if they type exit it breaks out …

Software Development c++ programming-construct
Member Avatar for David W
0
532
Member Avatar for mystycs

How can i create a input that only allows the letters a b c d The console will ask to please enter a letter. And they can only enter the letters a b c d. And if they enter it, it says thank you for enter a, or b or …

Software Development c++
Member Avatar for David W
0
315
Member Avatar for john.kane.100483

Ok this program is almost done. Some correction are still needed. Can anyone here put this in character array. #include<iostream.h> #include<conio.h> #include<stdio.h> char value; char t, u, v; char answer; void Binary2Decimal() { gotoxy(1,9);printf("[BINARY TO DECIMAL CONVERSION]"); char b2,f2=1,d2=0; gotoxy(1,11);printf("Enter a Binary number: "); scanf("%d", &b2); printf("\n\n"); while(b2>0) { if((b2%10)==1) …

Software Development c++
Member Avatar for David W
0
1K
Member Avatar for shaneetra.graham

cd just stays at this state: sgraham@myshell:/home/class/sgraham>cd .. sgraham@myshell:/home/class/sgraham>cd .. typedef struct { int argument; // userCom arguments char *arg[MAX_ARGS + 1]; // userCom arguments array char *Listcomm[MAX_COMMAND_SIZE]; char *input; // hold input file char *output; // hold output file } Command; int main() { Command userCom; //holds userCom struct …

Software Development c++
Member Avatar for JasonHippy
0
223
Member Avatar for ignnniter

If anyone can help me , I wanted to know how to use a progressbar while the sql query is executing. Just a "Beg"inner in VB.net here's my code: dataopen() cmd.Connection = con cmd.CommandText = "Select User_Name, userpass from Borrower where user_name='" & EmsTextBox1.Text & "' AND userpass = '" …

Software Development sql vb.net
Member Avatar for Reverend Jim
0
2K
Member Avatar for 21303359

How do i create images that move in the website? Like as soon as a user logs into the system there must be images sliding across a part of the page or news headlines (like they show in news reports on tv)

Software Development
Member Avatar for JorgeM
0
102
Member Avatar for thewalrus

public: Queue() : front(0), back(0) {} void put(TreeNode *ptn) { ListNode *tmp = new ListNode(ptn, 0); if (back == 0) front = tmp; else back->next = tmp; back = tmp; } TreeNode *get() { assert(front); TreeNode *result = front->ptn; ListNode *tmp = front->next; delete front; front = tmp; if (front …

Software Development c++ queue
Member Avatar for thewalrus
0
212
Member Avatar for foshan

Hi all, I am new to programming, and i'm working from a booik which has set me a challenge with a random jumble word program to pair the jumble word with a hint. I have been going round in circles trying to work it out, please help point me in …

Software Development python
Member Avatar for foshan
0
217
Member Avatar for CHETNA_1

i have declared two functions of void type.lets one function calculates value of variable 'c' and other of variable 'y' and when i cout them it comes out to be correct within the function.now i want to declare another function that compares values of 'c' and 'y' and return 1 …

Software Development c++
Member Avatar for panqnik
0
162
Member Avatar for aronno.amin
Member Avatar for panqnik
0
177
Member Avatar for jeffersonalomia

Can someone help me in my source code... my problem is, i need to check if there is an existing record on my current database(ms access 2007) here is my connection that i've place on module Public con As ADODB.Connection Public rs As ADODB.Recordset Public Sub connection() con = New …

Software Development microsoft-access open-source vb.net
Member Avatar for Reverend Jim
0
372
Member Avatar for asaidi

Hi is there a similar as eclipse entreprise workbench free.. i downloaded eclipse but my java programs does not work with this eclipse they were working with eclipse entreprise 2014 but this program is not free..and i m only learning java and sometimes c++ thanks

Software Development java
Member Avatar for JamesCherrill
0
136
Member Avatar for ignnniter

Having a problem setting up a login form for my project, here's the code: Imports System Imports System.Data.SqlClient Public Class Login Dim con As SqlConnection Dim cmd As SqlCommand Dim rd As SqlDataReader Private Sub dataopen() con.ConnectionString = "Server=IGNITER-PC\OBEXPRESS;Database=EMS;User ID=sa;Password=au" con.Open() End Sub Private Sub EmsStickyButton1_Click(sender As Object, e As …

Software Development sql vb.net
Member Avatar for cgeier
0
240
Member Avatar for Amoh

i want to learn how to program and become a professional programmer

Software Development
Member Avatar for rubberman
0
86
Member Avatar for rakesh.menon.16

2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 …

Software Development c
Member Avatar for rubberman
0
473
Member Avatar for Simran Kaur

Hi Friends, The general code in my project is as below: In Module: ---------- [code] Structure TopDataType 'UPGRADE_WARNING: Fixed-length string size must fit in the buffer. <VBFixedString(40),System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.ByValArray,SizeConst:=40)> Public TopName() As Char 'TopData.HDName Dim Catagory As Short 'TopData.Catagory Dim Status As Short 'TopData.Status Dim Deleted As Short 'TopData.Deleted 'UPGRADE_WARNING: Fixed-length string …

Software Development data-structure vb.net
Member Avatar for taiwoa
0
362
Member Avatar for shaneetra.graham

hello i'm trying to make this into a switch statment but i'm having trouble. Any help would be great!!! this is for a shell commands in C. if(strcmp(command->comm[0], "exit") ==0) //exit { printf("EXITING.....\n"); break; } else if(strcmp(command->comm[0],"history")==0) //history { int i=1; for(;i<hisSize;i++) printf(" %s ",history[i]); } //history end else if(strcmp(command->comm[0],"echo")==0) …

Software Development c++
Member Avatar for shaneetra.graham
0
119
Member Avatar for rock9449

I need help in writing a C++ program that converts 24-hour notation to 12-hour notation. (For example, it should convert 14:25 to 2:25 P.M. The input is given as two integers. There are three functions: one for input, one to do the conversion, and one for output. Record the A.M./P.M. …

Software Development c++
Member Avatar for deceptikon
0
8K
Member Avatar for thapzizo

why do we have to seal a classes if we know that it's not going to inherit to any class.

Software Development c c# c++
Member Avatar for deceptikon
0
101
Member Avatar for uonsin

Hi everyone and thanks in advance for the help. I have the following class that throws an error on compiling where i declase a vector of pointers I have an Engine class that I want to host multiple scenes objects stored in the vector sceneList and then pass which ever …

Software Development c++
Member Avatar for uonsin
0
346
Member Avatar for chenpaii

How can I insert splitted texts to my ms access database? I can't seem to find the logic in it. :( Please help me. Here are my codes: This is where i split the texts that are inputted in textBox1, textBox2, and textBox3 string items = textBox2.Text; string[] splittedText1 = …

Software Development microsoft-access
Member Avatar for castajiz_2
0
378
Member Avatar for pwolf

recently started learning java, going through the official tutorial and would like to check that the below code is a valid and correct solution to the following exercise ( [exercise 1](http://docs.oracle.com/javase/tutorial/java/javaOO/QandE/creating-questions.html) class Card{ // fields ------------------------------------------------------------------------------------------------------------- private static final String[] SUITS = {"Hearts", "Diamonds", "Spades", "Clubs"}; private static final String[] …

Software Development java oracle
Member Avatar for pwolf
0
347
Member Avatar for Sara Masri

Write A program that reads a statement of c++ langauge and prints a table of tokens and classes (keyword, identifier

Software Development c++
Member Avatar for Ancient Dragon
0
190
Member Avatar for Alex_20

Any good places to start learning Python? Websites/books/Youtube tutorials? Also any good editors, too?

Software Development python
Member Avatar for Alex_20
0
129
Member Avatar for 9tontruck

Hi, I have quite complicated XML strings coming from somewhere else and I need to parse it in C#. Because of the complexity of XML, I decided to use XmlSerializer after getting an xsd file. But my xml code never seem to work.. here is my myxml.xml: <?xml version="1.0" encoding="iso-8859-1"?> …

Software Development file-stream xml
Member Avatar for 9tontruck
0
421
Member Avatar for chenpaii

I've got this error: **Additional information: Data type mismatch in criteria expression.** I don't know why.. I want to use split text in a textbox and insert the splitted texts to ms access. Here is my code: string[] splittedText1 = textBox2.Text.Split(' '); string[] splittedText2 = textBox1.Text.Split(' '); string[] splittedText3 = …

Software Development microsoft-access
Member Avatar for cgeier
0
324
Member Avatar for bhagyap

hi.. I am working with an desktop application and i want to encrypt dlls after deployment.. Can anyone plz help me???

Software Development c#
Member Avatar for Rajeev Nambiar
0
999
Member Avatar for SkyCross

Hi everyone, pls help me with my problem. I got error (OleDbException was unhandled) (sysntax error in INSERT INTO statement) specifically, the error points out in "int temp = oleDbCmd.ExecuteNonQuery();" And, here's my code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; …

Software Development open-source
Member Avatar for SkyCross
0
366
Member Avatar for Sheeping

Hi guys, i have been all over google looking for proper examples that work with dword values, but i have found some examples online but nothing that worked for me. I've also read this http://www.dreaminco...istry-in-vbnet/ but that doesn't cover dword value reading. Actually i am kinda struggling to understand the …

Software Development vb.net
Member Avatar for G_Waddell
0
605
Member Avatar for Ghost

Hi Everybody, I was wondering if there was a way to find the most common letter/number/special symbol in a string. Thanks!! Thanks again in advanced, C++

Software Development java
Member Avatar for JamesCherrill
0
3K

The End.