132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for hyperion

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
Member Avatar for Narue
0
164
Member Avatar for frogboy77

Can anyone tell me how to find the maximum value for a specific variable(i.e int, long long int, double)? Also is there a way to set a variable to this value(without knowing it and typing it in)? Using Dev C++. Any help appreciated.:)

Software Development c++
Member Avatar for frogboy77
0
90
Member Avatar for logicslab

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++
Member Avatar for SgtMe
0
261
Member Avatar for mahdi68

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#
Member Avatar for Mitja Bonca
0
904
Member Avatar for javaSux

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
Member Avatar for stultuske
0
211
Member Avatar for oggiemc

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
Member Avatar for apines
0
314
Member Avatar for ceyesuma

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
Member Avatar for ceyesuma
0
126
Member Avatar for stharmon

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
Member Avatar for rehm
0
4K
Member Avatar for GeekaByte

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
Member Avatar for Luc001
0
1K
Member Avatar for TheBaby7591

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
Member Avatar for vinitmittal2008
0
182
Member Avatar for zarulhamdi

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
Member Avatar for zarulhamdi
0
83
Member Avatar for ufancha143

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
Member Avatar for hyperion
0
101
Member Avatar for MissaDev

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++
Member Avatar for mitrmkar
0
131
Member Avatar for sunny120786

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 …

Software Development api c++
Member Avatar for daviddoria
0
261
Member Avatar for thestrokes

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++
Member Avatar for daviddoria
0
998
Member Avatar for Snehamathur

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
Member Avatar for Snehamathur
0
187
Member Avatar for Neo63

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
Member Avatar for apines
0
139
Member Avatar for cwarn23

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++
Member Avatar for cwarn23
0
112
Member Avatar for tech9x

[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++
Member Avatar for jonsca
0
383
Member Avatar for apanimesh061

[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
Member Avatar for peter_budo
0
122
Member Avatar for muze

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++
Member Avatar for muze
0
86
Member Avatar for madan.uba@gmail

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
Member Avatar for Ancient Dragon
0
611
Member Avatar for tastyTreeHUGGER

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
Member Avatar for tastyTreeHUGGER
0
453
Member Avatar for WildBamaBoy

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
Member Avatar for SgtMe
0
2K
Member Avatar for iamchuckb

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
Member Avatar for iamchuckb
0
4K
Member Avatar for dre-logics

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
Member Avatar for kvprajapati
0
681
Member Avatar for becka221

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
Member Avatar for vinitmittal2008
0
152
Member Avatar for selsium

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
Member Avatar for selsium
0
117
Member Avatar for c4ytr3

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 …

Software Development dataset vb.net
Member Avatar for c4ytr3
0
73
Member Avatar for naveedqadri

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
Member Avatar for naveedqadri
0
139
Member Avatar for rcossy1023

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
Member Avatar for mrnutty
0
98
Member Avatar for spooder weld

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++
Member Avatar for spooder weld
0
366
Member Avatar for cwarn23

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
Member Avatar for cwarn23
0
173
Member Avatar for mybluehair

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++
Member Avatar for Duoas
0
423
Member Avatar for thisischris

[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++
Member Avatar for thisischris
0
97
Member Avatar for thisischris

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++
Member Avatar for thisischris
0
100
Member Avatar for PinkalPatel

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
Member Avatar for Unhnd_Exception
0
276
Member Avatar for ntaraaki

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 …

Software Development c c# c++
Member Avatar for ntaraaki
0
900
Member Avatar for Superstar288

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
Member Avatar for Superstar288
0
109
Member Avatar for bigman91

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 …

Software Development c++ video
Member Avatar for daviddoria
0
100
Member Avatar for deniseblue

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
Member Avatar for deniseblue
0
172
Member Avatar for hauda

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
0
63
Member Avatar for BonezAphex

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 …

Software Development html-css vb.net
Member Avatar for codeorder
0
97
Member Avatar for d8m9

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
Member Avatar for d8m9
0
240
Member Avatar for Dartz654

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
Member Avatar for Dhruv Gairola
0
192
Member Avatar for plasticfood

[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
Member Avatar for plasticfood
0
117
Member Avatar for claudiordgz

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++
Member Avatar for claudiordgz
0
257
Member Avatar for Wheen

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
Member Avatar for Diamonddrake
0
210
Member Avatar for rmsagar

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
Member Avatar for cfajohnson
0
111
Member Avatar for jems5

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 …

Software Development display gui java
Member Avatar for quuba
0
214

The End.