132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for JohnMcPherson

I am working on a program in Pro*C that uses fscanf to read a CSV file. This is a naive CSV file, with no commas allowed in the strings, and it is packed, with no whitespace between the fields. I read in a header record, which has some important information, …

Software Development c
Member Avatar for deceptikon
0
957
Member Avatar for mjbor1

hello i have a problem in cin characters this is my code //file LE.h struct nodetype; const int SIZE=81; typedef char dataline[81]; typedef nodetype *nodeptr; class LED { public: LED(); ~LED(); void insert(dataline lines); void Delete();//delete currnt line void move(int num); int cnt();// To Find Number Of Nodes. void list(); …

Software Development c++ linked-list
Member Avatar for Ancient Dragon
0
134
Member Avatar for vegaseat

Python is entirely object oriented and using classes is made relatively simple. Beginners have a certain angst when it comes to using classes. There is a hump in the learning curve, which I like to overcome with this example. Inheritance really makes sense and saves you a lot of extra …

Software Development python
Member Avatar for Ene Uran
0
1K
Member Avatar for tealpenguin

I'm having trouble with a couple of things in my program. I want to create 3 different players and then record their scores to a file called highScores.txt I need to also come up with another game that features an array in it (i would put this in the place …

Software Development c++
Member Avatar for NathanOliver
0
218
Member Avatar for kshahnazari

have a simple question about working with files . when Im reading a txt file like this example Hello how are you. fine thank you. when I read it how can I find out there was an endline or not ?

Software Development c++
Member Avatar for deceptikon
0
113
Member Avatar for oneoderja

Your demo code is required to (DO NOT manually print out, write a FOR loop to do it) 1. print all white furniture 2. print the total cost of all furniture in the array. // How do i print these using my code: public class FurnitureDemo { public static void …

Software Development java
Member Avatar for JamesCherrill
0
224
Member Avatar for aravind326

Hi, I have a text file, which i need to make sure is not getting modified. I have to mail this file to people and the file should not be modified by anyone in transit. What would be the best way to accomplish this. Posting it here because I was …

Software Development java
Member Avatar for JamesCherrill
0
127
Member Avatar for Violet_82

Hi there, as I am learning java (providing I will have the time to keep going!) I was wondering if there is anywhere I can find some simple exercises to practice with. At the moment, as an introduction, I am reading a java for dummies book, so I am still …

Software Development java
Member Avatar for Violet_82
0
122
Member Avatar for MrsWhit

I have been working on this for a while and keep getting error after error. It seams like every time I fix something, I get an error for something else. This is the main class. import java.util.Scanner; //for scanner class public class ArrayOps { private int[][] numbers; //Holds a 2D …

Software Development java
Member Avatar for gavinflud
0
195
Member Avatar for marius2010

Need help with this code, it counts only the second after "And".And if it possible to do like if cell("2.3")<point reenter else Range.. Is it possible to do aritmetics with cells or do smth with other operators? Sub hugo() Dim point As Double InputBox ("Enter The Closing Point(Between 1.1-1.6)") If …

Software Development visual-basic
Member Avatar for tinstaafl
0
123
Member Avatar for arcticman452

I have 2 JComboBoxes that are using an itemListener, right now the code I have compiles but when I call for tankSize and fuelCost to complete my calculations nothing is returned and my answer is always zero. What do I need to change so the variables transfer to tankSize and …

Software Development java
Member Avatar for arcticman452
0
133
Member Avatar for charuwaka

**********************************please see the image first link given below********************************* I have made a crystal report to assign a database to it i created a module with following code and added this module to my form Imports System.Data.SqlClient Imports System.Data.Sql Module Module1 Public acscmd As New SqlCommand Public acsconn As New SqlConnection …

Software Development dataset open-source vb.net
Member Avatar for john.knapp
0
469
Member Avatar for Zubenna

![GUI](/attachments/large/4/GUI.jpg "GUI") ![GUI](/attachments/large/4/GUI.jpg "GUI") My name is Nnamdi. I am a new member in this forum. I am learning Java programming and how to develop Java GUI application. In my learning process, I have encountered the challenge stated below. My question: I am writing an application to properly align the …

