Forum: C# Aug 13th, 2009 |
| Replies: 2 Views: 318 i have a tag;
XXX32353.mv
i need to be able to change the mv to something else, and the number of characters to the left of the . is not always constant. therefore i need to cut from the right,... |
Forum: C# Aug 13th, 2009 |
| Replies: 2 Views: 294 i have 2 arrays
controllerlist[11] and taglist[5]
i need to compare them so that i can find any elements that match, is there a way of doing it instead of nested for loops? |
Forum: C# Aug 12th, 2009 |
| Replies: 1 Views: 1,138 i have this code ...
namespace ConsoleApplication1
{
class watchmove
{
private static string myString = string.Empty;
static void Main(string[] args) |
Forum: C# Aug 7th, 2009 |
| Replies: 11 Views: 730 cheers i did something similar, i have a parts of my code triming and spliting the code up so i just copied on of those, pointed it at the right string and populated a new array with the values, then... |
Forum: C# Aug 7th, 2009 |
| Replies: 11 Views: 730 yeah it is, each file comes in with same string, but different time and date. |
Forum: C# Aug 7th, 2009 |
| Replies: 11 Views: 730 i have this in a string:
"DATA COLLECTED FOR 24 HOURS STARTING AT: 09:00:00 Hrs 27-08-09"
how would i go about making it "27-08-09 09:00:00"
i have a rough idea with splits and trims etc but... |
Forum: C# Aug 7th, 2009 |
| Replies: 11 Views: 730 cheers thats helped, i have a part of a string that has the date in it, i can extract it but how do i use that as the start time.
like how would 27/08/2009 09:00:00 actually be put into "time" so... |
Forum: C# Aug 7th, 2009 |
| Replies: 11 Views: 730 i know that the datetime.utcnow command is to show the date and time of the instant it was called.
just say i have this
int time;
time = //27/08/2009 09:00:00
time = time + //15 seconds |
Forum: C# Aug 4th, 2009 |
| Replies: 5 Views: 231 how do you set that up to use in the code. i have looked on msdn but its not completely apparent! |
Forum: C# Aug 4th, 2009 |
| Replies: 5 Views: 231 hey there. thanks for all the help i have recieved from the people on this site!
i have a new problem, one i could solve if i was using VB but im using C# and i dont really know what to do.
i... |
Forum: C# Jul 22nd, 2009 |
| Replies: 3 Views: 519 aw thank you so much. totally worked! cheers!
is this robust enough to handle me putting csv files into a big excel file, obviously if i chance the .txt to .csv and set the folders up as they... |
Forum: C# Jul 22nd, 2009 |
| Replies: 3 Views: 519 i have a filesystemwatcher looking for a file, then once the file comes into the folder ive set, it then reads all the lines of data from inside each file in the folder being monitored. each read... |
Forum: C Jul 22nd, 2009 |
| Replies: 8 Views: 604 a little,
do u mind explaining what i need to declare and what is C code.
things like swd and swEdge, are they things you just made up or actual code. also is ~sw the port that im reading the... |
Forum: C Jul 21st, 2009 |
| Replies: 8 Views: 604 a debounce is probably what is needed, as the result should happen when the button is released. I am using a (motorola/freescale) 68HC12 processor, the two buttons being used are pre built onto the... |
Forum: C Jul 21st, 2009 |
| Replies: 8 Views: 604 im soooo sorry, i put up the wrong program, here is the actual program im working on!
#define _SCI
#include <stdio.h>
/* Kernel includes. */
#include "FreeRTOS.h" |
Forum: C Jul 21st, 2009 |
| Replies: 8 Views: 604 I am currently working on a real time operating system(freertos) task,
there are 3 tasks here and the problem im having is with the 1st task. it is basically to have 2 modes, toggled by a single... |
Forum: C# Jul 21st, 2009 |
| Replies: 7 Views: 225 i am basically monitoring a folder, and there are files being passed into it, but when a file comes in called "TransferComplete" i want it to go through the other files in the folder, taking whats in... |
Forum: C# Jul 21st, 2009 |
| Replies: 7 Views: 225 To get the folder not the file i needed:
Path.GetDirectoryName(e.FullPath)
as you predicted, access to the file was denied, although i dont know why, its not actually in use by another... |
Forum: C# Jul 21st, 2009 |
| Replies: 7 Views: 225 the filesystem watcher only checks for files being created in that folder, so its not being used by another application.
cheers abotu the e.fullpath thing, how would i actually get/set up the... |
Forum: C# Jul 21st, 2009 |
| Replies: 7 Views: 225 hey, i have my streamreader code, but im running it in a filesystem watcher program,
once a certain file is seen, then read other files in the folder
so i basically have the filesystem watcher... |
Forum: C# Jul 20th, 2009 |
| Replies: 4 Views: 259 cheers, thats the ticket with the stream reader and writers.
thanks again |
Forum: C# Jul 20th, 2009 |
| Replies: 4 Views: 259 is that copying the whole file, or copying the data from inside it. as ill be going through a folder with many files, adding all the data into one big file (for example an excel file) in another... |
Forum: C# Jul 20th, 2009 |
| Replies: 4 Views: 259 is there a method, using C# that i can open a file, then copy the data from it into another file in a different folder?
the file doesnt need to be opened, just the data inside moved to another... |
Forum: C# Jul 15th, 2009 |
| Replies: 10 Views: 704 i currently am developing a program that monitors a folder, if anything new is added to the folder it is then copied to another folder.
the code i have so far is
using System;
using... |
Forum: C++ Dec 6th, 2008 |
| Replies: 1 Views: 281 im trying to show what is stored in arrays, basically to make sure my program is working fine, i have got it to print which element in the array it is, but how do u access the array and show what... |
Forum: C++ Dec 5th, 2008 |
| Replies: 8 Views: 374 i just want it to choose a random number between 0 and 7 basically knowing the code for that would really help,
i am the author of that code, but there are parts that are taken from the lecturers... |
Forum: C++ Dec 5th, 2008 |
| Replies: 8 Views: 374 so would the correct way to write it be rand()(8); ?
im just confused to how the brackets and such work with this particular instruction |
Forum: C++ Dec 5th, 2008 |
| Replies: 8 Views: 374 I dont understand why there are arguments with it. and they have to be random as they are randomly selected - the point of the program is there is a random element to almost everything being chosen.... |
Forum: C++ Dec 5th, 2008 |
| Replies: 8 Views: 374 basically here is my code, sorry if its untidy. you will see in the crossover function i want to use the rand. i get errors like "too many arguments for int rand()"
#include <iostream.h>... |
Forum: C++ Nov 26th, 2008 |
| Replies: 3 Views: 758 i have an array of 16 things, now 8 of them have to be chosen at random so basically what i want to do is
random(CHR/2)
like choose a random number from CHR/2 (as there are 8 not 16 now)
... |
Forum: C++ Nov 22nd, 2008 |
| Replies: 10 Views: 737 that is exactly what i want to do. thank you so much, and for putting it into such clear language, i really appreciate it!!!
if i have more problems with this ill probably start a new thread as... |
Forum: C++ Nov 21st, 2008 |
| Replies: 10 Views: 737 cheers that helps a bit,
basically what your doing is calling one of the elements in error the lowest until something else comes along which is lower, so basically adding on a number to each one... |
Forum: C++ Nov 20th, 2008 |
| Replies: 10 Views: 737 could you please explain how this works, like im more dumbed down, i can kinda see how it would work, but if u could just run through it in words or something that would be grately appreciated |
Forum: C++ Nov 20th, 2008 |
| Replies: 10 Views: 737 sorry i have been looking at code solid for the last few days so my brain is wasted!
right the 16 rows in the weights array all have a fitness rating or error, which is stored in the array error
... |
Forum: C++ Nov 20th, 2008 |
| Replies: 10 Views: 737 i have an array
weights[16][60]
this being 16 rows of 60 elements in each one
i have another
error[16] |
Forum: C++ Nov 19th, 2008 |
| Replies: 1 Views: 235 this is my sub proceedure
/******************************************************************************
*
* Name: patpixselect
* Parameters: none
* Returns: patpix[]
* Globals: none
... |
Forum: C++ Nov 19th, 2008 |
| Replies: 2 Views: 249 i have an array
weights[16][60]
16 rows of 60 columns
if you are changing indiviual elements it goes from weights[0][0] to weights[15][59] right?
see if im using them in a loop |
Forum: C++ Nov 18th, 2008 |
| Replies: 10 Views: 591 can you do calculations with individual cells
e.g. like array[1][2] * array[1][3], will that work |
Forum: C++ Nov 18th, 2008 |
| Replies: 10 Views: 591 is there a way in 2-D arrays to overwrite or change full rows if array[row][col]
is that the same as the loops from earlier only doing the loop for one dimension? |
Forum: C++ Nov 18th, 2008 |
| Replies: 10 Views: 591 i know how to give each one random numbers, if i went
myarray[0][1] = code for random number;
.
.
.
.
.
.
. |