132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for rastaberry

hello, I want to read lines into an array (I will later work with the array of pointer , so that is why I use it) well this is my code that doesn't work correctly, does anybody now why? I created a simple txt document for this which has only …

Software Development c++
Member Avatar for rastaberry
0
110
Member Avatar for Georges5

Hello Guys, I have a DLL created using Borland C++ 6, I need to use the same DLL with VC++ 2008, I have the .DLL and .LIB files created by Borland and the header file exporting 2 functions that I need to use in my program (Header file looks like …

Software Development c++
Member Avatar for Ancient Dragon
0
136
Member Avatar for bajanpoet

I'm trying to create a *.csv file using the records stored in a table. Searching the Net, I came across a code snippet that I modified for my use. The relevant code is [CODE] If dlg.ShowDialog = Windows.Forms.DialogResult.OK Then conn.Open() csv = dlg.FileName tw = New StreamWriter(csv) Dim sql = …

Software Development file-system vb.net
Member Avatar for 4advanced
0
2K
Member Avatar for Dolphinsfan

ok, i'm somewhat of a noob to c++ programming and i'm completly lost in my class as of now, i mean i understand the concepts(somewhat) but actually writting my own code is really confusing me, i dont want anyone to give me the answer, but if someone could guide me …

Software Development c++
Member Avatar for Narue
0
158
Member Avatar for scrypt3r

Ive developed a simple p2p chat program, it works fine up until i get to the input/output streams in my void that recieves incoming text i have the following code... [code] public void listen() { while (true) { again: try { convobox.AppendText(Input.ReadLine); } catch { goto again; } } } …

Software Development
Member Avatar for Rashakil Fol
0
91
Member Avatar for EJD

Getting all sorts of "illegal start of expression" and "; expected" and "class expected" errors mostly pertaining to my extra methods (besides the main). Any takers? import java.util.Scanner; /** This program will calculate income tax based on a person's income. */ public class Income { public static void main(String[]args) { …

Software Development java
Member Avatar for EJD
0
861
Member Avatar for c_shaft05

[CODE]//Vars to know about Square* square; vector<Shape> shapes; [/CODE] I'm trying to add things that are shapes, or in this instance square (which inherits from shape), but whenever I call shapes.push_back(square), I get this error message: [CODE]draw.cpp:55: error: request for member ‘push_back’ in ‘shapes’, which is of non-class type ‘std::vector<Shape, …

Software Development c++
Member Avatar for c_shaft05
0
122
Member Avatar for mikemea

[B]cannot convert parameter 1 from 'char' to 'char *'[/B] calcCharges(type_of_gas, &rate_of_gas, number_of_gallons, &total_gas_of_price, car_wash, &price_of_car_wash, &total_cost);

Software Development c
Member Avatar for GDICommander
0
74
Member Avatar for Dewey1040

I'm still generally new to C, I understand most basic concepts, and were now starting to learn much more complex tasks. Right now im stuck on a program to add polynomials, using linked lists. My book Data Structures - An Advanced Approach Using C, is a real difficult read, and …

Software Development c data-structure linked-list
Member Avatar for Dewey1040
0
99
Member Avatar for akn

Hi, I have a class linestorage which has a static member S (represents lines of words of characters). The problem is I don't know how to access this member in a function. I am getting this error message Info :Linking C:\DOCUMENTS AND SETTINGS\DELL.DFHWHLB1\MY DOCUMENTS\SPRING 09\CSCI 250\HW\HW1\HW1_P2\kwic.exe Error: Error: Unresolved external …

Software Development c++
Member Avatar for Ancient Dragon
0
152
Member Avatar for acardiac

Can anyone tell how really these functions work???? 1.cin.ignore() 2.cin.clear() 3.cin.good() 4.cin.fail() 5.cin.bad() 6.cin.eof() I mean to say what values these functions return at what situation... thank you! I also need to know about some user input validation techniques.i.e. the user inputs valid data in the programs.....e.g.if there is some …

Software Development c++
Member Avatar for rudasi
0
128
Member Avatar for mem81

Hi Guys , Have been reading the forum`s posts for a while.Found it really cool . So I joined. I have a really silly problem. I am trying to insert a record to a table in an access database on a click of a button . I use web developer …

Software Development microsoft-access open-source vb.net
Member Avatar for Ramy Mahrous
0
130
Member Avatar for StarZ

Starting on basic functions for python, and this is a assignment that I have to do... but I keep getting a Error.. but I tried, and still don't understand what is wrong. here is what it's suppose to output:[url]http://i39.tinypic.com/r1mv69.jpg[/url] This is what I've done: [code=syntax]def function1(french): print "Bonjour, comment allez-vous …

Software Development python
Member Avatar for lllllIllIlllI
0
108
Member Avatar for Blujacker

Is possible play waw, wma, mp3 with wxPython without oppening any window? Program will be based on Tk, only playing sounds on wx.

Software Development python
Member Avatar for lllllIllIlllI
0
1K
Member Avatar for cppStudent

Hi This whole pointer thing is getting the better of me. first i have a call to method "convertToCString" in my main: [CODE]int value = 21; char* cstr = NULL convertToCString(value, &cstr); printf("\"%s\"\n". &cstr); cstr = NULL delete cstr;[/CODE] the method looks like this [CODE]bool convertToCString(int& refConstInt, char** ptrtoCharPtr) { …

Software Development c++
Member Avatar for Salem
0
89
Member Avatar for smithss

Hi Guys, i wrote a program that starts another thread. In one case i thought that i have introduced a memory leak and i should get a segmentation fault but i didn't !! That's kind of puzzled me so i decided to post it here. [code=c++] #include <iostream> #include <windows.h> …

Software Development c++
Member Avatar for Salem
0
147
Member Avatar for olgratefuldead

Ok so I'm in need of some help.In the first part of this code, I need both the 'output' and 'enter' to be returned back to the calling method but one is a String and one is an int. When I compile and run the program, I get a null …

Software Development java
Member Avatar for olgratefuldead
0
156
Member Avatar for prateek4u

hi i am in my last year and have to make a project on the game called carrom but i dont know how to start , can any body help me please for eg how to make software specifications ,how tom start etc..

Software Development java
Member Avatar for PhiberOptik
0
91
Member Avatar for Carmen Smith

Hi, I am working on a project that involves a simple stimulus-response agent which much navigate it's way around a 2d grid world. Does anyone have any good ideas for ways to implement the agent's visual field? The input is a string of characters, one of them representing the position …

Software Development c++
Member Avatar for Carmen Smith
0
84
Member Avatar for notuserfriendly

ok everything works good outside if i make .java of the classes with a main app but when i put them together my Postfix one has a problem. if you are confused just look at the main method thats where the probelm arises. the thing is after i convert infix …

Software Development java
Member Avatar for notuserfriendly
0
198
Member Avatar for FEARmike21

Hi, I just started my C++ class a couple weeks ago and I am stuck and having a really diffcult time understanding which commands to use in my programs. I don't even know where to look to get a list. Anyways, basically what we have to make our program do …

Software Development c++
Member Avatar for rudasi
0
95
Member Avatar for rudasi

Hello, I want to write a program using VBA that can make a new data sheet from an old one with specific columns in the new data sheet. After making this new data sheet i want to convert it to .csv. Any ideas how i can go about this. Thanks.

Software Development vb.net
Member Avatar for rudasi
0
94
Member Avatar for rudasi

Hello, I want to write a program using VBA that can make a new data sheet from an old one with specific columns in the new data sheet. After making this new data sheet i want to convert it to .csv. Any ideas how i can go about this. Thanks.

Software Development visual-basic
0
79
Member Avatar for Argo54325

Ok, something very wrong is going on with my program. When i run it the numbers it is giving me are sometimes right but are also wrong. H (the first letter in the word) is both = to 0 and 1 (wtf?). Any ways below i'll show you want i …

Software Development c++ file-stream ios
Member Avatar for VernonDozier
0
1K
Member Avatar for rmlopes

Hello all, I am trying to use the #if directive to compile extra functionality acording to some class template parameter defined integer constant. What I want to do is this: [code=cpp] struct A1{ static const int _AINT = 0; }; struct A2{ static const int _AINT = 1; }; template< …

Software Development c++
Member Avatar for siddhant3s
0
212
Member Avatar for eyewirejets

I would like to be able to display or print a count of the number of names that were inputted and display this when the user gets out of the loop by pressing any key other than "y". For example: Number of patients processed : 4 How could I create …

Software Development python
Member Avatar for eyewirejets
0
112
Member Avatar for venomocity

I'm working on designing a game, the problem now is that while I have a code for randomizing a number, its the same series every time. This isn't good for random, to know what you're going to roll before you hit the button sucks. Is there anything to help with …

Software Development visual-basic
Member Avatar for venomocity
0
126
Member Avatar for FEARmike21

I am trying to get a program working, and im half way there, I think. What the program must do is take input from the keyboard and then capitalize every first letter of every word. Here is my entire program so far... [code] #include <stdio.h> #include <iostream> using namespace std; …

Software Development c++
Member Avatar for siddhant3s
0
152
Member Avatar for makubexiii

how can you input a string, clear the screen, then print Hello "string"? example: [CODE]org 100h MOV AX,03 INT 10H MOV AH,02 MOV BH,00 MOV DH,0CH MOV DL,19H INT 10H MOV DX,OFFSET MSG1 MOV AH,09 INT 21H MOV DX,OFFSET SZ MOV AH,0AH INT 21H MOV AX,03 INT 10H MOV AH,02 …

Software Development assembly
0
80
Member Avatar for kartheepanmirra

Hi i have a requirement where a cpp file should load a dll viz gzip.dll.then the cpp should call few methods in the dll.well im able to call the methods with no parameters but im unable to call the methods with parameters.if im trying to call methods with parameters i …

Software Development c c# c++
Member Avatar for kartheepanmirra
0
483
Member Avatar for thegreatkk

hi , i am created the datagridview at run time. i need to move (drag and drop) the datagrid view (only gridview) during the run time. (task is : if i select the datagridview and placed in some where in same window form. Ex: in our desktop we select the …

Software Development
Member Avatar for gomathinayagam
0
127
Member Avatar for darcee

im an intern student and my task is to make a popup message every 30 minutes to remind my boss about his task its like an alrm clock so i look on to the net and ive downloaded a file called PopupMessage Form and I want it to run it …

Software Development vb.net
Member Avatar for gomathinayagam
0
301
Member Avatar for vartikachandra

here i have 2 files and im getting a wrong echlon form of the matrix...please help; Linear_Equation.java: package mypack; import java.io.*; public class Linear_Equation{ public static void main(String args[])throws IOException{ int i,j; matrix mat1=new matrix(); int mtx[][]=new int[3][4]; mat1.accept(); mat1.display(); mtx=mat1.echolonform(); System.out.println("\nThe answer is:"); for(i=0;i<3;i++) { System.out.println("\n"); for(j=0;j<4;j++) System.out.print(" "+ …

Software Development java
Member Avatar for vartikachandra
0
909
Member Avatar for velladurais

Hai freinds, Can any one help me , how to send the image file from html to vb.net.. I know how to store the image using vb.net.. but I don't know send particular image from html to vb.net via querystring. please help me as soon as possible..

Software Development html-css image vb.net
Member Avatar for samir_ibrahim
0
140
Member Avatar for mohammad8065

Hi !!!! I want to write a program that print the character # like a triangle in the middle of the page.I mean like this : # # # # # # # # # # # # # # # # # # # # # # # # …

Software Development c++
Member Avatar for siddhant3s
0
262
Member Avatar for C++.java

// Sum of Squares and Cubes.cpp : Defines the entry point for the console application. // [code=cplusplus] #include "stdafx.h" #include <iostream> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { int n,j; cout<<"Enter a Number:"; cin>>n; for(j=1;j<=n;j=j+1) cout<<j*j<< " "; cout<< endl; int a,b,c,sum; a=n+1; b=2*n+1; c=n*a*b; sum=c/6; cout<<"the sum …

Software Development c++
Member Avatar for siddhant3s
0
176
Member Avatar for lil_panda

Is there a way for me to use an obj-C class with my C++ program? If so, what special parameters do I have to specify during the compilation phase, and if I needed, changes to my source code files?:-/

Software Development c++
Member Avatar for ArkM
0
169
Member Avatar for cproud21

I have attached 4 classes which I have created for the following assignment, as well as a test program which tests the other four classes. The only thing that I am having a problem with is reporting the amount of the fine in the ParkingTicket class, as well as determining …

Software Development java
Member Avatar for javaAddict
0
254
Member Avatar for siddhant3s

I have read prior post on the forum but I came up with few specific questions about Porting Unix Socket(hereby calling it BSD socket) to Win32 Platform : First of all, I am a native Linux C/C++ Programmer. I program in Ubuntu with GCC. But, I usually also port my …

Software Development api bsd c++ ide ubuntu unix windows-api
Member Avatar for siddhant3s
0
1K
Member Avatar for SADIYA4

hey how to make an object move in an C graphics program, eg; i have drawn a swing and i want it to move... i am beginner in C graphics program so please help me...:(

Software Development c c# c++ java-swing
Member Avatar for csurfer
0
56
Member Avatar for arussell817

Hello, I looked around and saw similar problems, but None of the answers seemed to help my situation. Im almost done with my HW Just have come across this minor bump. The error is in the title, and is happening in my addressEntry header, or cpp. not sure: : error …

Software Development c++
Member Avatar for siddhant3s
0
450
Member Avatar for vartikachandra

i am trying to accept a 3 by 4 integer matrix from the user and an unable to do so.here is my code. [code] void accept()throws IOException { int i,j; InputStreamReader instream = new InputStreamReader(System.in); BufferedReader stdin = new BufferedReader(instream); System.out.println("\nEnter the coefficients and the constants for the 3 equations …

Software Development java
Member Avatar for vartikachandra
0
132
Member Avatar for otterfreak

Hi guys, i'm working on trying to pass commands from the console from one program to another program by using pipes() and the execve() system calls. I'm pretty much stuck right now, because I can't seem to determine what i'm doing wrong. Here are my code listings [code] #include <errno.h> …

Software Development c
Member Avatar for Salem
0
1K
Member Avatar for jeevsmyd

Hi friends.. Last day at school my teacher gave the following code.. But it is not working.. 16 errors.. I am a beginner in C++ .I badly need your guidance a help in finding the errors... the for loops is all wrong.. To be frank I don't understand the working …

Software Development c++
Member Avatar for siddhant3s
0
370
Member Avatar for mikemea

[B]cannot convert parameter 1 from 'char' to 'char *'[/B] calcCharges(type_of_gas, &rate_of_gas, number_of_gallons, &total_gas_of_price, car_wash, &price_of_car_wash, &total_cost);

Software Development c++
Member Avatar for ArkM
0
77
Member Avatar for jloyzaga

How do I put in default values in my def textbox code attached -

Software Development python
Member Avatar for vegaseat
0
854
Member Avatar for buug

hello, when compiling this method, i get a "missing return statement error" because there is no return statement after the while loop and before the method closes. i understand that there needs to be one there, i'm just not sure what the value should be. i have commented out the …

Software Development java
Member Avatar for sillyboy
0
94
Member Avatar for lucstrato

If someone could help me out here I would really appreciate it... I have to get this code running for my programming class and i keep getting same symbol error here is the code: [code] public class fourseventeen { public void main(String[] args) { int j = 0; int sum …

Software Development java
Member Avatar for lucstrato
0
77
Member Avatar for maccold321

I'm a huge newbie and any help would be amazing and it would mean so much!! I have to make a program that The application should display the addition, subtraction and multiplication problem on the screen, and switch depending on what the user wants to use, then allow the student …

Software Development vb.net
Member Avatar for maccold321
0
78
Member Avatar for rickster11

Ok, stuck on homework. The program is supposed to read a list of presidents from a binary file and display them. I have it all working..except..when it gets to Truman...it just keeps repeating his information. I know its still going in the loop, but for some reason the pointer stays …

Software Development c++ ios
Member Avatar for rickster11
0
146

The End.