132,729 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for hwoarang69

how to copy pointer to pointer. char *name1; //store the value of DAVE char *name2; if name2 was a array i would have done. strcpy(name2,name1); but i dont know how to copy pointer into pointer. i was thinking some thing like this. name2 = name1? also do i need to …

Software Development c
Member Avatar for Shardendu
0
177
Member Avatar for SCass2010

Hi everyone, Was wondering if anyone could help... I know the std::map automatically sorts it values - I have a map a Date object pointer, and a bool for whether it is to be used or not. But I need the dates to be in order from earliest to latest …

Software Development c++
Member Avatar for ravenous
0
1K
Member Avatar for pattilupwned

Hello! I am writing a program that mimics the game Mastermind. However, I am having trouble getting past the first step. We are using letters as the "colors", a string containing "RGBYO". Each time it goes through trying to get the initial "secret code", it needs to get rid of …

Software Development c++
Member Avatar for pattilupwned
0
312
Member Avatar for roshan_iiita

I need any Open Source Sentence Grammar Corrector for one of my projects. I searched it on Google but couldn't find any. All the results coming link to only Grammar Checker tools only not grammar corrector. Please suggest me any open source tool which can correct the grammar also or …

Software Development java open-source
Member Avatar for luzysmith
0
159
Member Avatar for while(!success)

Hey guys, I've been messing around trying to learn binary trees and have created a simple program to get the month and number of days in a month to be inserted into the tree then displayed. I am getting a successful build, however, when it launches the terminal window the …

Software Development c++ data-structure
Member Avatar for while(!success)
0
145
Member Avatar for ITOzann

Hey guys, I'm trying to conver a while loop from C++ to java. And I'm having a problem with my while loop. The original c++ code. // Out of cashiers? // Get next frontBusyCashierQ // Is cashier's finish time now? while(!service->emptyBusyCashierQ() && (service->frontBusyCashierQ(cashier), cashier->getEndBusyTime() <= currentTime)) { ...... .... ... …

Software Development c++ java
Member Avatar for NormR1
0
284
Member Avatar for aprilcrash

