132,726 Archived Topics
Remove Filter ![]() | |
I need to send multiple request (command) to server at port 55005. My first request get process successfully & I received out put also. But for second request it gives error (WSAESHUTDOWN - Error 10058). After first requets I call shutdown(ConnectSocket, SD_SEND); Then only server process the first request & … Software Development c++ data-structure peer-to-peer socket-programming | |
Hi guys, I have just started to learn c++ and I am working with robots. Every program is starting with main(int argc, char *argv[]) definition . I don't understand what does it mean?I am very glad if somebody canexplain for me . Software Development c++ | |
Ok so, question about opening an application from python..is there a command that will force an app to open, while at the same time leaving the tkinter GUI open? The app I am trying to open is Snes9x. import os from tkinter import * try: import Tkinter as tk from … | |
Hey guys, I'm trying to understand how radix sort works in C++ : I've looked over the C++ implementation from wikipedia: void radixsort(int *a, int n) { int i, b[MAX], m = a[0], exp = 1; for (i = 0; i < n; i++) { if (a[i] > m) m … Software Development c++ programming-construct | |
In my program I have two child forms, one contains a richtextbox, and the other a webbrowser. When I type into the the text box it displays it in the webbrowser. The problem I am having is that after every key I press I have to click on the richtextbox … Software Development vb.net visual-basic | |
Hi people. I have a remove function that should set a hide member of a node to 1 instead of actually remove the node. The function works well when I insert and remove top and tap respectively (both nodes have their hide member set to 1) but when I insert … Software Development c daniweb-bug data-structure seo | |
I would like to convert a procedural database program that I have created to an object oriented program. In my procedural program I use a struct: struct shoes{ char Name[20]; int Number; double ShoeSize; }; Putting this into a class would I simply use: class Shoes{ public: //Function declerations private: … Software Development c++ | |
How would I pass a struct from application to a class library API function? Software Development api | |
I have to find which of the following values can be the degrees of an undirected graph with 6 vertices: a) 3 2 2 2 3 3 b) 4 2 2 2 3 2 c) 5 2 2 2 0 3 d) 5 2 2 2 1 2 I only … Software Development c++ | |
public class JavaApplication1 { public static void main(String[] args) { for (int i = 5 < = 100; 1 + = 5){ System.out.print(i); if (i <100){ System.out.print(","); } } } } Software Development java java-netbeans | |
Hello all! Hope to be a very active nad productive member here as I learn. Currently in a python class and have a problem to solve. Not quite sure where my mistake is.... I am to put the inputs in the main function pass to the processing function and call … Software Development python | |
Hi everyone. I'm tying to understand the instruction below. I wish someone could explain me what it means: tree->destroy(((AvlNode*)(*position)->data)->data); // destroy the left branch of the binary search tree starting from the specified node static void destroy_left(BisTree* tree, BiTreeNode* node) { BiTreeNode **position; // can't remove from an empty tree … Software Development c data-structure seo | |
-->>Hello World of VB 6 Programers... -->>I've been using a block of Branching statement that worked fine in all the places I've used it... -->>Now I came to develop this form thats when things started to look bad... -->>I just check for the availability of a record in a database … Software Development visual-basic | |
I have Dev-C++ as an IDE and MinGW as the compiler, and I am running C programs on the IDE. I have this project where I have to write raw PCM data (unsigned 8-bit i.e bytes of PCM) as an array. I have figured out the reading part but when … | |
Can any one please tell me how to connect a simple java web application to Oracle10g Express edition? Which driver should I use? Thanks in advance. Software Development java | |
Hi, Can somebody write a sample code to reverse a string using recursion. Basically a function which takes string as input parameter, reverses the string using recusrion and returns back the reversed string to calling function. Thank you Naveen Software Development c | |
Hi everyone, I have the implementation for a linked-list based Stack. I believe the entire code is correct, but only the way I call the push and pop function mighe be wrong. Any idea how they should be called? Mine returns garbage: #include <iostream> using namespace std; typedef struct Elements … Software Development c++ linked-list | |
I cant figure why my program is not running it compiles with no errors but doesnt run, am bearly starting to learn c , am more proefficient in java but its wierd changing, i use vi to write my code. heres a snipet #include <stdio.h> #include <stdlib.h> #include <time.h> #include … Software Development c | |
I am a novice in programming. I have a project where I have to get data from a website (I ll be posting the website below). But it happens that I first have to select a date and press a 'Go' button and then click on another Button/Link 'View in … Software Development c# | |
I created a program that will find the biggest number when give 3 different numbers. But when I want to change the program to find the biggest number when you enter 4 integer number I continue to run into problems. I can get it to find the biggest number when … Software Development c++ | |
Hi, I have a class which implements dispose patteren. Please see the sample code below. public class MyClass : IDisposable { private readonly IBanking mybanking; public MyClass(IBanking banking) { if (banking == null) { throw new ArgumentNullException("banking"); } mybanking = banking; } ~MyClass() { Dispose(false); } #region IDisposable Members public … Software Development | |
Hello, I was partaking in the global game jam (where you have to try to make a game in 48 hours). I got my game pseudo-finished, but I cannot get it to render the scene properly. Here is the code related to the rendering: Code for opengl initialization: glClearColor(0.5f,0.5f,0.5f,1.0f); float … Software Development c++ opengl windows-api | |
I'm trying to expedite the process of manually opening up an XML file and searching for some info in it. I want to store some of the data, etc. Nothing elaborate. But I'm not clear on some of the file structure. For the seasoned XML data wrangler, can you instantly … Software Development algorithm data-structure python xml | |
Hi, The Windows API function to select a directory is really bad, so I'm trying to use GetOpenFileName() instead. For that, the idea is to set a hook function, so that when the user hits the OK button without having actually selected a file, the hook function retrieves the currently … Software Development api c++ windows-api | |
I have this script that I thougth only deleted stuff more than 90 days old but after I ran it, it deleted pretty much everything on my backup drive. Thankfuly I have another backup drive so I did not lose my backup but I need to fix this so it … Software Development shell-scripting | |
How to store the elements and display?? struct A{ int level; char name[20]; struct b *a_b; }*d[3]; struct b { char name[20]; struct b *next; }; | |
Here's the assignment requirement: > Write a program that creates a series of one or more loan amortization schedules. The program should query the user for an input file name and an output file name. The input file will contain the number of schedules that need to be generated as … Software Development c++ file-system | |
hello everyone.. I am trying to connect a simple application to Oracle XE database. But when I run this program , the else part of program is running. Can Anyone tell whether I hav ewritten the code correct or not. import java.sql.*; public class jbc { public static void main(String … | |
I would like to create a font file (like .ttfv or etc) by using java, how can I do it. If java cannot create or edit font file, could you tell me which program language can do it? I would like do it by programming without exists software. I really … Software Development java | |
My project is to create controls inside a class library and then display them in another application. I already added the class library to my reference inside the application and added System.Windows.Forms to my class library. Here is the code in the class library: using System.ComponentModel; using System.Data; using System.Drawing; … Software Development gui | |
In the following program how or the two while statements working, `while(szTarget[targetIndex])` & `while(szTarget[targetIndex])` since the their first element is initialized to zero? Zero is false and one is true so how are they getting even one iteration? The book I'M reading also made a point of saying this: "It … Software Development c++ | |
So for my assignment I have to create the Vector class and apply it .hpp to include the "Vector.h" file and no include the original Vector class. I have a few of the member functions done but am not sure how to begin with the other ones and im wondering … Software Development c++ | |
Hi, im using crystal report on my project. It working very well but I just want o make it more flexible. I have textobjects with of course text in it. They are not bound since they are just additional information on my report. How can i make those textobject editable … Software Development vb.net | |
How can I grow the size of a char array? `char myArray[6];` Assumming that all the current elements are occupied how can I add more empty element to the array to input another value into? Software Development c++ | |
I'm currently making a DLL with a collection of code snippets that I find myself commonly using. I have made a search functin that checks if one string is inside of another string. I have also added a vector choice in the case that I want to search many strings. … Software Development c c# c++ programming-construct | |
I'm almost done with my assignement I've created 2 class and I have one format method in student class the file look like this (there are about 25 lines) courseNum courseName courseSemester studentID,studentProgram,studentGpa studentID,studentProgram,studentGpa the output should look like this courseNum courseName courseSemester studentID--studentProgram--studentGpa studentID--studentProgram--studentGpa I'm still not sure if … Software Development java | |
Recently, I saw somebody start a "Deal or No Deal" game in the Posting Games section. This got me thinking of writing a program to actually play the game based on the rules of the show. So I spent a couple of hours writing this in ANSI-C. I probably should … Software Development c gaming posting-games ubuntu visual-studio | |
I just need help to display my initial value of 25000 when the loop runs and print the years. I need the year 1 to be the initial value without doing the percent first. Also my print format doesnot display the $ and the headers. Any guide to the right … Software Development java | |
this is a calculator in asm using tasm..this works fine but the problems i want to fix are: 1.remove the division part(add,sub,and multi are required). 2.i want to remove the menu, when i run the program it should show up directly to the input part. 3.i want this thing [+][-][*] … Software Development assembly | |
i got a little problem here, i want to update my record by opening it on another form. but it only update the first record on the list, can anybody help me with this. heres my code: 'first form Private Sub command1_Click() If Text1 = ListView1.SelectedItem.Text Then With form2 .Label1.Caption … Software Development visual-basic | |
i am working on a program called myBalls. so far, heres what i have import java.util.Scanner; public class Penis { private int length; public Penis() {} public void setPenisLength(int l) { length = l; } public int penisLength() { return length; } } public class myBalls extends Penis{ public static … Software Development java | |
Runtime error 2147467259(80004005): The changes you requested to the table were not successful because they would create duplicate values in the index, primary key..How to catch the exception? Software Development visual-basic | |
I have created a basic object oriented database of a list of shoes containing the shoe name, number and shoe size. I am trying to sort the list of shoes alphabetially by name and by shoe size. I have the following code: Shoes.h: #include <iostream> #include <fstream> #include <string> #ifndef … Software Development c++ ios programming-construct | |
I recently wrote a program to determine my current working directory using getcwd(). getcwd() returns the starting address of the character array supplied by the programmer. I have written a very simple program and as I am not an experienced C program can anyone mention what I can do to … Software Development c | |
Is anything wrong with this code? I ask because in the past, I included the text file with the installer. In an attempt to simplify the installer, I decided to make the app generate the text file and put it where it needs to go. Here's the code (simplified) First … Software Development file-system vb.net | |
Basically I'm supposed to make a program that copies the Unix -wc command. Flags -l, -w, -c, and -L are supposed to display # of lines, # of words, # of characters, and # of characters in line, respectively. I am having trouble reading in a text file (first time … Software Development c file-system unix | |
i tried the following coding .it compiled without errors but gave absurd results during runtime. can u pls help me with it? [code=cplusplus] #include<iostream.h> #include<stdlib.h> int main() { int i; cout<<"ten random numbers for the range 0 to 50"<<endl; for(i=0;i<10;i++) { cout<<rand()<<endl; return 0; } }[/code] Software Development c++ | |
Hi, Below code snippet belongs to copy constructor implementation. my question is in both cases (without and with copy constructor) if i execute this programme ,it will print the diff-2 memory addresses for both objects. 0x22ff20integer=0 (for object s1) 0x22ff10integer=0 (for object s2) but i believe in case of without … Software Development c++ | |
hai , I am using turbo c compiler, the system() function always return -1. i can't run any dos command using system() function i can't use system() properly please help me !!! ex: [CODE] #include<stdio.h> #include<conio.h> #include<stdlib.h> void main() { int i ; i=system("dir"); printf("%d",i); getch(); } [/CODE] Software Development c | |
Hello guys im working on program and i stucked at database i need to create some place that will save all information of Account (in some file if can) then read it every time user "Log in" in the program. I tryed searching but i cant get it ... Please … Software Development java |
The End.