Software Development gui java java-swing
Member Avatar for Zubenna
0
878
Member Avatar for munchlaxxx

After you enter a name, it just prints out "Would you like to convert another name? (y/n) " it doesn't even give the user a chance to enter anything and it doesn't print out the converted name. It just ends...Why? #include<iostream> #include<string> using namespace std; void conversion(char name[]); void lowercase(char …

Software Development c++
Member Avatar for Gonbe
0
2K
Member Avatar for ChrisHunter

Now then, It's not often I start a thread but I'm struggling to find the answer after a lot of tries on Google. The issue is that I have a "Profession" comboBoxCell as well as a "Discipline" comboBoxCell which is populated/ repopulated with a short list of disciplines dependent on …

Software Development asp.net vb.net
Member Avatar for james6754
0
2K
Member Avatar for cee_karthi

Hi ALL, Plz tell me how to retrieve data from mysql using vb.net as frontend. I created database in mysql and able to insert data from vb.net but i dont know how to retrieve data from mysql. Plz help me to perform this action. Plz post your reply for my …

Software Development mysql vb.net
Member Avatar for Reverend Jim
0
4K
Member Avatar for tingwong

Hi everyone, I have a project that creates a Train that pulls Boxcars. The boxcar is supposed to be generic type and have attributes such as load that adds only a specific type of object to the boxcar. The train is supposed to pull all boxcars created. I have written …

Software Development java
Member Avatar for JamesCherrill
0
340
Member Avatar for komabasi

write java programme, using DO and WHILE to approximate 22/7 (pi)= 4-4/3+4/5-4/7+4/9-4/11+4/13..

Software Development java
Member Avatar for subramanya.vl
0
480
Member Avatar for vikarna

echo "show run" the above commands gives input to terminal of router and then displays output on terminal. i want the output of this specific command to be redirected to the file. please help me

Software Development shell-scripting
Member Avatar for Watael
0
139
Member Avatar for yorro

My [B]first column does not align to center[/B], although the sub-columns aligns perfectly [CODE=vb] Listview1.Columns.Add("Column1", 100, HorizontalAlignment.Center) Listview1.Columns.Add("Column2", 100, HorizontalAlignment.Center) Listview1.Columns.Add("Column3", 100, HorizontalAlignment.Center) [/CODE]

Software Development listview vb.net
Member Avatar for ImZick
0
1K
Member Avatar for tsegaighere

Hey guys!!!I am a senior majoring in computing science and I was wondering If u have some ideas for my final year project which I plan to do in JAVA!!I was thinking of animating sth but I cant see how practical JAVA is for that!!! ANY IDEAS?????

Software Development java
Member Avatar for rotten69
0
336
Member Avatar for utchia

hi i have been working on my project to create a store and i have to add items and sell items, and once i add items i store them into a textfile separated by commas, and i made the add item button work perfectly but i am having trouble with …

Software Development java java-swing
Member Avatar for Majestics
0
580
Member Avatar for Atlanta15Braves