Hi. I´m writing my first python program - a text adventure game. I want to have a list of possible things a dog could eat, what´s bad about them, how bad they are. So, I thought I´d do this: badfoods = [] keys = ['Food','Problem','Imminent death'] food1 = ['alcohol', 'alcohol …

Software Development apple python
Member Avatar for TrustyTony
0
296
Member Avatar for Kirbyzdashiznit

**Description: Friend’s finder. You load a data file first. Then you answer 10 questions. The answers will be saved in an array. The data in file are several arrays answered by other users. You need to compare the answers with other users and calculate the similarity. After that it will …

Software Development c++ engineering ios
Member Avatar for Kirbyzdashiznit
0
276
Member Avatar for Samama

So im working on a project where im supposed to dynamically load the contents of a .csv file into the database.I have been hard coding the path of the file till now like * inserted = insertFromFile("C:/Users/Student/Desktop/Book1.csv",connection, "customer"); * however now i have to read multiple files from a folder …

Software Development gui java
Member Avatar for DavidKroukamp
0
97
Member Avatar for chamika.deshan

Hi I am trying to write "at" commands to serail port and send sms. `smsPort->Write("at"); // smsport type is System::IO::Ports::SerialPort ^smsPort;` gives me output OK At the end(after the writing message) I need to write ctrl+z smsPort->Write("Message"); smsPort->Write((char)26); this gives me error *'void System::IO::Ports::SerialPort::Write(System::String ^)' : cannot convert parameter 1 …

Software Development c++
Member Avatar for gusano79
0
155
Member Avatar for sparchitect

Hi, wondering if anyone could help me with this. I need to create a program that contains a listbox (lstChart), calculate and exit button. When the user clicks the calculate button it needs to display 5 separate input boxes asking for the total sales for each of the 5 stores. …

Software Development visual-basic
Member Avatar for mustaffa hasan
0
140
Member Avatar for Gus_19

I was wondering if anyone knew of a good tutorial for parsing data from a text file and then populating the data into multiple text boxes. I have a text file with information pertaining to my form. The text file consists of key identifiers for each piece of information needed …

Software Development vb.net
Member Avatar for Begginnerdev
0
208
Member Avatar for teklu

I am doing a picture in my project and I want to clear that picture from the picture box without deleting the other drawn picture when a command button is pressed . any help

Software Development visual-basic
Member Avatar for mustaffa hasan
0
391
Member Avatar for Perlie

Hi, I've got a problem to average lines which have same name. For exemple: > Strawberries 10 15 14 20 Pineapples 14 17 2 18 Apples 4 12 24 18 Strawberries 20 12 13 24 I would like to average values by fruit name. So, for pineapples, that easy, it's …

Software Development mathematics perl
Member Avatar for d5e5
0
216
Member Avatar for spowel4

I have the following, which creates a list of arrays: static List<string[]> ReadFileIntoList(string fileName) { List<string[]> parsedData = new List<string[]>(); string fullLine; string[] row; try { StreamReader sr = new StreamReader(new FileStream(fileName, FileMode.Open, FileAccess.Read)); while ((fullLine = sr.ReadLine()) != null) { row = fullLine.Split('\t'); parsedData.Add(row); } sr.Close(); } catch (Exception …

Software Development
Member Avatar for thines01
0
189
Member Avatar for pjh-10

#include <iostream> #include <cmath> // appropriate c++ libraries for functions & constants needed #include <fstream> #include <stdlib.h> using namespace std; const int N = 1000; const double pi = 3.14159265; //constants applied int main() { double num, factor, avg = 1.0; //variables declared and initialised int i; num = N …

Software Development c++
Member Avatar for VernonDozier
0
137
Member Avatar for honeybee2090

trying to trying to get extract content from a web page in to a listbox and contents are in this format 107.2.71.168:1708 107.3.217.65:1580 107.3.217.65:51723 107.43.148.15:8651 107.8.39.163:57071 107.8.63.188:11244 107.9.254.237:17209 108.222.146.33:44973

Software Development vb.net
Member Avatar for thines01
0
127
Member Avatar for phorce

Hello, I have this matrix: 0 0 1 0 0 0 1 0 1 1 1 0 0 1 0 0 and I need to print out the block with the coords: (2,1) so in this case: 1 0 1 0 I have tried this: for(int i=minRow; (i < 2); …

Software Development c++
Member Avatar for rajenpandit
0
103
Member Avatar for Panathinaikos22

Hello, i have done a simple TCP Client - Server In my local PC it work but i dont know if i run TCPServer on other pc, it will receive messages from client? i tryed it with my bro but nothing, i also open and ports... maby isp dont allow …

Software Development client-server
Member Avatar for Panathinaikos22
0
411
Member Avatar for arunkumars

Hi, I have a doubt in MS SQL, The below condition in the WHERE clause as you can see, "Where COTDetails NOT BETWEEN 32 AND 63 OR COTDetails is NULL", I want to the WHERE clause in such a way that the COTDetails is not between 32 and 63 and …

Software Development sql
Member Avatar for ChrisHunter
0
153
Member Avatar for polarbear125

I have this Die class, which I am working on for a game called Craps. My old method works, but I wanted to try to use dice with a higher number than 6. I can get the program to accept my user input, but how can I get it to …

Software Development java
Member Avatar for DavidKroukamp
0
237
Member Avatar for Iamateur

How to allow the user to select the date from the DateTimePicker and store that selected date ,month and year in the database table? What is to be written inside insert query of code?

Software Development vb.net
Member Avatar for Begginnerdev
0
86
Member Avatar for Iamateur

How to retrieve the particular column row to the text box? I mean how to display it in textbox? The column has got different rows. The code I wrote in vb net is : cmd = New SqlCommand("select ida from Issue where aname='" + TextBox3.Text + "'", con) In the …

Software Development display vb.net
Member Avatar for Philippe.Lahaie
0
142
Member Avatar for alaa sam

hi everyone I'm working currently with linked list , and there's a problem with my code , the link is writing the same place every time (it replaces the previous values with the new ones without inserting a new one ) can anyone help ? Thanks in advance #include<stdio.h> #include<unistd.h> …

Software Development c linked-list
Member Avatar for Ancient Dragon
0
127
Member Avatar for Hitman Mania

Hey, this is one of the exam review questions, and I'm wondering how I would return 1 or 0 for bad input (i.e. cant divide by input 0) using return 0 and 1 if the function doesn't accept returns, i.e. void function (int variable) //cant have return statement. Here is …

Software Development c
Member Avatar for BobS0327
0
204
Member Avatar for Daigan

for (y = 1; y < num1 + 1; y++) { for(x = 1; x < num2 + 1; x++) { if (y >= 1 && y <= 4 && x >= 1 ) { printf ("%d x %d = %d", y, x, y*x); printf (" || "); } else …

Software Development c
Member Avatar for Vish0203
0
159
Member Avatar for JasonWung

Hi, Can someone tell me how to make this. I have winform wich read from file and make post request to web. I want to have one textbox where i can put time betwen every request. for example: I run my app and read whole file with(1000rows) and 2sec delay …

Software Development
Member Avatar for JasonWung
0
288
Member Avatar for Vish0203

Hello everyone! I tried a lot to understand the spacing procedure in pascal triangle.. but it all went to vein!! Does anyone knows about this spacing??? Why are we using this loop: for(x=40-3*y;x>0;--x) printf(" "); need help ASAP!!

Software Development c pascal
Member Avatar for Vish0203
0
342
Member Avatar for resiak

i'm an IT student. Our Instructor gave us assignment to edit and delete txt file. how to edit and delete text file in java? can you give me the code ?

Software Development java
Member Avatar for DavidKroukamp
0
227
Member Avatar for rdhiravani

Hi, I have a swing application which works on CSV file. It reads full file line by line, computes some required statistics and shows output. The Upper part of output screen shows each record from file in that order in JTable, whereas lower part shows statistics computed based on that …

Software Development file-system java java-swing
Member Avatar for JamesCherrill
0
174
Member Avatar for rajesh1158

public class Twisty { { index = 1; } //need clarification here int index; public static void main(String[] args) { new Twisty().go(); } void go() { int [][] dd = {{9,8,7}, {6,5,4}, {3,2,1,0}}; System.out.println(dd[index++][index++]); } } In the above code, inside the instance initialization code, index is used. But it …

Software Development java
Member Avatar for JamesCherrill
0
149
Member Avatar for Rage A Lot

Having issues fixing these issues: error LNK2019: unresolved external symbol "public: __thiscall grid::grid(void)" (??0grid@@QAE@XZ) referenced in function "void __cdecl `dynamic initializer for 'GridObject''(void)" (??__EGridObject@@YAXXZ) F:\Dev103\thermonuclear war game\thermonuclear war game\Grid.obj error LNK1120: 1 unresolved externals F:\Dev103\thermonuclear war game\Debug\thermonuclear war game.exe 1 //header file #include <iostream> using namespace std; class grid{ int …

Software Development c++
Member Avatar for mitrmkar
0
668
Member Avatar for pjh-10

how do i get output which would normally appear on the screen, as in the Microsoft visual studio command prompt, written to a file such as a simple text file. say << X << is the output, what do i do from here? thanks

Software Development c++ visual-studio
Member Avatar for BobS0327
0
491
Member Avatar for Esmerelda

I just want to know the exact difference between intialising and assigning a variable. Is it possible to initialise a variable multiple times in C prog or is it just initialise once n assign all the other time...can somebody help me out please.

Software Development c
Member Avatar for WaltP
0
102
Member Avatar for needhelp919

An office furniture company sells furniture in three colors: red, black and green. Every item in their inventory system has a 5-character code. The last two characters are always used to represent color. If an item is red, the last two characters are “41”. If an item is black, the …

Software Development c++
Member Avatar for WaltP
0
134
Member Avatar for FraidaL

This code is just a function in a bigger code, but I'm having a problem with the break. I'm not sure I'm doing it right, but basically if the factors are zero, then the program should say the equation can't be factored. It does that, but then continues through the …

Software Development c++
Member Avatar for zeroliken
0
111
Member Avatar for phorce

Hello, I'm trying to determine where a small matrix would fit inside a big matrix.. But, the small matrix is not in the big matrix so I need to see how simular they are.. The one with the lowest value, is the best fit.. So my difference function is this: …

Software Development algorithm c++
Member Avatar for Lerner
0
160
Member Avatar for hay123

I am fairly new at C++ and Im having a lot of trouble understanding how to do it. This is part of a homework assignment due next week and I have no idea how to even start it (much less finish coding it). Can anyone out there help? ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Create …

Software Development c c# c++
Member Avatar for rubberman
0
153
Member Avatar for Hektik1

Hey guys, I am trying to make a program that allows you to input music artist into an array. The array row length is dependent upon a number entered by the user. There are only three column. I am having trouble with a line inside the for loop printing twice …

Software Development java
Member Avatar for Hektik1
0
179
Member Avatar for phorce

This may sound really noobish, and I'm probably missing something really stupid.. But, I'm trying to calculate the differences between matrices, and the one with the smallest value (result) is the matching number.. But, for some reason my algorithm seems to be missing the smallest number and I can't figure …

Software Development algorithm c++
Member Avatar for rubberman
0
115
Member Avatar for baseballer

I am trying to write a program that will allow the user to search for a first or last name within a document full of people's names, and respond with the position of that name within the .txt file. What I have right now keeps returning -1 for the position …

Software Development java
Member Avatar for NormR1
0
223
Member Avatar for sofia85

Hi, I have a big text file (2 GB) with 4 columns looking like this: C START END A 1 10583 10583 0.14 1 10611 10611 0.02 1 13302 13302 0.11 I also have another file where I have extracted a string of information and if this string matches col1:col2:col3 …

Software Development python
Member Avatar for macanohost
0
189
Member Avatar for gspeach79

With this program I am supposed to **use ASCII operations to do addition and subtraction on positive integers of any length represented in characters.** I have no idea how to fix this program could anyone help me fix it? Thanks! include irvine32.inc .data msg1 byte 0dh, 0ah, "Enter a number:", …

Software Development assembly
Member Avatar for macanohost
0
175
Member Avatar for dark_sider_1

This is probably a really simple and stupid question, but when I try to "Build and Run" an OpenGL program on XCode, it seems to debug it and open the window for a split second and then close. There aren't any compilation errors and it finishes saying that the debugging …

Software Development c++ ide opengl
Member Avatar for gusano79
0
258
Member Avatar for CesarG

I have just downloaded this C# Command Line Caller sample program of Ozeki VoIP SIP SDK: http://www.voip-sip-sdk.com/p_163-c-command-line-caller-voip.html It is very easy to use and meets my requirements, but I would really appreciate some extra info from more experienced developers. Has anyone ever built a C# Command Line Caller?

Software Development c#
Member Avatar for skatamatic
0
392
Member Avatar for TotalZombie

So, I'm playing around with SDL and I've come across a bit of a bump. I have one image and I am trying to "free" that image to put on another one. Here is what my code looks like.. [CODE] // I did get a good section of this code …

Software Development c++
Member Avatar for rfrapp
0
216
Member Avatar for dctb13

Hi, I'm trying to sort a list of names in c++ (first name and last name). I'm running into a couple of problems with my code. I'll post the code first then state my problems. #include <iostream> #include <stdio.h> #include <cstring> using namespace std; const int numNames=3;//this makes the code …

Software Development c++ programming-construct
Member Avatar for BobS0327
0
7K
Member Avatar for ct_hunny

hello im new in java and i have to do simple program and can read from txt file

Software Development java
Member Avatar for joankim
0
226
Member Avatar for javaprog200

Hello, The following program has a JFrame which contains an image, JTextArea and and a textfield. How can I display the image inside the text area? I will be grateful for any help! Thank you! import javax.swing.*; import java.awt.*; import javax.imageio.ImageIO; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import java.awt.event.*; public …

Software Development image java java-swing
Member Avatar for DavidKroukamp
0
5K
Member Avatar for jdm3

Hello, I'm new with Python and running into an error trying to print data I have retrieved from a database. The code works but there are characters being printed with it that are not displayed in the database...here is my current code: con = mysql.connect(host="silo.soic.indiana.edu", port=3306, user="XXXXXXX", passwd="XXXXXX", db="XXXXXXXXX") cursor …

Software Development python sql
Member Avatar for TrustyTony
0
260

The End.