199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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; … | |
![]() | 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 … ![]() |
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. | |
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 … | |
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 … | |
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> … | |
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> … | |
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 … | |
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 … | |
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. | |
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 … ![]() | |
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. … | |
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 … ![]() | |
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 … | |
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 … | |
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\ … | |
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> … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 | |
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; … | |
![]() | 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 … ![]() |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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. … ![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
[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] | |
[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, " … | |
[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 … | |
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 … | |
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 … | |
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) … |
The End.