I need to sort these strings in order and I have changed the code of my program which use to sort integers and now I need it to sort strings and I cannot get it to work, any help..... import java.util.Scanner; public class Strings { // -------------------------------------------- // Reads in …

Software Development java
Member Avatar for subramanya.vl
0
221
Member Avatar for strungoutfan78

Hi all. I've taken a long break from my C++ studies but I'm now being shoved into finding an internship for school so I figured I'd play around and brush up on my coding. I've written this simple tabata countdown timer and I would like opinions on how it could …

Software Development c++ debian
Member Avatar for strungoutfan78
0
189
Member Avatar for Neversleepin

Hi everyone, i want to set input verifier for a jspinner when the user click a value and if the value is out of range (0 to 10) it must display a message like "Please enter a value between 0 to 10" and it must validate until the correct value …

Software Development java java-swing
0
163
Member Avatar for cyberdaemon

Good day, I was stock in the middle of developing a simple application. All i want is to bind the data into gridview, everything is fine when i binding into a single table. i need to bind my gridview using two table. my stored procedure is wroking correctly. here is …

Software Development
Member Avatar for BhuvanRam
0
194
Member Avatar for ponnu

L1.ListItems.Clear Dim li1 As ListItem Set li1 = LV1.ListItems.Add() While Not (rs.EOF) li1.Text = rs(0) rs.MoveNext Wend rs.Close

Software Development display listview visual-basic
Member Avatar for ImZick
0
170
Member Avatar for Depreciated

Greetings I have a USB RFID scanner. While I have this form1 up, I want to send any keyboard input and put it in a textbox which is in another form(say form2). I tried using this code but to no avail. The first form is named "MainMenu". Every time of …

Software Development asp.net vb.net
Member Avatar for Depreciated
0
746
Member Avatar for nivarshn

I am using Visual studio 2005(.NET framework 2.0) .My project is window application and using c# language. We are having word templates created in office 2003, 2007 and 2010. I want to search text (string) in word template (.dot/.doc/.docx).This text is exist in two places in word doc : 1) …

Software Development c c# c++ seo visual-studio
Member Avatar for NanaYee
0
1K
Member Avatar for msnyder0019

Hello, I am trying to build a Football Scoreboard and I have performed alot of editing but I am getting hung up on this error Error 1 Variable 'strScore' hides a variable in an enclosing block. C:\Users\Michael\AppData\Local\Temporary Projects\WindowsApplication1\Form1.vb 41 17 WindowsApplication1 it keeps referring to this line of code -Dim …

Software Development visual-basic
Member Avatar for tinstaafl
0
137
Member Avatar for XodoX

Hello, I'm looking for a CSV parser and I found this example.... package com.ibm.ccd.api.samplecode.parser; import java.io.BufferedReader; import java.io.StringReader; import java.util.ArrayList; public class CSVParser { String oneRes; private String line = ""; private int nbLines = 0; private BufferedReader reader; public CSVParser(BufferedReader reader) { this.reader = reader; } public String[] splitLine() …

Software Development api google-api java
Member Avatar for Taywin
0
131
Member Avatar for Programmer629

Hey guys. I was wondering if u could help me with some code i was working on. im making a program like notepad called wonder notes. so far its goin pretty good but i was wonder if u could help me with some code. i want the program to load …

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

Hi,Im converting VB6 code to VB.net..i got following code from converter In vb6 myForm.show vbModal method is triggering Got_Focus event. But in the foll code,showDialog() method is triggering Load event.I need Enter evwent to be triggered which is equivalent to Got_Focus. Is it possible to do so?? pls help me. …

Software Development vb.net
Member Avatar for tinstaafl
0
139
Member Avatar for NewUser22

Hello, I'm just having a heck of a time trying to figure our the answer(s) to the following questions: 1. Declare a struct type, Time, that represents an amount of time consisting of minutes and seconds. 2. Write statements that assign the time 6 minutes and 54 seconds to a …

Software Development c++
Member Avatar for Ancient Dragon
0
303
Member Avatar for bangla

Excel cell(1,2) has data with blank lines as: " vb is hard language. test data. test vb. " I want to change to without blank lines as " "vb is hard language. test data test vb" Below code is not working. Please please help. ---------- Set ExcelApp = createobject("Excel.Application") ExcelApp.Visible …

Software Development vbscript visual-basic
Member Avatar for bangla
0
1K
Member Avatar for ailen.samson

Hi everyone. I am having a hard time modifying this code, I'm really new to python and I am trying to find the closest pair among the 10 input integers from a user. Here's my code so far and there is a syntax error... a = [0,1,2,3,4,5,6,7,8,9] a[0]=input() a[1]=input() a[2]=input() …

Software Development python
Member Avatar for woooee
0
905
Member Avatar for Carlsn

I need help with creating a program that produces a daily report for a store. I'm really bad at computer science so I'm not even sure where to start on this! Here are the instructions: Write a Python program to accomplish the following. Use modular design. Include at least 3 …

Software Development data-science python
Member Avatar for woooee
0
657
Member Avatar for nima.narim

I need graph coloring code in C# using four color mapping can any one help me?

Software Development
Member Avatar for Momerath
0
222
Member Avatar for daino

Heyall. I'm trying to use the sqlite3_exec function and am having trouble with the callback feature. I've placed my code below. I realise the callback function provides and argument void *data and the sqlite3_exec function provides a const char *data variable. That is where I'm getting the error. I've searched …

Software Development c++
Member Avatar for Ancient Dragon
0
823
Member Avatar for charles.darwin

Hi guys. im writing a program to check an input string (a password) for its level of security (strong, medium, weak). here is my code for the method: public static int passwordType(String password) { //0weak, 1medium, 2strong int hasSix = 0; int upper = 0; int lower = 0; int …

Software Development java
Member Avatar for charles.darwin
0
160
Member Avatar for ian.murray.33821

hi, im using microsoft visual studio to make a game the game consists of a random number generator which ive completed and is working fine, when it generates a 7 a message tells you that you have a lucky seven, you get five goes at this then a message tells …

Software Development gui visual-basic visual-studio
Member Avatar for ian.murray.33821
0
215
Member Avatar for marnun

It seems I don't understand completely reading from and into files, line by line. Here is my code that is supposed to read lines of two file, into string variables, I assume, and then write them into third file: *line of first file line of second file .... so on …

Software Development c++
Member Avatar for marnun
0
280
Member Avatar for sheikh zohaib

hey all i am new to all this languages and Computer sciences so if you help me i am trying to write a code and its constantly giving me errors here is the code at line 10 , 102 , 115 tell me how to fix it.. waiting... #include<iostream.h> void …

Software Development c++
Member Avatar for sheikh zohaib
0
179
Member Avatar for stharmon

Hi All, I am sed and awk illiterate and needed some assistance. I would like to write a script that will have sed replace all spaces with \space. For example. Program Files would be... Program\ Files I can figure out how to replace the space with a backslash, however, when …

Software Development shell-scripting
Member Avatar for wickedjargon
0
233
Member Avatar for pilotkid424

I am trying to create a function which adds an array to another array and replaces the data in the 1st array with the new data. For example, A=A+B. However, when I write my code as below, I get the error C2676:binary '[' : 'const Matrix' does not define this …

Software Development c++ mathematics
Member Avatar for pilotkid424
0
226
Member Avatar for jlillie

Hi Guys, I'm stressing out over this project. The majority is done. I keep getting an buffer errors. I'm stuck and can't figure it out. I did call stack and it took me to the last parenthesis in main. The closing parenthesis. Also I can't figure out why my card …

Software Development c++
Member Avatar for vmanes
0
166
Member Avatar for rachelmorg

hey this sounds like a really simple question to me but I can't seem to figure out how to do it! My code so far is public class numbers { public static void main(String[] args) { final int N = (args.length); for (int i = 0; i < N; i++) …

Software Development java
Member Avatar for rachelmorg
0
3K
Member Avatar for restrictment

I keep getting errors and I don't know why.. #include <iostream> using namespace std; class IceCream{ private: int flavor[3]={0,0,0}, topping[3]={1,2,3}, scoops[3]={4,5,6}; public: int getFlavor(int); int getTopping(int); int getScoops(int); void setFlavor(int); void setTopping(int); void setScoops(int); }flavorX, toppingX, scoopsX; int IceCream::getFlavor(int choice){return flavor[choice];}; int main() { cout << flavorX.getFlavor(1); system("PAUSE"); }

Software Development c++
Member Avatar for mike_2000_17
0
144
Member Avatar for pars99

Is it possible to have a piece of C++ code display a picture and how? I want to display something for my Uncle's employees at a conference were holding with them and I don't know how to display pictures, if there is a way.

Software Development c++
Member Avatar for deceptikon
0
202
Member Avatar for serita.v.campbell

ok i dont quite know why i keep getting these error in my program.. here is the program: #include<stdlib.h> #include<stdio.h> #include<math.h> Void open(void); int read(float*); float average(float*); void write(float*,float); void close(void); FILE *fptrin,*fptrout; main() { float number[10],non,ave; open(); read(number); non=read(number); ave=average(number,non); write(number,ave,non); close(); return(0); } void open(void) { fptrin=fopen("avg.dat""r"); if(fptrin==0) …

Software Development c++
Member Avatar for Gonbe
0
208

The End.