199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for markfisher

Hello everyone I have been working on generic C data structure (Doubly Linked List) and I have a question: ------ List.c ----- [code] struct node { void *data; struct node *next; struct node *prev; }; struct list { unsigned int length; struct node *head; struct node *tail; }; typedef struct …

Member Avatar for markfisher
0
161
Member Avatar for CurtisEClark

I'm making this code for class but it will only display the number of days as 28 29 or 30. Im new to Java and would really appreciate help. [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package days; …

Member Avatar for AndreiDMS
0
124
Member Avatar for Iamthedude

I am attempting to get an input that can have varied types, float, int and a string are the three, I'm using sscanf to analyze the input from a buffer but for some reason I am getting memory access violations and I don't really know why. Main program: [ICODE] #include …

Member Avatar for Iamthedude
0
121
Member Avatar for runningbull

The password salt (the byte array) can be any random collection of numbers - so long as it matches in both the encrypt and decrypt methods. Also - the same password key needs to be used in both encryption and decryption.

0
356
Member Avatar for kde

I have binary search - this one , but i need to change it like this , that it will search : for example we have array {1,10,11,12,15,16,22,22,22,22,30,40} I want to find 22 but not randomly - or it will be first 22(that goes after 16) or last 22 (that …

Member Avatar for Ancient Dragon
0
94
Member Avatar for ppotter3

Hello! I have a question regarding the set up of my binary search. For my program I am working on, I have taken a .txt file full of first names and sent those first names to a string array. The names are then sorted, and from there I ask the …

Member Avatar for mitrmkar
0
714
Member Avatar for jigglywiggly

Ok... so i am making a rather simple calculator, that solves for either derivatives or a polynomial. Though I have to make my own linkedlist is the challenge. Ok, I will just copy and paste the LinkedList.cpp file: [code]#include <stdlib.h> #include <cstdlib> #include <string> #include <cstdlib> #include <iostream> #include <algorithm> …

Member Avatar for jigglywiggly
0
222
Member Avatar for schoolboy2010

Hi... I'm trying to write a program that reads data(numbers) from a text file into an array, finds the average and sorts it in ascending order then outputs the result into a txt file. Here's what I've done so far... it's not running, pls help [CODE] #include <iostream> #include <fstream> …

Member Avatar for schoolboy2010
0
106
Member Avatar for rwill357

I have been given the task of finding the complexity of the function used to find the kth smallest integer in an unordered array of integers. Below I have displayed the function I am analysizing. I have shown the steps as I understand them. Any help in understanding this would …

Member Avatar for Anarionist
0
412
Member Avatar for Lsmjudoka

I have a PHP script set up to regenerate a game character's statistics(health, energy, etc...). The approach I'm using is to store the result of a call to time() along with the character's data, and then when I pull the data out of the database I subtract the time of …

Member Avatar for Lsmjudoka
0
75
Member Avatar for nunos

Given a vector of bytes with length multiple of 8, how can I, using mmx instructions, convert all 2's to 5's, for example? [code] .data v1 BYTE 1, 2, 3, 4, 1, 2, 3, 4 [/code] Thanks.

Member Avatar for nunos
0
108
Member Avatar for WaltP

I have a page with a navigation column and a data column that I wish to control separately, both sides use forms. When I scroll down and click on a button on navigation side I want the data side to change accordingly but I want the nav side to stay …

Member Avatar for diafol
0
100
Member Avatar for powerbox

Hi guys I just need some enlightenment on how I should implement one of my projects. I've been migrating my codes from unmanaged to manged code and I chose Java as one of our primary PL to use. From time to time I've used some of Java products like GlassFish. …

Member Avatar for pelegri
0
248
Member Avatar for NoID

Hello Guys, i have this text area. [code] <td><font>more Information</font></td><td><textarea cols="45" rows="5" name="Details" ></textarea></td> [/code] However someone has just filled this form, am not sure how much he wrote as when i got to my admin side that i have created it shows some of the text, id say 3,4 …

Member Avatar for diafol
0
90
Member Avatar for sfrider0

I just need to be able to get and read the text in my gmail inbox using c#. I've googled it but mostly all I found was how to send, which I already know how, email. I just want to connect to my own account. I don't need to get …

Member Avatar for sfrider0
0
204
Member Avatar for Lukezzz

Hi, I wonder how it would be possible to pass a String to the clipboard. If you normally select a textstring in for example WordPad and press Ctrl-C, you copy this string to the Memory/Clipboard so you can Ctrl-V that text somewhere else. I wonder how that would be possible …

Member Avatar for jonsca
0
114
Member Avatar for Soileau

I am getting a seg fault when I try to run this code. The compiler is also giving me odd warnings about how an integer constant is too long for "long" type. Here is the code: Declarations [CODE] #include<stdio.h> #include<string.h> #include<stdlib.h> void printstates(){ printf("Enter the number for the corresponding state:\n\ …

Member Avatar for Soileau
0
134
Member Avatar for MrNoob

oke I was coding some stuff involving 2d array allocating i normally know how to do it in main coz you don't need to pass adr main ptr that get's allocated but when i made it i got somewhat confused I don't know why it went wrong [code] #include <stdio.h> …

Member Avatar for MrNoob
0
116
Member Avatar for MDGM

Hi all, Im doing my myspace profile and im using submit buttons in a form and the form action as the url for the page that the user gets taken to, however my external links dont work, and i also want them to be opened in a new window. How …

Member Avatar for Pharoah
0
118
Member Avatar for GregPeters

Ok this is the problem... Basically when someone enters a figure, say £100, I want to remove the £ sound before doing some processing. at the moment I have this: [CODE] program remove_pound; uses crt, sysutils; var s: string; p: char; begin P := chr(156); Writeln('Please enter an amount of …

Member Avatar for GregPeters
0
2K
Member Avatar for A_Dubbs

I am a beginner programmer who is moving on from the basics of python to wxPython. I have the book [I]wxPython in Actio[/I]n and am using it as a reference while I make GUI programs for fun (still haven't sat down and read through the book, will someday). I am …

Member Avatar for Ene Uran
0
1K
Member Avatar for Ap0ca1ypse

Hello, I can pull 3 tables data into my program and read from all of them, i can update all 3 datasets but when it comes to updating the actual database i can only send the updates from the last dataset. [CODE] Imports System.Data Dim con As New OleDb.OleDbConnection Dim …

Member Avatar for Ap0ca1ypse
0
110
Member Avatar for glenlivet

I'm pretty new to java and I've read some documentation on Layout specifically BoxLayout. I'm not hung up on BoxLayout but it seemed to do what I need. Problem is that label (status) is not left aligned and I can't seem to force it to the left. It will move …

Member Avatar for glenlivet
0
96
Member Avatar for Xeros606

I've taken a few classes in high school that used java (including AP Computer Science A/AB) and have a grasps on the basics of the language. However, I know nothing on making an actual application, since most of the projects we made in class were simple little things; their main …

Member Avatar for mohamedsafiq
0
89
Member Avatar for Kristensen292

Hello i have a problem, i need the code for tracking the mouse movement in VB 2008. my program needs to make a pop-up window when the mouse have moven an inch ( ex.) some code suggestions is needed, thank you - Martin

Member Avatar for Kristensen292
0
2K
Member Avatar for vimals

These are sheme codes.I intend to put the first two values in a list.. Everytime I run the codes,I get some (#<promise> . #<promise>) ..I am pretty sure of my codes bt nt so sure y am nt getting the intended results..I would be highly obliged to those who cn …

Member Avatar for vimals
0
62
Member Avatar for kings

hi, can someone tell how to upload a file in php.i want to know the difference betweeen uploading a file and storing it in a folder and uploading a file and storing in a database.i want to know which method is good

Member Avatar for mohamedsafiq
0
1K
Member Avatar for Nicky4815

Hi, I'm working on a dissertation based around graph visualization. I need to make a GUI for my program but I am having trouble getting the JPanels to display what is required. My code so far: [code] //Class to create the GUI import java.awt.GridBagLayout; import java.awt.GridBagConstraints; import java.awt.Component; import javax.swing.JFrame; …

Member Avatar for mr.george
0
135
Member Avatar for Iamthedude

I'm not even certain if I am wording my title correctly for this question but this is my predicament. I'm trying to get input from the user, it could possibly be a float value like so ###.## or it could be a character value like DNA, I/P, or F, or …

Member Avatar for Iamthedude
0
119
Member Avatar for PinkStone

Hi I have been having this issue for a while and cannot figure how should I start to do this with python. Actually Im not a programmer but would like to learn it. Not just because of this (what topic title) says but, for sure, for other advantages to. I …

Member Avatar for PinkStone
0
125
Member Avatar for pucivogel

i have to create a n hotel management program using GUI, i hava done the gui part so far but i need help in creating the actionPerformed class,how am i supposed to do the reservation,and select rooms for 2 persons or one and rooms that overlook the sea or the …

Member Avatar for pucivogel
0
1K
Member Avatar for girl.java

hi everyone!!! how are you? i'm trying to make some game using while loop this is my code but, Unfortunately it doesn't work :( please help me [CODE]<html> <SCRIPT LANGUAGE='javaScript'> var puzzle=rabbit; var input; var i=0; input=window.prompt('White and fast with four legs ??guess the answer',' '); while(puzzle != input){ alert('hehe …

Member Avatar for girl.java
0
88
Member Avatar for fsn812

A very simple PHP/Javascript snippet to detect the resolution of a user's monitor and create a table using that resolution to best fit within the user's browser (to avoid scrolling). Note: This is a PHP script which includes Javascript

Member Avatar for almostbob
0
543
Member Avatar for BevoX

Greetings! So my question is: Is it possible to create your own data type? Not a class, or a structure, that builds from predefined C++ types, but your very own. For example a 128bit integer type, or a very very long floating point data type, or a binary number type …

Member Avatar for maf5693
0
4K
Member Avatar for Stefano Mtangoo

till now I have never done anything dealing with exceptions. Now I have to deal with exception. Basically I have function below which I want to wrap in try/exception. I want to connect to database and if database connection failed then it should catch exception that will do some stuffs …

Member Avatar for Stefano Mtangoo
0
96
Member Avatar for Dhruvi Shah

Hello, I am doing a project titled online university management system and want to perform video conferencing. Is it possible to perform video conference using php technology? If yes then what are the requirements? and how can i code for the same? please solve my problem as soon as possible. …

Member Avatar for diafol
0
320
Member Avatar for gerti13

Hello. I've spent many hours on this code and I cannot figure out why when I either declare "kot" - which will be in the code below or when I call blob_detect() which uses included .cpp with a "new" call (so to speak) I get an error allocating memory. If …

Member Avatar for jonsca
0
150
Member Avatar for hno

HI, I have two webserver and two domain and I want to share information between them.What I want to do is this to share the database between two webserver so ,if I add new information through domain 'A' that information can can be catch from domain "B" and I have …

Member Avatar for kireol
0
85
Member Avatar for Jetsetivan

Hi everyone, For practice I am trying to code a simplified version of the template "std::list" but have come accross the LNK1120 + LNK2001 errors. After looking in Visual Studio's documentation and some investigation, it seems the two most common causes are: 1) invalid calls in the code to things …

Member Avatar for Jetsetivan
0
239
Member Avatar for tariban

Hi, I have not used C++ in about a year (Been using C# a lot lately ;)) I am receiving an error when I try to compile a new OpenGL project I am working on and I can't see where I have gone wrong, though i wouldn't be surprised if …

Member Avatar for kirennian
0
283
Member Avatar for sehsa6

Hey frenzz I wanna make a Web content filter as my project. I have been looking for some help from past one month. I want ur help in making my project. Please help me explaining about its implementation or provide me with some links If u can. Any kind of …

Member Avatar for sehsa6
0
111
Member Avatar for Shaikh Mohsin

Hello Friend i want C program to scan Operating System on network,and display the output and can it is possible to connect to that particular OS.....or is there any other way to achieve this thing.

Member Avatar for tux4life
0
148
Member Avatar for jerim

I am working on a class assignment that doesn't meet for a few more days. The assignment is to open a text file, and parse the file one word at a time, reading each word into one of 26 arrays based on the first letter of the word. I can …

Member Avatar for jBat
0
496
Member Avatar for Pilot Boy

Well hello! I'm having problem with reading data from notepad.. So here is what I'm trying to do. etc.. I have notepad file "Doc" and in it there are few things: Level= 5 Cash= 100 And what I want from my program to do is to read Level and Cash …

Member Avatar for Pilot Boy
0
405
Member Avatar for kinnu

[B]how to display text on [U]right side of window in caption bar[/U] (titlebar) .Is there any function available to do this ?[/B] [B]plz help.[/B] [MFC]

Member Avatar for marco93
0
66
Member Avatar for FatimaRizwan

[CODE]// basic file operations #include <iostream> #include <fstream> #include <string> using namespace std; int main () { char* pch; string line; fstream myfile; myfile.open ("Ahoo.txt"); if (myfile.is_open()) { while (!myfile.eof()) { getline (myfile,line); cout<<line<<endl; pch = strtok (line," ,.-"); while (pch != NULL) { cout<<pch; pch = strtok (NULL, " …

Member Avatar for jonsca
0
447
Member Avatar for nathanurag

[CODE] #include<stdio.h> void reverse(char s[], int i); main() { int i,c; char s[1000]; for(i=0;(c=getchar())!='\n';i++) { s[i]=c; c=getchar(); } void reverse(s,i); [B] //getting error in this line[/B] return 0; } void reverse(char input[], int n) { int i; for(i=n;i>=0;--i) { printf("%c", input[i]); } } [/CODE] i am writing a program to …

Member Avatar for nathanurag
0
315
Member Avatar for GregPeters

Hi all, I have been creating a program that checks the length of an inputted value. The value inputted needs to be between two specific bounds, e.g. 10 < length < 120. However, I want to ensure that an individual cannot enter text, or a value which is not between …

Member Avatar for FlamingClaw
0
122
Member Avatar for popo_prince

i can't get this to run. my math functions at the end have messed up logic. and the superfluous function headers and such. i don't think the math output is linked to the desired output of the payment. [CODE] #include <iostream.h> #include <math.h> #include <cstdlib> #include <iomanip> //here i am …

Member Avatar for jBat
0
233
Member Avatar for gunbuster363

The situation is this: I use opensuse, which bundled with a python 2.4.X version, I installed it. Then I think python 2.6.4 is better, so I installed python 2.6.4 and all the later package I installed, were with python 2.6.4. In my project, I need a module named tkinter (python-tk) …

Member Avatar for gunbuster363
0
5K

The End.