132,726 Archived Topics
Remove Filter ![]() | |
Hello all, Info: I am using Pelles C compiler. Some code first: Following is the linked list structure I am using. [CODE]typedef struct _NODESTRUCT { void* data; struct _NODESTRUCT* next; } NODESTRUCT, *PNODESTRUCT;[/CODE] Method to add a new node to linked list: [CODE]PNODESTRUCT AppendNode(PNODESTRUCT rootNode, void *data) { PNODESTRUCT tempNode; … Software Development c data-structure linked-list | |
Hi Friends, I am new to C++ wxwidgets world . I plan to study same, I am basically from web programming but I like to study this new technology come in C++(I am newbie there too!). I have 2 types of C++ distributions installed in my PC with Windows XP … Software Development c++ | |
Hi can any body tell me how can i send arabic sms with at-command in C# ? i try with this code but the message show incorrect on phone ! [CODE]serialPort1.BaseStream.Flush(); string cb = char.ConvertFromUtf32(26); System.Threading.Thread.Sleep(2000); this.serialPort1.Write("AT+CMGF=1\r"); this.serialPort1.Write("AT+CSCA=servicecenter\r\n");//Ufone Service Center this.serialPort1.Write("AT+CSCS=\"" + "HEX" + "\"\r\n"); this.serialPort1.Write("AT+CSMP=\"" + 1 + "," … Software Development c# | |
I'm working on a grading program that will require the use of a couple classes. The program contains a list of "program assignments" which there are 5, and 3 test scores. I'm stuck writing the average methods Along with the total exam scores/program scores. Any help will be appreciated! Here's … Software Development java | |
Hi, Im getting the followin error in one project class in my application: The project was not built since its build path is incomplete. Cannot find the class file for DataControl. Fix the build path then try building this project DataControl is a class in another project in the same … Software Development java | |
Does any one know where there is some Java code already written to handle deleteing directory trees? Maybe with some undo functions? Software Development java | |
Hello, I have written a script to automate a software install. I am running the script as root, but need to su to another user to configure and complile the program properly. Whenever I do the shell script su's to the user properly but the scripts stops executing until I … Software Development perl redhat shell-scripting | |
Hi guys, I'm trying to find a drag and drop cursor for use in a program. It is not in the standard Windows cursors. It's the one you see when moving a control in Visual Studio or when reordering slides in powerpoint - arrow with rectangle below. Please let me … Software Development vb.net visual-studio | |
I'm supposed to create a c file that contains functions perform certain tasks with a structured matrix. My h file and current c file are as follows. [code=c] typedef struct { int rows, cols; //matrix dimensions int **elements; //element array } Matrix; void matrixInit (Matrix* m, int r, int c); … Software Development c | |
how to open all serial port in vb.net? i know how to open by getportname..but how to open all??can we do it? Software Development vb.net | |
hi there my question is simple and i only need a hint. "how could i develop a applications which can make a new EXE application. like this,.... the end user runs the application and when he clicks on a button named "create a new calculator", the application will create the … Software Development | |
Hi I'm New Here. Although I have been reading in the past and appreciate all the help that the board has given me already. I have a homework assignment that I need the user to enter how many names they want to enter, then enter that number of names, display … Software Development c++ | |
hello, I want to write 2 programs with C , one work on Robot1, the other work on Robot2. So I want the program to send a signal from Robot1 via Bluetooth to Robot2 and Robot2 handles and accepts this signal (message)and reply to Robot1. how to code this? please … | |
Hi.. I don't know how to do the draw condition & error checking on the following tic tac toe codes, can anyone help me to complete this with elaborations and explanations please.. thanks #include<iostream> using namespace std; char box[9]={'1','2','3','4','5','6','7','8','9'}; void drawboard() { cout<< box[0]<<" | "<<box[1]<<" | "<<box[2]<<endl; cout<< "---------"<<endl; … Software Development c++ | |
Hello I am new to this community and newbie to c language. I want to code for modulus operator (%) in c.. Need Help. Thanks in Advance Software Development c | |
So I'm writing my own simplified LinkedList class. When I compile my code I receive this error Error: F:\Files\ICS\Card\LinkedList2.java:3: name clash: indexOf(E) in LinkedList2<E> and indexOf(java.lang.Object) in java.util.AbstractList<E> have the same erasure, yet neither overrides the other The code is public int indexOf (E element) { Link<E> o = new … Software Development java | |
Hi, I have been working on a way to reverse bitwise Xand with c++. I have managed to do most of it but can anybody tweak this script I made so it works to its full potential. At the moment this script tries to return the variable x from ((12 … Software Development c++ | |
[code=c++]void getCommands(char * cstr,char * p,string *userInput,string Input) { string currentCommand = ""; strcpy (cstr, userInput.c_str()); p = strtok (cstr," "); while (p!=NULL) { p=strtok(NULL," "); cout << p; } [/code] ERROR `c_str' has not been declared request for member of non-aggregate type before '(' token I have #include <cstring> … Software Development c++ | |
[CODE]package stu; class student { int age; String name; public student() { name = "Animesh"; age = 19; } public void display() { System.out.println("Student name is : " + name); System.out.println("Age is :"+age); } }[/CODE] [CODE]import stu.student; class student1 { int marks; String sub; public student1() { sub = "Mathematics"; … Software Development java mathematics | |
hello guys...Due to some reasons I need to pass a variable's address to MeessageBox(). I am using a function which returns a pointer to the item selected from combo box. Now I want to show this item's name in the MesageBox(). How can I do that? thnx`````` Software Development c++ | |
0 down vote favorite hi, I had a problem with adding reference in my C application. I am unable to add linker reference to "libiconv" in my data compresser project.I have download "libiconv" library but confuse in adding reference which show error in compiling.I'm using Dev C++ for developing my … Software Development c | |
I need help writing an anagram that test 2 strings. [COLOR="red"]os[/COLOR]: microsoft [COLOR="red"]compiler[/COLOR]: visual studio Here are some of the directions: Read the first string, then write a loop that uses an array of 26 ints to count how many times each letter has been seen. Read the second string, … Software Development c c# c++ visual-basic visual-studio | |
I used someone else's code as an example to start my game and move my character around. I understood the majority of it but there's a couple of parts I don't get. I want my character to move Up when the up arrow is pressed, but smoothly! My code right … Software Development python | |
Hi all, I'm new here and a little flummoxed by this problem. I am working through the process of creating a notepad type program in java to get a little more experience with the language. My save functionality is not working. This is not unexpected; the part that is really … Software Development java java-swing xml | |
I use Visual studio 2008 I use MySQL 5.1 I have created een database (test) table (table1 ) with field (Images) Data Type mediumblob size The maximum length of mediumblob is [COLOR="Red"]16777215[/COLOR] (2^24 - 1) characters I want to Check file size before save in MySQL table1. [COLOR="Green"]I want to … Software Development file-system mysql vb.net visual-studio | |
Hi, Im guessing this is an easy piece of code, but i cant find the answer Im looking for anywhere. I have 20 files each with a different a list of numbers (not all the same amount of numbers). Each file is called data-01.txt, data-02.txt... to data-20.txt.I need to open … Software Development c | |
Hello all, I have a small helloworld program and try to run it on the command prompt. [code] public class Hello { public static void main(String[] args) { System.out.println("Hello, World!"); } } [/code] i have my file in C:\test\Hello.java C:\test>javac Hello creates a class file in c:\test\Hello.class but c:\tets>java Hello … Software Development java | |
i use crytal report with vb 2008 i make a dataset with 3 field: id (number), name (strng), salary (double) and i have 2 record: 1: id: 1, name: abc, salary: 1,000,0000 2: id: 2, name: def, salary: 2,000,0000 next, i make report on dataset and when show is true … | |
Hi all , I am trying to get input from user then convert it into specific format and hold it in new variable. here is my code [code] Dim dtmInputBox As String = "" 'Dim strDTM As String '= "" Do Until Not dtmInputBox = Nothing dtmInputBox = InputBox("Enetr DTM … Software Development vb.net | |
I am trying to make a contains method where it will search for a name using the compareTo method of the Comparable interface. Here is my problem, It will return true if found but will stay in the while loop and not end if it is not found. AND I … Software Development java | |
I'll try to keep this short. I'm writing a 2D platforming engine and I had good collision detection, but I had to add a separate condition for every platform I had. Essentially the collision function compares the sides of 2 rects. Here is a code snippet of the for loop … Software Development c++ | |
Hi, I have just started python as after a chat with a friend I have discovered it would be the most suitable language for my latest project. The problem I have come across is I need a sha1 function written in python. I don't want to use the built in … Software Development algorithm open-source python | |
I've got a chunk of code that opens up a txt file with 5 or 6 lines inside. I only need to grab the first line of the txt file and put it inside of a variable. The problem is that when I use this code, instead of grabbing the … Software Development c++ | |
[CODE]void DeleteMovie(vector<Movie> &M1){ cout << "Option selected: delete a movie from the database" << endl; string T1; int TT=0; if(M1.size()<1){ cout << ">Error: There are no movies to delete.<" << endl; } else{ cin.ignore(100,'\n'); cout << "Enter the title of the movie you want deleted: "; getline(cin,T1); for(int i=0;i<M1.size()+1;i++){ if(M1[i].Get_Title()==T1){ … Software Development c++ | |
I'm having trouble with vectors. I have a class that I read from a file, then I insert it into a vector. It should work fine, but my compiler crashes every time. Am I not using the vector correctly? [CODE]#include <iostream> #include <string> #include <iomanip> #include <fstream> #include <sstream> #include … Software Development c++ | |
Window Application UserControl Contain two combobox and Gridview Control . When i add this control to my form and change the value of combobox selected item then the value not get into the form But when i debug the code and reevaluate (Quick Watch it) then i get the value … Software Development vb.net ![]() | |
Hi,everyone! I have to write a program that can find zip codes. I have to read the codes from a txt. file, so i have to use struct arrays In the main program, I just have to enter any random zip code and the program should be able to tell … | |
Hi everyone i was just wondering if anyone here has every created a Neural Network for predicting Sports results. i was interested in doing this however I'm not really sure where to start. if you have done something like this before could you just give me some feedback. also do … Software Development java | |
i have a problem getting it to display the average score of the players entered and also the player names and their scores for those that scored below the average. it works other than that. its late, ive been at this and another program for hours im probably not thinking … | |
I am not understanding how to fix these problems. I have placed bracket, removed brackets. Could someone please help break this down. most of my error is cannot find symbols, line 80 is unclosed character, 113, 121, 126, 127, 137,is class, interface or enum expected. I am suppose to modify … Software Development java user-interface | |
Hello, I was wandering how to save the contents of a JPasswordField into a text file, i thought to use the [CODE]getPassword()[/CODE] method, but a [CODE]null[/CODE] is saved into the file instead. Would appreciate it if I could get some initial ideas. Thanks for your time, Sam Software Development java | |
I'm trying to make a program where when you click a button it will retrieve each value of certain things on a webpage. I.E; [url]http://thecaconline.net/cbl/player/OoHid…[/url] On that webpage it shows Clan,Kills,Etc. I want to make it to where a Label will Say "Kills:" And another label next to it will … | |
Hi, Id like to generate a nine-digit combinations of 52 characters of alphabet (a..z and A..Z). My thought is: [LIST=1] [*]Generate nine-digit combinations of numbers from 0 to 51 [*]Use these combinations as indexes of [CODE]char[] alp={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};[/CODE] [/LIST] Iam sure its very easy.. Im learning Java for one month (once … Software Development java | |
I downloaded the JDK and have started making simple applications (ex: Hello World). Is it possible to put this onto a website, and if so how do I go about doing that? Software Development java | |
[CODE]System.out.println("what is your name? "); String name = kb.nextLine(); for(int i = 0; i < member2.size(); i++){ if(member2.get(i).equals(name)){ System.out.println(name + " is a member. "); break; } else{ System.out.println(name +" is not a member. "); break; } [/CODE] i did a system.out.println on the member2 arraylist (String arraylist) and it … Software Development java | |
Hi guys I got a generic question (looking for a generic answer): I have to load a DLL into C++, I've been playing around all day with it trying to access the methods (I have a big manual for the DLL), so far I have tried the next: 1.- #import … Software Development c++ | |
I've made a program that runs in the background (No gui, no console, nothing), and I want to make it so that no matter what window is active, if I hit a keyboard shortcut (Lets say, ctrl + shift + alt + space + g), it executes some code. How … Software Development gui | |
I am trying to search files starting with the name properties.* inside a directory and assign to an array. When I try to print the array outside the loop, it shows empty. Inside the do loop, it prints fine. How will make this array global or take the values outside … Software Development shell-scripting | |
The following code piece must display correct message in GUI according conditional statement. When tested using void main, I get the result as expected. However, when I test using applet the result is OK for the first if(....) statement but freezes on the second. - if condition OK then compute … |
The End.