132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for LostnC

Hello. I am a beginner. I have searched the past threads, but I haven't found any help. My assignment says to write a function to swap 2 values using pointers. Write a main function that inputs 2 numbers. Have it call the swap function if the numbers are NOT in …

Software Development c
Member Avatar for deceptikon
0
3K
Member Avatar for PulsarScript

Hi, how can i avoid of key beeing inserted into wrong location.If i do lets say 3 numbers ,5 digits long like 12345,23445,56745 and choose location 45,they will be inserted to location 45,but if try to insert 67452 to the same location it will be inserted,but i need it to …

Software Development c++
Member Avatar for StuXYZ
0
199
Member Avatar for diazv2

I want to create a login form by taking the text written on the notepad file in the same folder . is there anything that can help me

Software Development visual-basic
Member Avatar for diazv2
0
115
Member Avatar for SkateX

Question: It seems my code won't work while looping. It's a simple password verifier, however entering subsequent passwords will return the same invalid as the previous password. The simple answer might be to set boolean values under the do so they reset everytime the loop runs. But if I do …

Software Development java
Member Avatar for SkateX
0
561
Member Avatar for somjit{}

My Program is about Directed Graphs. It reads a list of edges like : `25 589` , and puts 589 into the adjacency list (a linked list) of 25. My input file has about 5 Million such `v w` edges, with about 800K nodes/vertices, for each of which there will …

Software Development c c# c++ file-system linked-list
Member Avatar for somjit{}
0
472
Member Avatar for jez9

I want to backup my database when a changes happen in my system,like for example i add new user/ update/ delete etc. I want to know wether it is possible or not?I'm not a pro user of vb.net that's why everything is still new to me :)

Software Development vb.net
Member Avatar for Santanu.Das
0
464
Member Avatar for billgreene1313

I've been working on a program that generates 100 random, 3-digit numbers and displays the sum of all 100 numbers. For every 10th number displayed, I'm trying to add a message next to the number stating " is the 10th number." So far, I've only been able to display said …

Software Development
Member Avatar for billgreene1313
0
202
Member Avatar for rony001

I am new to c# .I am having trouble to add a datagridview in the below code. can someone tell me how to do it? thanks using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.SqlServerCe; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace _35c { public partial class …

Software Development open-source
Member Avatar for rony001
0
889
Member Avatar for cypherscouter13

I am trying to compile the files below. The PosLin.cpp contains the SurTriAuto and SurTriPosRotAndQ functions below. Before adding SurTriPosRotAndQ, it compiled fine, but when I added SurTriPosRotAndQ, I am getting "invalid use of incomplete type ‘struct PosRotAndQ" error messages I was thinking I could try moving SurTriAuto and SurTriPosRotAndQ …

Software Development c++
Member Avatar for cypherscouter13
0
443
Member Avatar for Compton11

I'm currently reading about the JVM and how garbage collection works found here: http://www.oracle.com/webfolder/technetwork/tutorials/obe/java/gc01/index.html It discusses both the Mark and Sweep and the Generational garbage collection concepts. After reading through this tutorial, I'm confused on which garbage collection process the JVM actually uses. The whole time, I thought the JVM …

Software Development java oracle
Member Avatar for mike_2000_17
0
221
Member Avatar for bob.clyde.75

I have a code that suppose to prompt a user for thre numbers and output them in ascending order but i get the wrong results for example if i put in 476 it output 764 and i am trying to fix this and add the comments of havigng it prompt …

Software Development c++
Member Avatar for iamthwee
0
348
Member Avatar for Dani

This is a program I just recently completed for a computer science course. Given a 2D grid, where every path between two gridpoints has a weight (path length) associated with it, this program computes the shortest path from (1,1) to (m,n). You are only allowed to move up and to …

Software Development c++
Member Avatar for mohmedd
0
547
Member Avatar for safaklx

I have a question about game programming with c. I should add a background music on my game, and the same time i want to move my character on it. i used that way for solution PlaySound("sample.wav",NULL,SDN_SYNC); playing music ok but i cant move my character...

Software Development c
Member Avatar for safaklx
0
118
Member Avatar for saurabh.mehta.33234

I am want to delete the first line of text file using RandomAccessFile class. My Input file "bulkwfids.txt" has the data as below: 234567 345578 455678 566667 Expected output needs to be(first line deleted): 345578 455678 566667 But the actual ouput I am getting is as follows: 78 56 345578 …

Software Development java
Member Avatar for JamesCherrill
0
1K
Member Avatar for 00Gambit

from tkinter import * from random import randint #Return random color #RRGGBB def getRandomColor(): color = '#' for j in range(6): color+= toHexChar(randint(0, 15)) return color #Convert an integer to a single hex digit in a character def toHexChar(hexValue): if 0 <= hexValue <= 9: return chr(hexValue+ord('0')) else: return chr(hexValue …

