132,726 Archived Topics
Remove Filter ![]() | |
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 | |
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 | |
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++ | |
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++ | |
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 | |
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 … | |
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 | |
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++ | |
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++ | |
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++ | |
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 | |
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 | |
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 | |
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++ | |
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++ | |
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 { … | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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++ | |
IN C#::: i have a string string abc="40+40*4.2%+100" now how can i get the result???? Software Development c# | |
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 | |
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++ | |
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++ | |
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++ | |
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 ![]() | |
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 … | |
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 … | |
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++ | |
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 | |
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 … | |
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 | |
//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 … | |
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 | |
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", … | |
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++ | |
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 | |
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++ | |
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 | |
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 | |
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 | |
[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++ | |
[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 | |
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++ |
The End.