132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for zeusZ

hi thisis my first post here, what i need to know is how to read/write files using visual basic 9 (visual studio 2008) its different in vb6 and vstudio for open (text) as (int) for output for those who have or r familiar with vstudio 2008, i took the "windows …

Software Development vb.net visual-basic visual-studio
Member Avatar for Jx_Man
0
174
Member Avatar for ohhmygod

I got this code here, i wonder why it doesnt put in the file "in.dat" in the same folder. [CODE] #include <stdio.h> #include <stdlib.h> #define N 20 //Number of trials void main(void) { FILE * pFile; float data[N][2]; int i,j ; char overwrite; for(i=0;i <= N ; i++) /* Initinalize …

Software Development c file-system
Member Avatar for Ancient Dragon
0
230
Member Avatar for Gerlan

Okay I have a small problem. I have to load a file which contains (for example): a bleh b blah c bloh So basically it contains a character(1,2,3,..etc) followed by a string (bleh,blah,bloh etc..) I have to create a struct which should contain a char and a string, they will …

Software Development c++
Member Avatar for Abzero
0
97
Member Avatar for picass0

i trying to input the text from a text file into a byte buff[]. When i did this byte buf1[] = word; it will prompt me with "initializer fails to determine size of `buf1' " and invalid initializer error. How am i able to pass in the text of my …

Software Development c++
Member Avatar for vijayan121
0
147
Member Avatar for K?!

Hello I'd like to create a hover effect for JButtons, but i can't find it for the moment. It doesn't have to be antything spectacular, it just has to be visible. Thanks in advance. Greets, K?!.

Software Development java
Member Avatar for K?!
0
9K
Member Avatar for thegrovesy

Hi all, I am in the process of creating a music library, and want to keep the different layers of implementation separate. My current plan, and understanding has my application divided up like this: 1. GUI Layer, talking to... 2. Music object (and implementation) Layer, talking to... 3. Data Storage …

Software Development gui storage
Member Avatar for macu
0
111
Member Avatar for martonx

Hi Everyone, I have a C++ program lesson, but i can't to do it. I have a binary file with structured datas. I have to read the datas, and take into a class (structure array). Here is my code: [CODE]#include <iostream> #include <fstream> using namespace std; struct dolgozo { char …

Software Development c++ visual-basic
Member Avatar for martonx
0
104
Member Avatar for mertucci

Question is: "Implement a Person class that includes data members to represent name, address, and identification number. The class interface includes methods that provide appropriate access to the data members. Derive a CollegeStudent class and a Professor class from Person. Each of these derived classes should add appropriate data members …

Software Development c++
Member Avatar for mertucci
0
179
Member Avatar for bhoot_jb

hey friends i am working with a program of "stack of stack".....and i thought to work it out using inheritance....but i m stuck in it... i thought to inherit both the stack - the parent stack and a stack element....from a single base class.. i mean i am in dilemma …

Software Development c++
Member Avatar for bhoot_jb
0
153
Member Avatar for midimatt

Just been looking over Dynamic Memory Allocation, using new. Heres a snippet of the code i've got. [code=c++] vertices = new float *[v]; for (i = 0; i < v; ++i) { vertices[i] = new float[3]; } [/code] what i was thinking was could i just do [code=c++] vertices = …

Software Development c++
Member Avatar for bugmenot
0
133
Member Avatar for n.aggel

hi to everyone, In this semester we are having a class concerning High Performace computing / Parallel processing... In short i have the following questions: --- We are using pthreads and C. I think that i can use pthreads in c++ code but is there any way to use threads …

Software Development c++ matrix-multiplication
Member Avatar for n.aggel
0
174
Member Avatar for joshmo

Am trying to extract a string of characters and numbers from a text file into two different data types in a linked list...i.e the if the text file has the data myname 100 i want the "myname" to be stored as a string and then the 100 as an integer..can …

Software Development c++ linked-list
Member Avatar for joshmo
0
3K
Member Avatar for olibara