Software Development python tkinter
Member Avatar for vegaseat
0
176
Member Avatar for Michelle_5

Is there any difference between visual basic 6 and 2010? SAP not working in vb 2010, help! :(

Software Development visual-basic
Member Avatar for jhaiyz
0
86
Member Avatar for jhaiyz

Anyone can help me out on how to code an updateable program? Any help would great!..

Software Development visual-basic
Member Avatar for jhaiyz
0
109
Member Avatar for fragrancehello

hi i have a excel file named as myexcel.xsls file and there are 10 sheets in that excel file named as summary,detail,kpi,orders etc etc.In excel sheet summary there are 5 tables in it named as Table1,Table2,Table3,Table4,Table5.Tables are created like I want to get Table1 records into the Data Table so …

Software Development
Member Avatar for ddanbe
0
677
Member Avatar for nate9603

I've compiled a working program, for whatever reason, is returning 0 values for the output. I'm not sure why this is happening. I've been troubleshooting this for hours and I can't figure it out. Any help would be much appreciated. Here is the full program's code: #include "stdafx.h" #include <iostream> …

Software Development c++
Member Avatar for nate9603
0
246
Member Avatar for negru

Hi. How to find index of first letter in every word in a string? For example, input string is: Programming Languages. Output should be: 0 12, those are the indexes of letters "P" and "L". I tried different approach, to print those numbers but that didn work. Thanks for the …

Software Development c c# c++
Member Avatar for TalhaMoazSarwar
0
184
Member Avatar for altjen

Hi every one. I post a topic similar with this at mobile development section but posted here too because I need help from a VB.net programmer I want to create a software for my windows phone 8.1 but already stucked on online database. I tried to use this VB code …

Software Development mysql vb.net
Member Avatar for altjen
0
685
Member Avatar for Extorza

Hello all, I have a problem with a program i'm trying to write. I only need 1 more thing to make it work properly, the textboxes that are filled in must be added or overwritten in an existing XML file. I know i need to work with XMLWriter, but i …

Software Development vb.net xml
Member Avatar for tinstaafl
0
159
Member Avatar for wegdan

i need to connect the data grid to access db using ado code and vb6 (without using adodc control)and diplay the result of a select statemet on it and here is the code that i am using (it give me a run time errorr 3705 : the operation is not …

Member Avatar for jhaiyz
0
4K
Member Avatar for Shanu_1

i am in need of coding for retrieving data from access database using combo box, which means retrieing the stored particular details that for eg, retrieving particular students details using the students id that is retrievied by combo box.

Software Development visual-basic
Member Avatar for jhaiyz
0
93
Member Avatar for ebaum2112

i am trying to make a checkerboard that centerss automaticly no matter what the sideLength is. also i am tryiing to put the checker in the squares...im only a beginner!!!! have mercy heres what i have [code] def drawCheckerBoard(myTurtle,sideLength): myTurtle.speed(0) for i in range (8): myTurtle.forward(sideLength) myTurtle.right(90) myTurtle.forward(sideLength) myTurtle.right(90) myTurtle.forward(sideLength) …

Software Development python
Member Avatar for ilona.lizard
0
225
Member Avatar for glao

Hello , I found this puzzle : typedef struct { int dd[ 5 ]; int tx; } node; node * A = new node[ 10000 ]; for ( int i = 0; i < 100000; i++ ) { for ( int j = 0; j < A[ i ].tx; j++ …

Software Development c puzzle
Member Avatar for glao
0
156
Member Avatar for Sara_9

how to print * ** *** **** ***** in java

Software Development java
Member Avatar for stultuske
0
263
Member Avatar for Tcll

as the title states, I know runpy can run a module's code w/o importing it, but what I'm trying to do is send the module object to a... function supplied by my interface which is directly called by the module. what I'm talking about is: my interface provides these functions …

Software Development python
Member Avatar for Tcll
0
543
Member Avatar for mdev

Hi again people, i have a datagridview with "Persons" hosted in a xml file. When i click ShowData button i get the "Persons" in datagridview. Also have a textbox control to filtering : private void toolStripTextBox1_TextChanged(object sender, EventArgs e) { try { //this code is used to search Name on …

Software Development
Member Avatar for mdev
0
133
Member Avatar for mdev

Hi again people, Who knows how to show value of the selectedRow in DataGridView on a messageBox? Thanks in advance.

Software Development
Member Avatar for mdev
0
3K
Member Avatar for mdev

Hi People, im new here. I have a app to register CandidatesForJob.. i have a datagridview and i load data from xml file. I Have a object with data. But my boss sad me to associate each row to my object. Who can help me? That button , open my …

Software Development
Member Avatar for mdev
0
171
Member Avatar for negru

Hi. I need help finding the longest word in a string. How to return last longest word if there are two or more words with the same (longest) length? My code: #include <stdio.h> #include <string.h> int main() { char string[100], word[20], max[20], min[20], c; int i = 0, j = …

Software Development c c# c++
Member Avatar for deceptikon
0
10K
Member Avatar for amogh.max

My code performs separation of "**S12*T0*0832*B*86*N1C0~**S12*T0*0832*B*86*N1C0~"...Next i need to separate data between the "*" and utimately insert it into the database(ms-Access).i would like to recieve some code lines for that. Basically now the entire string i.e"**S12*T0*0832*B*86*N1C0" is being inserted into a column.i need to insert "S12" "T0" etc into separate …

Software Development java
Member Avatar for JamesCherrill
0
185
Member Avatar for anumash

I have just started developing and writing linux kernel modules and device drivers. I am having a lot of trouble understanding new data types that I haven't encountered while writing application programs. For instance, I am having difficulty understanding what is the purpose of size_t, ssize_t, loff_t etc? Why use …

Software Development c linux-kernel
Member Avatar for mike_2000_17
0
254
Member Avatar for AmrMohammed

Greetings, I am new in Java programming language and I know that there are four platforms of the Java programming language Java Platform, Standard Edition (Java SE) Java Platform, Enterprise Edition (Java EE) Java Platform, Micro Edition (Java ME) JavaFX I already read about the four platforms through the below …

Software Development ide java oracle
Member Avatar for JamesCherrill
0
195
Member Avatar for DS9596

The output comes out wrong it should be different: //This is what I have Enter a sentence: Today Is Thr Jan, 2015 Number of uppercase letters.........2 Number of digits....................2 Number of vowels....................2 Press any key to continue . . . //The output should look like this: Enter a sentence: Today …

Software Development c++
Member Avatar for SalmiSoft
0
207
Member Avatar for Papa_Don

I need to identify how the code identifies that a file is at the "eof" (end of file). Here's why: On Monday's, I'm having to combine text files created over the weekend that will eventually be read and pulled into an Excel spreadsheet (generally there are three files). Using VB.net, …

Software Development file-system vb.net visual-basic
Member Avatar for |-|x
0
448
Member Avatar for Amulya_1

Hi, I'm trying to compare two CSV files (and many more like these below). I tried many ways, using lists, dictreader and more but nothing gave me the output I require. I want to compare all those rows that have same !Sample_title and !Sample_geo_accession values (whose positions vary). I've been …

Software Development python
0
184
Member Avatar for johnny blaz97

import tkinter top=tkinter.Tk() t=tkinter.Text(top,height=1,width=1,bd=2,font=10) t.grid(row=0,column=0) b1=tkinter.Button(top,height=2,width=8,bd=2,text="MC",fg="Red") b1.grid(row=1,column=1) b2=tkinter.Button(top,height=2,width=8,bd=2,text="Backspace",fg="Red") b2.grid(row=1,column=2) b3=tkinter.Button(top,height=2,width=8,bd=2,text="CE",fg="Red") b3.grid(row=1,column=3) b4=tkinter.Button(top,height=2,width=8,bd=2,text="C",fg="Red") b4.grid(row=1,column=4) b5=tkinter.Button(top,height=2,width=8,bd=2,text="MR",fg="Red") b5.grid(row=2,column=1) b6=tkinter.Button(top,height=2,width=8,bd=2,text="7",fg="Blue") b6.grid(row=2,column=2) b7=tkinter.Button(top,height=2,width=8,bd=2,text="8",fg="Blue") b7.grid(row=2,column=3) b8=tkinter.Button(top,height=2,width=8,bd=2,text="9",fg="Blue") b8.grid(row=2,column=4) b9=tkinter.Button(top,height=2,width=8,bd=2,text="/",fg="Red") b9.grid(row=2,column=5) b10=tkinter.Button(top,height=2,width=8,bd=2,text="sqrt",fg="Blue") b10.grid(row=2,column=6) b11=tkinter.Button(top,height=2,width=8,bd=2,text="MS",fg="Red") b11.grid(row=3,column=1) b12=tkinter.Button(top,height=2,width=8,bd=2,text="4",fg="Blue") b12.grid(row=3,column=2) b13=tkinter.Button(top,height=2,width=8,bd=2,text="5",fg="Blue") b13.grid(row=3,column=3) b14=tkinter.Button(top,height=2,width=8,bd=2,text="6",fg="Blue") b14.grid(row=3,column=4) b15=tkinter.Button(top,height=2,width=8,bd=2,text="*",fg="Red") b15.grid(row=3,column=5) b16=tkinter.Button(top,height=2,width=8,bd=2,text="%",fg="Blue") b16.grid(row=3,column=6) b17=tkinter.Button(top,height=2,width=8,bd=2,text="M+",fg="Red") b17.grid(row=4,column=1) b18=tkinter.Button(top,height=2,width=8,bd=2,text="1",fg="Blue") b18.grid(row=4,column=2) b19=tkinter.Button(top,height=2,width=8,bd=2,text="2",fg="Blue") b19.grid(row=4,column=3) b20=tkinter.Button(top,height=2,width=8,bd=2,text="3",fg="Blue") b20.grid(row=4,column=4) b21=tkinter.Button(top,height=2,width=8,bd=2,text="-",fg="Red") b21.grid(row=4,column=5) b22=tkinter.Button(top,height=2,width=8,bd=2,text="1/x",fg="Blue") b22.grid(row=4,column=6) b23=tkinter.Button(top,height=2,width=8,bd=2,text="M-",fg="Red") …

Software Development gui python tkinter
Member Avatar for vegaseat
0
1K
Member Avatar for iamthwee

Has anyone ever used tkdocs... http://www.tkdocs.com/ And if so what have been your opinions thanks.

Software Development gui python
Member Avatar for vegaseat
0
146
Member Avatar for Trevor_5

import java.util.Scanner; public class Program2{ public static void main (String []args) { Scanner input = new Scanner (System.in); int[] data = new int[256]; int inAscii; char inChar; String inString= input.nextLine(); for (int i = 0; i < inString.length();i++) { inChar=inString.charAt(i); inAscii=(int) inChar; data[inAscii]++; } for (int i= 1; i<256; i++){ …

Software Development java
Member Avatar for Trevor_5
0
253
Member Avatar for DS9596

Not working right, else is getting error. #include <iostream> #include <iomanip> #include <cmath> #include <string> using namespace std; int main() { // Declare variables below here int CORRECT, WRONG; double a, b, correct, result; char choice, answer; cout <<"Let's practice addition or subtraction with random integer numbers <100"<<endl; cout <<"---------------Math …

Software Development c++
Member Avatar for tinstaafl
0
161
Member Avatar for MustafaScript

x = 25 epsilon = 0.01 numGuesses = 0 ans = 0.0 while abs(ans**2 - x) >= epsilon and ans <= x: ans += 0.00001 numGuesses += 1 print 'numGuesses =', numGuesses if abs(ans**2 - x) >= epsilon: print 'Failed on square root of', x else: print ans, 'is close …

Software Development python
Member Avatar for vegaseat
0
2K
Member Avatar for ddanbe

Fill in your birthday in the DateTime structure and get your sign as a string. Get an extra (an element associated whith the sign) via the out parameter thanks to C#! This switch statement uses returns all over the place, so a break staement is not needed.

Software Development
Member Avatar for ddanbe
0
3K
Member Avatar for Niloofar24

Hello. I'm using Linux OS, Python 2 and the last version of Kivy framework. Here i have 2 files that i have typed them exactly as what i watched on a kivy tutorial video. Fist file is "main.py": from kivy.app import App from kivy.uix.scatter import Scatter from kivy.uix.label import Label …

Software Development operating-system python
Member Avatar for vegaseat
0
4K
Member Avatar for ankit,joy

Hello, Please tell me how to implement multi threading in C++ on Ubuntu 10.10. The compiler I use is GNU 4.5.2. I have some knowledge of multi-threading in Java. Explain with some codes if possible. Or please give the URL of any useful stuff

Software Development c++ multithreading ubuntu
Member Avatar for sumitlubal_1
0
234
Member Avatar for Wilderness Bob

I need to be able to limit the text entered into a text box, I need to make it so that only whole numbers can be entered and not decimal places. I have already limited it to just Numbers but need help with this. I think checking a box to …

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

Hi, I'm developing VB6.0 Project using SqlServer2008. After completing the project if i'm using MsAccess the .mdb file will be stored in Package but when i'm using SqlServer Which file shouli use or how can i use sqlserver for using in other system which are not installed SQLServer2008

Software Development visual-basic
Member Avatar for JerryFJustic
0
133
Member Avatar for chahinez.abdelo.9

Hello guys, i never worked before with java and it was told to me to make a solution of cloud computing private for my university and i don't know how or even which How choose the layer to develop. Can you just help me please.

Software Development cloud-computing java
Member Avatar for chahinez.abdelo.9
0
490
Member Avatar for cassie_sanford

My friend and i were having a discussion the other day and we were having a heated argument about how to make that dang diamond pattern in C++ code...does anyone remember how to make that thing? like this?[TEX] * *** [/TEX]

Software Development c++
Member Avatar for NathanOliver
0
442

The End.