132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for T'Scoopz

I'm trying to make a linked list, what's wrong with my syntax for adding a node? [code=c] struct data { char name[20]; char number[10]; }; typedef struct node { struct data list; struct node* next; } Node; Node *head = 0; Node *tail = 0; Node *New = 0; void …

Software Development c linked-list
Member Avatar for William Hemsworth
0
93
Member Avatar for Susan90

Hey guys :) After a year of c++, teacher's announced we'll be learning C standard as well, starting with next semester. So anyway, I've been looking through some examples and exercises in a book and found 2 problems I can't seem to solve. (At least not in C). The first …

Software Development c
Member Avatar for Susan90
0
157
Member Avatar for Nyaato

Hello guys, I'm new here, and this is my first post in this forums. Please bear with me if I can't explain what I'm in need of well. Basically, this is part of my assignment, and I'm supposed to find a path from one end to the other in a …

Software Development c++
Member Avatar for Lerner
0
186
Member Avatar for animefun2

Is there any clause in applet that counts down the remaining time given?

Software Development java
Member Avatar for Ezzaral
0
1K
Member Avatar for sfrider0

Is it possible to display in image in a listView box? I'm working on a link checker all the links on a webpage are put in a listView box. Right now I just have the words "Good" and "Bad" by each link and would like to put an image next …

Software Development image listview visual-studio
Member Avatar for ddanbe
0
116
Member Avatar for vskumar19

I hav created an applet window.. now i want to disable d maximise button.. can u plz say me how can i do dat..??

Software Development java
Member Avatar for PoovenM
0
104
Member Avatar for Freaky_Chris

Hi all, i'm looking into doing a little bit of work with the mouse in console applications on windows. I'm using windows.h to get access to functions such as ReadConsoleInput. I've created a simple program that just prints a string whenever the left most mouse button is clicked. However sometimes …

Software Development c++
Member Avatar for Freaky_Chris
0
201
Member Avatar for flash121

Hello! I want to go through a string char by char and i've heard a byte ptr is the way to do this, but i'm having problems with using it. I tried with the code below, but i get an error saying: "comma or end of line expected" at the …

Software Development assembly
0
298
Member Avatar for cinderla

hi, i need to read a file and to store contents in buffer. to read the first 8 bytes and to move the pointer to read the strings in that file. could any one help me?

Software Development c++
Member Avatar for VernonDozier
0
92
Member Avatar for elkoshli

Hi I have exam after 12 hours, please help me to writing those programs…… And thank you 1. Write a c++ program to output the histogram of a sequence of 10 positive integers. this program first asks the user to enter 10 integers. then write the histogram of this sequence …

Software Development algorithm c++
Member Avatar for Salem
0
105
Member Avatar for SQ89

I have an Array A[N]={1,2,3,4,5,6}; and I want to split it to 2 arrays of size N/2 such that B = 1, 2, 3 and C = 4, 5, 6 here is my program but there is something wrong with array C Can you help me with it ? [CODE]#include …

Software Development c++
Member Avatar for SQ89
0
97
Member Avatar for anez247

hey peeps..i got a problem in this project and will be grateful if someone can help pls..thx

Software Development java
Member Avatar for Ezzaral
0
103
Member Avatar for serkan sendur

hi, i need to create a c shared library on unix platform using korn shell. can you provide me with some sample codes please. thanks

Software Development c c# c++ unix
Member Avatar for serkan sendur
0
131
Member Avatar for darkyere

Hello, i have this code who ive been using whitout any problems. and then suddenly at says acces violation at address 004b84 in module "SecurityScreensaver.exe" when i trie to save a tstringlist to a file. this is how the code looks procedure TForm7.Button8Click(Sender: TObject); var s : tstringlist; begin savedialog1.Title …

Software Development pascal
Member Avatar for LizR
0
293
Member Avatar for krhillery

So I've spent the past 2 hours trying to work all of this out, but I am still getting an error message that seems out of place. import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.*; public class HiLo extends JApplet { Image cardImages; /** * An image that holds the …