Hello I want to know if is it possible to avoid the pop-up of a contextmenustrip (below mentionned as ctxs) Explaination : In a Picture Box I've defined a ctxs Mousedown right doesn't display it Mouseup right display it I want to avoid the display if during the mouse down …

Software Development display
Member Avatar for sanjayNawab
0
265
Member Avatar for RenjithVR

Hi , I am using openRTSP test program. In the make file i used debugg option. But when i tried to debugg for example : "b 320", i got the following error. No line 24 in file "init.c". I don't know about this error. But gdb is working fine. For …

Software Development c++
Member Avatar for RenjithVR
0
134
Member Avatar for neilconnexios

I'm a beginer in C++, and I've read number of posts regarding reading CSV files but have not understood how to convert them in to an array my file reads just numbers that are seperated by tabs 23 34 67 78 45 56 89 90 23 45 79 23 33 …

Software Development c++
Member Avatar for Nick Evan
0
335
Member Avatar for alpe gulay

I made a simple program in which will connect to ms sql... then, after running the codes something is error! can you help me to solve this out... here is my code: import java.sql.*; public class connect_sql { public static void main(String args[]) { Connection con = null; try { …

Software Development java mssql
Member Avatar for alpe gulay
0
143
Member Avatar for Cosa

Hi, i have a function which is supposed to compare two matrices, however i does not work properly. I get this compile warning. [code] warning: control reaches end of non-void function [/code] Here is the function. [code=c++] bool matrix::isequal(const matrix& ob3) { for (int i = 0; i < rows; …

Software Development c++
Member Avatar for Nick Evan
0
144
Member Avatar for BigFormat

I have to pass a string to a function that strcats something to it, in K&R I read to pass a pointer to it, but I don't know where to allocate buffer... Is there a difference betw passing an empty string or not? My printf starts with some strange symbols, …

Software Development c
Member Avatar for BigFormat
0
2K
Member Avatar for Traicey

I have 2 integers x and y, now I want to read them from the user and the syntax kick me down, I guess u can only read string from the user according to C# syntax rule, I have tried many combinations but none of them are working, so now …

Software Development
Member Avatar for majestic0110
0
134
Member Avatar for SNN

Hi all , I have loop and I would like to calculate an expression only when the index is even for($j=0; $j<=100; $j++){ if ( ){ do the expression } } i.e how do I tell perl to do the if statement when $j is an even number? Thanks

Software Development perl
Member Avatar for KevinADC
0
58
Member Avatar for ebebcb

I'm trying to write a program that first decides if a number is prime, and if it is writes it to a file I created. I'm obviously having problems (or I wouldn't be pulling my hair out and posting this). First, the errors say an identifier expected after the "public …

Software Development file-system java
Member Avatar for javaAddict
0
75
Member Avatar for eec322

I'm suppose to create a problem that displays the contents of a file (that the user inputs), and then displays each line with a number in front and a colon after it. So, line 1 and 2 would print out: 1 lineFromFile : 2 lineFromFile : But, it keeps printing …

Software Development java
Member Avatar for alpe gulay
0
174
Member Avatar for yazooney

Hi, I'm not sure if this is the right thread, but here goes. I have a program installed which shows the live price of a product i am interested in (i.e. the price changes every couple of seconds). Now I cant access the programs source code to get the price …

Software Development c++
Member Avatar for Salem
0
138
Member Avatar for kux

hello, I have the following problem I have an unsigned long variable, but it is designed to hold values within 0 .. 100 ( I know an unsigned char would have been enough, but i have to use an unsigned long ). I have to write that value in a …

Software Development c++
Member Avatar for Salem
0
195
Member Avatar for u4umang2001

IN C#::: i have a string string abc="40+40*4.2%+100" now how can i get the result????

Software Development c#
Member Avatar for corwing
0
148
Member Avatar for gotm

i am completely stumped at how to create this program. can anyone help out? here are the guidelines. Introduction Perhaps in no other sport does statistics play as major a role as in the game of Baseball. In fact, certain numbers, such as 56 (length of Joe DiMaggio's hitting streak), …

Software Development career python user-interface
Member Avatar for jrcagle
0
140
Member Avatar for flash121

Hello I have an abstract class called Number and a simple derived class called Double, which has a private variable value and a function called getValue() which returns the value; I also have a vector of pointers of type Number which are pointing to Double. code: [code=c++] ... vector<Number*> v1; …

Software Development c++
Member Avatar for bugmenot
0
138
Member Avatar for mertucci

Question is: "Write a complete program that writes into a file from an array of string and also in reverse order." Please help

Software Development c++
Member Avatar for joshmo
0
96
Member Avatar for Cafetero

I am trying to write a program that takes email addresses out of a text file (for easy copy paste) but when it finds one and prints it to the console it skips to the next line. So if there are two email addresses in one line it will only …

Software Development c++
Member Avatar for Duoas
0
158
Member Avatar for urmybaby

As basis for the assignment, we use a CSV file named country.csv in which information about countries is recorded. This file is posted on the assignment Web page1. The first line in the file is the header line and describes the content of each column. The first value in a …

Software Development file-system python session
Member Avatar for kdoiron
0
86
Member Avatar for tondeuse34

Hey guys, I've started using Tkinter now and I've came across a problem...Here in the code below i just want a drop box style menu to appear and when i click that option, theres more options. When i click for example their would be a box called Addition, you would …

Software Development python tkinter
Member Avatar for Capt.Micro
0
121
Member Avatar for Maulth

I've posted something along these lines before, but it's a tad bit different this time, hopefully some of you can point me in the right direction. I'm designing a tool that will make adding things to a database easy for people not familiar with SQL, it will basically export a …

Software Development c++ sql
Member Avatar for Maulth
0
177
Member Avatar for marti3a3

So I'm trying to create 4 arrays with data input from a .dat file, and for some reason it won't. The file has four columns, and I want four arrays with the info from each column seperate. For some reason, I'm having trouble doing that with the following code (minus …

Software Development c++
Member Avatar for marti3a3
0
85
Member Avatar for InfernalDrake

Maybe my question is odd, or maybe already answered, but i didn't knew another way of searching a solution (the title i selected may get an idea of how weird is it) Its quite simple, i'm creating an application that has a command prompt, this is, like ms-dos the C:\>_ …

Software Development c
Member Avatar for InfernalDrake
0
79
Member Avatar for aditya_amb

I am not able to display dataset. Can anyone help me out? Here is my code: Imports System.Data Imports System.Data.SqlClient Imports System.Windows.Forms Imports System.Data.OleDb Public Class Form3 Inherits System.Windows.Forms.Form Private WithEvents DataGridView1 As New DataGridView Private Sub Currdbbtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Currdbbtn.Click Dim objConnection As …

Software Development dataset display vb.net
Member Avatar for aditya_amb
0
193
Member Avatar for khaled_nagaty

Hi all, After I open a connection between an Access database and my project I try to drag the database node onto the Windows Form but it always fail I am not able to create an OleDbConnection to the data source. How this problem can be solved? regards Khaled

Software Development open-source
Member Avatar for fishsqzr
0
128
Member Avatar for aastephen

//person class class Person { //private: public: char name[30]; char type[20]; char date[10]; char id[10]; Person(char pname[],char ptype[],char pdate[],char pid[]); void addPerson(); void personDelete(); char personFind(char pid[]); }; //this function find with id and return the name of the person char Person::personFind(char pid[]) { fstream readFile; readFile.open("employee.txt",ios::in); if(readFile.fail()) { cout<<"Cannot …

Software Development c++ ios
Member Avatar for n1337
0
120
Member Avatar for toolbox03

How do i print timestamp to a text file? any sample codes?

Software Development c
Member Avatar for jephthah
0
99
Member Avatar for Mackjan

Hi How can I stop a loop, this function sort my list as I wish but I want to stop it when it done the task. I have a list x = [4,4,2] and during 15 attempt I want to sort it like that x = [1,2,3,4], if the function …

Software Development python
Member Avatar for Mackjan
0
110
Member Avatar for Xyhm

I've developed a program that communicates with another program through anonymous pipes set up by the other program (not written by me). The problem is that my program keeps crashing as soon as I add something more than just receiving the info. For example, if I add a simple "showMessage", …

Software Development delphi pascal
Member Avatar for Duoas
0
112
Member Avatar for bhargsy

Hello All, I new to this forum and C++. Searched a lot on the web, but could not find help anywhere. I have two directories under each of which, I have multiple .cpp files. Each of the directories have a one .h include file that contains function declrations for all …

Software Development c++
Member Avatar for bhargsy
0
87
Member Avatar for Jennifer84

I have a problem with sorting a vector in a specific order. As seen below I am putting 4 strings into a vector like this. The result of the sorting that I am after is like this: (Highest Value at the top and the Lowest Value at the Bottom) [B]20A …

Software Development c++
Member Avatar for Duoas
0
150
Member Avatar for geisteskrankhei

Basically, I have to make a code that requests user input. The program asks them to tell me how many columns/rows the user wants the magic square to have. I need to then generate random numbers for each spot. ex: user inputs 3, out put looks like 3 7 1 …

Software Development java
Member Avatar for Ezzaral
0
181
Member Avatar for andy_aphale

hey programmers, i need some help. i want to devlop a program which accept any three number or alphabets or symbols from user and show output as all the possible combinetion of the entered number or alphabet or symbols. pls guys give me complete program code its urgent.

Software Development c++
Member Avatar for Salem
0
144
Member Avatar for bagi

Hi all, Once I started learning C#, really much enjoying it. I faced some problem using GUI. I m trying to draw ellipse as many as possible with mouse moving events, but theres problem.... My code here: private void Form1_MouseDown(object sender, MouseEventArgs e) { myRect.Width = 0; myRect.Height = 0; …

Software Development gui
Member Avatar for puneetkay
0
95
Member Avatar for puneetkay

Hie guys, Im creating a program that will display the details of every state of India when user will click on that states button. I have two forms: Main.cs = MdiParent form for program. India.cs = Where map of India will be displayed including buttons of every state. So what …

Software Development gui
Member Avatar for puneetkay
0
98
Member Avatar for Onixtender

Hi, I've have a problem of printing data from stack, if it's simple words,then stack works just fine,but if I try to push changed data using function(Written by a very intelligent moderator :) ), I get just the same word n times: Intelect Intelect Intelect .... [code] #include<stdio.h> #include<stdlib.h> #include …

Software Development c
Member Avatar for Onixtender
0
182
Member Avatar for bhuwanrc

[code=cplusplus] void fishing(vector<Fish*> &basket); int printBasket(vector<Fish*> &basket); int main() { vector<Fish*> FishVec; Fish* aFish; int totalweight=0; int i=0; while (totalweight<15000) { fishing(FishVec); aFish=FishVec.at(i); aFish->printMe(); if (aFish->acceptable()) { totalweight+=aFish->getWeight(); cout<<"total weight:"<<totalweight<<endl; cout<<" Has been put in the basket"<<endl; } else { cout<<" Was released"<<endl; } i++; cout<<endl; } } void fishing(vector<Fish*> …

Software Development c++
Member Avatar for Salem
0
79
Member Avatar for himanjim

[B][I]I've designed a simple applet that works fine on My Windows Xp but when I upload it on my webhost server or run it through any server for e.g. Tomcat It shows the following error in Java Console but no error without server [/I][/B] [B]Java Plug-in 1.6.0_02 Using JRE version …

Software Development client-server java windows-server
Member Avatar for jasimp
0
114
Member Avatar for mbarriault

I have a class (for the mathematically inclined, it's a tensor class that allows me to work with tensors of any rank and dimension), and I'm trying to set up assignment in a particular way, but having trouble. The idea comes from the vector class. With that, you can retrieve …

Software Development c++
Member Avatar for mbarriault
0
83

The End.