132,726 Archived Topics
Remove Filter ![]() | |
I know how to create a function with variable argument list, but how do you create one when the argument type is unknown, something like MyPrintf(...) ? From what I've read CLR/C++ only supports known argument types, such as int, `MyPrintf("...array<Int32>^ arr)` and the calling function int main() { MyPrintf("One", … Software Development c++ | |
Hi folks. I am trying to learn J2EE and I am looking for a complete J2EE tutorials online. Plz suggest me some links where i can learn the J2EE completely(if not 100%, atleast 90%) . It will be pleasure if the tutorials are FREE as i cant afford to pay … | |
Hi everyone I have a issue where I have written the entire program but couple little tweaks are needed for me to get the program done. I have my super class here "Pet". I have created couple objects in Main, "myRobin" , "myCow", "myBlackMamba" and passed some arguments to them. … Software Development java | |
I'm having this kind of error: *Could not find a part of the path.* For Each subfolder As String In Directory.GetDirectories(sourceDir) Dim destDir As String = Path.Combine(destinationDir, Path.GetFileName(subfolder)) If destDir = destinationDir & "\peanutButter" Then 'do nothing Else Directory.Move(subfolder, destDir) End If Next I suppose i get this error because … Software Development vb.net | |
is `char** val` the same as `char* val[ ]` when is the formal ( `char** val`) used Software Development c | |
My company recently hosted a programming competition for schools across the country. One team made it to the finals using the Python client, one of the four default clients provided (I wrote it). Most of the other teams were using Java or C#. Guess which team won? http://www.windward.net/codewar/2013_01/finals.html * *This … Software Development python | |
I have this code so far #Add two digits def add(a,b): return a+b #Subtract two digits def sub(a,b): return a-b #Multiply two digits def mul(a,b): return a*b #Divide two digits def div(a,b): return a/b #returns an integer that the user enters def getCommand(): cmd = input("Choose: ") return cmd #Execute … Software Development python | |
#include <iostream> using namespace std; int main() { int rows = 3, columns = 3; int ****p; p = new int***(); *p = new int**(); **p = new int*[rows]; for(int i = 0; i < rows; i++) { ***(p+i) = new int [columns]; //Crashed at ***(p+1) why? } } I'm … Software Development c++ | |
I am going to start learning about Spring framework. Please tell me from where i can get good tutorial for learning same with example. please send me(Suggest me) links or material regading Spring, so i can learn it in better way. Thanks a lot. Software Development java spring-framework | |
Hi there everyone, I have a bit of a problem I am hoping you can help with. This is for an assignment, and I know I can finish the final calculations for my tax program if I could just pass my 2 variables from previous methods into the final method … Software Development java | |
I'm supposed to write an application that calculates the Body Mass Index (BMI) for the user, using centimeters for height, and kilograms for weight.. Basically, I'm stuck here.. I have no clue what I'm supposed to do next.. Or if it's even correct so far.. Any help? /*** This application … Software Development java | |
hi i want to have a sample on how to link a form to another. need help plzzzz friends. have to submit a project and i want to implement in in that. i want to link a login page to a form. if login = True then direct to form … Software Development vb.net | |
A colorful look at the PySide GUI toolkit and its QPainter class and methods. Well commented and demonstrated with the drawing of a number of rectangles and the different ways to apply colors. | |
Hi, I'm new here!!! I just want to ask if is it possible to add a property within a property at VB.Net. Sample Public Class Form1 Private xproperties As PreferenceProperties Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load xproperties = New PreferenceProperties PropertyGrid1.SelectedObject = xproperties End … Software Development vb.net | |
following the article title, I'm dealing with octave, it goes right on command line. but I need to build GUI for my program to easier interface with people. then I chose Java to build GUI. my problem is to connect my GUI java to Octave. Anybody has ideas to do … Software Development gui java user-interface | |
In the book called gnu c manual I read that the following code has an undefined behavior `i=++i +1`; Because since the variable i is modified more than once between the sequence point,it is not sure that what value will 'i' have..But it is evident that the final value in … Software Development c | |
Hi Guys, Please be gentle with me as im a complete n00b. My favorite language is actually Java which im learning at Uni at the moment. However to throw a spanner in the works they have switched us over to Python, as well as learning Java. My mind has been … Software Development python | |
*I know that this may seem like a re-occuring question, but I can't seem to find anyone who has asked this question in a very succinct manner. They always seem to beat around the bush, instead of clearly expressing themself.* **Here is the situation:** I have an application called S.M.A.R.T. … Software Development file-system java regex | |
This is my code... i'm getting error that "Primary expression missing" in all places where i have ritn desc[i].code or desc[i].cost. May be i'm using wrong syntax for strcutures; #include<iostream> #include<conio.h> using namespace std; struct desc { int code; int cost; }; void del(int x, int count) { int i; … | |
I was trying to set a UniqueIdentifier based on Long. The objective was to give a certain custom Object a unique identifier in order to allow me to store them in a hashmap. I saw someone trying to use the most significant bits. So I realized that the addition of … Software Development java | |
Hi, I have yet another VB question (I am a noob!). Here is my code: Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Try Dim Equip As DataRowView = ListBox1.SelectedValue Dim Equip_Delete As String = Equip.DataView.ToString MessageBox.Show(Equip_Delete) cmd = New SqlCeCommand("DELETE FROM Sensor_Table WHERE Equipment_ID = … Software Development vb.net | |
i need your help urgently finishing my program below. The program is for showing how the semantic network works. the program reads from the text file then when user inputs a question it outputs answer related to the network. i have attached the txt file( semantic.txt) if the user enters … Software Development | |
First, what do I need to add to my Win 7 SP1 in order to execute Python scripts? Second, what's a good Win x64 IDE that's super simple, free of too many bells and whistles, and good at testing and debugging basic textmode Python scripts? I need to be able … | |
Hi all, I'm working on a (Python) program which, in short, is a threaded TCP socket server which creates a new "tab" in a wx.Notebook widget for every incoming connection it sees. I've run into a strange problem where when I call notebook.AddPage(...), one of three things happens: 1. A … Software Development python | |
How to find which operating system is running the PC in C++? Software Development c++ operating-system | |
Can someone help me to make program which find duplicate files in C++? Thanks a lot! Software Development c++ | |
Is it possible to make a cleaner like CCLeaner in VB.NET? If so, could anyone give me some hints or anything to start from? Thanks! Software Development vb.net | |
Hello, I need help with YouTube MP3 Downloader in VB.NET if anyone can send me source, I'll be very thankful! Thanks in advance. Software Development streaming-service vb.net | |
I am trying to get at least 5 minimum values from an array of integer my code attached works but it skips few values public static void main(String[] args) { int array[] = {0, 1, 2, 1, 4, 5, 1, 7, 8, 1, 10, 11, 12, 13, 1, 15, 16, … Software Development java | |
Hello, I'm a beginner in c++. I'm trying to write a program that simulates the game "Tic Tac Twice" (the game is described below). The program works ok until it's time for my checkForWinner() function to do its job. I can't figure out why it's not working. Any help on … Software Development c++ | |
How do I write a recursive function in C++ to display a triangle of * like this using a parameter size (e.g. 4 in the following example): * ** *** **** I am able to write a recursive function to display an inverted triangle like this: **** *** ** * … | |
I am working on a math tutoring program that asks the user two random numbers from 10 to 100, and asks them to key in the correct answer within 5 seconds .the program must ask ten questions showing them and then display the score Software Development c++ | |
Write a program with a function main () and selecting a menu of functions: Generate a programming-random number generator data for lottery ticket / max 100 / with six-digit numbers and store them in an array -Overwrite generated a new array and sort this array in ascending order and display … Software Development c++ | |
In a recent discussion these code snippets were developed to replace Convert.ToInt32 and Convert.ToDouble. The person I was helping had a very large number of conversions to do. In our tests, using these 2 routines we were able to do over 1 million conversions in less than half the time. … Software Development asp.net visual-basic | |
# Have you ever tried using the String.Compare method for a case-insensitive string comparison? # The [documentation](http://msdn.microsoft.com/en-us/library/zkcaxw5y(v=vs.100).aspx) on MSDN for the overloaded method: 'Declaration Public Shared Function Compare ( _ strA As String, _ strB As String, _ ignoreCase As Boolean _ ) As Integer states `Compares two specified String … Software Development vb.net | |
> **How to create an ftp server using a VB.net (uploading and transfering files)??? I need it asap!! send me a video or sample codes!! Unlimited Thank you! God Bless.....** Software Development vb.net | |
Hi I am a Pyth noob and wanted to import a text file .To each line of the text file , assign a (fixed) name and sum a number (in increments of 1 from the first line to the last)using the while command for an assigned name. Lets say I … Software Development python | |
Hi friends..... anybody heip me. how to convert vb.net project into exe file. Software Development vb.net | |
hello. I would like to know how I can make out a Java code from a given mathematical equation like differentiation equations, summation and integration Software Development java | |
I'm a student and I have to make a program with Console application to manage a Bank Account, using Classes. The program must be able to: - Create e new bank account - Deactivate a bank account - Draw money from account - show the account balance I tried to … Software Development c++ | |
#Guess the number game by Johnathan Millsap import random guessesTaken = 0 print('Hello! What is your name?') myName = input() number = random.randint(1, 100) print('Well, ' + myName + ', I am thinking of a number between 1 and 100.') print('Try to guess it!.') while guessesTaken <= 3: print('Take a … Software Development python | |
Hi All, In my opinion, this is the best way to read in text from a csv file. Take for example if you are importing addresses: "1 Main Street","SmallTown","SmallCounty" The above is fine and easy to parse in BUT what if an address like this was entered: "App 1A, Tall … Software Development vb.net | |
Hello everyone; I am new to Python. How can we explain this code step by step. I couldn't understand some parts. myList=[43,21,12,80,3,2,35] end=len(myList)-1 while (end!=-1): swapped=-1 for i in range(0,end): if myList[i]>myList[i+1]: temp=myList[i] myList[i]=myList[i+1] myList[i+1]=temp swapped=i end=swapped print(myList) Software Development python | |
Often we're faced with the need to represent primitive data types as readable/writable bytes that can be sent through a data stream. In Java, there are classes such as DataOutputStream/DataInputStream that can do the work for us, but often a programmer wants to manage the conversions himself (or herself, to … Software Development java | |
I used this code to retrive from one record to another first tried to retrive the first record................. varible decalaration Imports System.Data Imports System.Data.SqlClient Public Class Form3 ' Dim connectionstring As String = Module1.connectionString Dim sqlconn As New SqlConnection(connectionstring) Public sqlDataset As New DataSet Dim da1 As OleDb.OleDbDataAdapter Dim myCommand1 … | |
A real useful piece of code, hence I put it under Z. It does nothing but open and close the door of the CD-ROM player, and pushes the tray in and out. Should your coffee be too hot, you can put it on the moving tray and cool it off! … Software Development c++ | |
These are codes that do absolutley nothing, except to show whart you can do with to much time on your hands. Oh the silliness Software Development c++ | |
The code in this snippet (and attached project zip) demonstrates how to use a background worker thread to monitor a network address (name or IP). It shows how to start and stop the thread and how to update controls in the main thread using delegates. It should be simple to … | |
I'm able to import the file and read it, but I don't think it's saving to the structure. I want to figure out how to save it within the structure so I can search/ delete the contacts. The unfortunately lengthy code is below: #include <stdio.h> #include <string.h> #include <stdlib.h> #include … Software Development c data-structure file-system | |
Hello, I'm working on some kind of a text-based game, and I'm trying to move on from the options being given, and the user selecting "1 or 2", to actually reading a string that was inputted and pick up key words. So far, I've learned how to read a whole … Software Development c++ |
The End.