Software Development java java-swing
Member Avatar for krhillery
0
167
Member Avatar for MaracKoMarac

Hi all. I have a very simple app, but I don't know how to get position of the circles. Here's the code: [CODE] from Tkinter import * master = Tk() global w def dotToDot1(event): global w circles = 0 x = event.x y = event.y c1 = w.create_oval(x, y, x+10, …

Software Development python tkinter
Member Avatar for MaracKoMarac
0
121
Member Avatar for csaund1

How do I code a C++ program that used an array to find an average of positive numbers. Then outputs the result

Software Development c++
Member Avatar for chococrack
0
178
Member Avatar for IT_Techno

hi, ihave this code in c# for crating cookies : if (saveInCokies_CheckBox.Checked) { HttpCookie myCookie = new HttpCookie("AtterehWebCookies"); myCookie["userName"] = userName_TextBox.Text.Trim(); myCookie["password"] = password_TextBox.Text.Trim(); if(employee_RadioButton.Checked) myCookie["loginType"] = "employee"; else if(lawyer_RadioButton.Checked) myCookie["loginType"] = "lawyer"; else if(customer_RadioButton.Checked) myCookie["loginType"] = "customer"; Response.Cookies.Clear(); Response.Cookies.Add(myCookie); Response.Cookies["AtterehWebCookies"].Expires = DateTime.Now.AddDays(30); } after that i want to read …

Software Development c c# c++
Member Avatar for LizR
0
124
Member Avatar for joanne88

Hello all, I am working on an assignment and with help I have managed to complete the following: [CODE]using System; using System.Collections.Generic; using System.Text; namespace StudentGradeDistributions { class Program { private static string asterics(double grade) { return new string(' ', (int)grade / 2) + "*" + new string(' ', 50 …

Software Development
Member Avatar for LizR
0
83
Member Avatar for thinfineline

I'm trying to get the game below to work with 2 players. It's setup the way I need it (even the entering the numbers for the die instead of using a rand function and not allowing the bet amount to change(crazy teacher)) I just can't figure out how to make …

Software Development c++
Member Avatar for StuXYZ
0
415
Member Avatar for hkinser

Hello everyone. I've read several articles on the internet in trying to figure this out; however, those article seem a bit over my head apparently and I can't seem to find a code example that is simple and to the point to implement. I'm coding a password manager program in …

Software Development encryption file-system listview vb.net
Member Avatar for arbalu
0
214
Member Avatar for karang

Hi I am writing a function in C++ extern "C" { __declspec(dllexport) void CreateInputFilter() { ITestPtr pTest = createInstance<ITest>(m_Test); } } But I am getting this error m_Test' : undeclared identifier The main thing is above this function I have written the same code above in another function but there …

Software Development c++
Member Avatar for karang
0
218
Member Avatar for webdude12

I have a PHP script I am trying to convert to PERL and need some help. Here is the code in PHP [code] $store_list_name = $prod[10]; $category = $prod[11]; $sub_category = $prod[12]; $searchfor = $store_list_name . "->" . $category . "->" . $sub_category; $getcat = mysql_query("SELECT * FROM categories WHERE …

Software Development mysql perl php
Member Avatar for chrisranjana
0
121
Member Avatar for chanthung

hi to all again, I want to know how to disable the Maximize option of a window using a VB code. I believe one way to have a fixed window size is to disable the Maximize option?? Can anyone here please help..... Thanks a lot again in advance. Have a …

Software Development visual-basic
Member Avatar for sierrainfo
0
139
Member Avatar for faizurrahman

I want to add checkbox for each record in datagrid on windows form with c# vs 2003. Please any help can solve my problem. Howdo do this.

Software Development c#
Member Avatar for LizR
0
75
Member Avatar for Gaspacho

Hi there, I am currently having trouble with one thing. I am working on application which should work like this: When I open it the login_form shows up, I insert login information and then it opens the main_form and gives it the login information and disappears. The problem here is …

Software Development
Member Avatar for LizR
0
72
Member Avatar for Clockowl

EDIT for moderators: Yes that "one might think that swapbuffer is slow" was me. Heh. :D Could someone change the topicname to "Optimizing OpenGL"? Thanks. Hey guys, I'm trying to optimize this OpenGL program, so the problem isn't C, but the program is. The program loads a vanilla WaveFront .obj …

Software Development c opengl
Member Avatar for veelck
0
1K
Member Avatar for abernut++

I am new to the fascinating world of C++, I should of stuck with Spanish.. But I have an assignment due and I am so close I can taste it. I am having an issue with my global functions. I can not get my average function nor my maxGrade function …

Software Development c++
Member Avatar for cikara21
0
143
Member Avatar for murderotica

Hello, I've been working with threading these days. I want to put a progress bar which is in a separate form but in the same namespace. My form1 class has all the controls for my drag and drop functionality while in my form2 class will be my progress form in …

Software Development
Member Avatar for LizR
0
124
Member Avatar for Srinivas14

Hi can any one plz send me the java code for sending sms through some gateway plz reply this asap..or else plz assist me how to proceed.. Thanks, Srinivas

Software Development java
Member Avatar for stephen84s
0
324
Member Avatar for karang

Hi I have build one dll project . I want to use that dll in another project. But when I include the header file of the project I am getting an error Error 2 fatal error C1189: #error : "include 'stdafx.h' before including this file for PCH" Am I missing …

Software Development c++
Member Avatar for cikara21
0
311
Member Avatar for dhirajksaini

I am working on an MFC application which has a chat module in which i want to implement File Transfer/Upload to server using HTTP Post Method . Please help me Thanks Dhiraj

Software Development c++
Member Avatar for Laiq Ahmed
0
131
Member Avatar for sandarwin

Hi, Are there any software that I can get back from VB executable file to VB source code? Please help me.

Software Development visual-basic
Member Avatar for sandarwin
0
143
Member Avatar for Headerandy

Hi friends , :( I've made a programme that can read a file and if it finds a peticular string in the file it shows the whole line. I've used "stringstream" to extractone by one and I checked that by the If loop on true condition it prints the whole …

Software Development c++ file-system
Member Avatar for Headerandy
0
116
Member Avatar for sravankolla

Hi all, I am working with a project which includes Crystal Reports in Vb.Net and SQL Server2000 as Back end. The code in button click is [code] str5 = "D:\AttendanceReport.rpt" If Not IO.File.Exists(str5) Then Throw (New Exception("Unable to locate report file:" & vbCrLf & str5)) End If str6 = "SELECT …

Software Development sql vb.net
Member Avatar for sierrainfo
0
166
Member Avatar for DemonGal711

Okay, I have to store an adjacency matrix for a graph problem I'm doing. Let's use this picture to explain it right now. [url=http://i21.photobucket.com/albums/b272/DemonGal711/Program%20Pic/pic.jpg]Click here[/url] I figured, I'm use a linked list to store it where each node uses the struct [code]struct Node { char item; Node* vertex; Node* next; …

Software Development c++ linked-list
Member Avatar for DemonGal711
0
182
Member Avatar for NewbProgramma

I'm coding for fun and I can't figure out how to compare two string in an if (string1 < string2) type statement. I figured if I could somehow get values for those strings it would be easy to do the if statement. All help is highly appreciated : )

Software Development java
Member Avatar for verruckt24
0
112
Member Avatar for tori10

I have writtern some code but apparently i have not initalised two parts of it, now to my knowledgde i have and i can not see why it is showing warnings for it. i hope you can help. [CODE=cplusplus] double m, l, dm, dc, xsq, D; W_line_Sum(line ,t); W_line sums; …

Software Development c++
Member Avatar for Salem
0
125
Member Avatar for Undermine

Hello, I have a program that's 95% written. I am getting weird results though, so I will need you to fix it and EXPLAIN why that worked. This should take an experienced programmer less then 30 minutes. I would post it on here, but it's over a thousand lines of …

Software Development c++
Member Avatar for vmanes
0
99
Member Avatar for RenjithVR

Hi All, Can anyone tell me about a library that helps me to read contents from /etc/resolv.conf file and also update the same file with new entries. Does this possible with Resolver library routines? Any useful links or sample programs regarding this? Thanks in advance. Renjith

Software Development c
Member Avatar for stephen84s
0
196
Member Avatar for littlebean21289

I have had to miss my last classes due to having to go to my doctor in order to prep me for surgery. My professor has placed the final assignment online and i have no where to begin. I'll take any help and would like to add that while i …

Software Development java java-swing
Member Avatar for BestJewSinceJC
0
150
Member Avatar for cproud21

I have the following code that produces an applet of two eyeballs. I have a mouseMotionListener that is set so that when the mouse is moved around the pair of eyes, the eyeballs follow the pointer. I have the eyeballs set up in four locations. To the left, right, north, …

Software Development java java-swing
Member Avatar for BestJewSinceJC
0
157
Member Avatar for zigpy_siva

hi I am creating an CSV file in java by putting the Korean values in a properties file like "\uc81c\ubaa9 \uc18c\uc2a4\uc5d0\uc11c \uc5b8\uc5b4" [B]which is properly coming in the CSV file (like "번호 출판물의") when I open it in the notepad and select the font as Arial Unicode MS[/B], but when …

Software Development file-system java
Member Avatar for zigpy_siva
0
617
Member Avatar for namehere05

[CODE]void StrCpy(char * Dest , char* Src ) { while(*Src){ *Dest = *Src++; cout << *Dest ++; } } void main() { char* string1 = "\0"; char * string2 = "EL"; StrCpy(string1, string2); //cout << string1; //must output EL } [/CODE] Im trying to output EL after its copied to …

Software Development c++
Member Avatar for namehere05
0
614
Member Avatar for vmars

Greetings! I just downloaded Python 2.6 from Python.org . It came with IDLE Gui. Poking around the internet, I see a bunch of other pthon related names like: IDLE, wxPython, Tkinter, Widget toolkit, PyGTK, PyQT, Tk GUI . I am not really sure what all I have, and what else …

Software Development gui python tkinter
Member Avatar for Kezoor
0
317
Member Avatar for sfrider0

I created the first method, which gets and displays all the links in a web page in a listView when a button is pressed. I found the second method on a site that supposedly checks to see if a link is valid. I need help on incorporating it into my …

Software Development listview
Member Avatar for sfrider0
0
208
Member Avatar for Awais Ahmad

I want to writer a program in which i input an array? let the array i entered is : 4 1 2 3 The prigram can take values and find the positions of the character in the array such that the smallest on 0 position and so on. The result …

Software Development c++
Member Avatar for Murtan
0
119
Member Avatar for java_girl

Hi. This is NOT a homework assignment (self-interest only). The exercise asks me to write a function which accepts two strings and returns a pointer to the longer of the two. [code language="C"] #include <stdio.h> #include <stdlib.h> char* longer( char str1[], char str2[] ); char* str_ptr; int main( void ) …

Software Development c
Member Avatar for devnar
0
11K
Member Avatar for slimjimmer

Hi, In this piece of code in my program I am receiving the following error request for member âyâ in something not a structure or union. [code=c]struct intpair { int x ; int y ; } ; struct intpair makeintpair(int x, int y) { struct intpair temp ; temp.x = …

Software Development c data-structure
Member Avatar for Luckychap
0
100
Member Avatar for ruelk

Hello all. I am teaching myself C# and I have been fairly dedicated to solving my own problems. However, for some reason I am just stumped. I have a main form that manages alot of data. To insert data into the form you push a button to bring up a …

Software Development
Member Avatar for ecoloney
0
198

The End.