Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~2K People Reached
Favorite Forums
Favorite Tags
Member Avatar for berwick53

Hi I'm having problems with the code in that everytime it iterates it replaces all the values of SendBack with the newly read in values from fgets! FILE *fp; char FileLoc[] = "123456-12345678.txt"; char *SendBack[10]; fp = fopen(FileLoc, "r"); if (fp != NULL) { int x=0; while (fgets(BUFFER,20,fp)) { SendBack[x] …

Member Avatar for Ancient Dragon
0
132
Member Avatar for berwick53

Hi, I'm currently learning C# and I'm currently learning how to do C# and Database's. Does anyone know why it isn't adding the data in the text boxes to the db. Cheers Sam [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using …

Member Avatar for thines01
0
132
Member Avatar for berwick53

Hi i'm trying to read in an XML File that is like the following [CODE]<?xml version="1.0" encoding="utf-8"?> <ArrayOfSYMBOL xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <SYMBOL Code="AA.P" Name="Alcoa Inc Pf 3.75" /> <SYMBOL Code="AADR" Name="Wcm Bny Focused Growth Adr ETF" /> <SYMBOL Code="AAU" Name="Almaden Minerals" /> <SYMBOL Code="AAVX" Name="Etracs Daily Short 1 Month S&amp;P" /> …

Member Avatar for thines01
0
87
Member Avatar for berwick53

Hi I currently have a winform inside a MDI like the one in the picture to the left, how can I get it so that it looks like the one on the right with all the bars and icons removed [URL=http://imgur.com/F134B][IMG]http://i.imgur.com/F134B.png[/IMG][/URL] cheers sam

Member Avatar for mazzica1
0
74
Member Avatar for berwick53

I'm currently trying to split a string into a 2d array. currently I've split it into a 1d array of each line using: [CODE]string[] LinesFile = streamReader.ReadToEnd().Split('\n');[/CODE] And now I'd like to Split it further into a new variable with a 2d array. how would I go about doing this. …

Member Avatar for manugm_1987
0
137
Member Avatar for berwick53

I'm learning C# coming C and I'm having probelms with this basic code getting the error "an object reference is required from a non-static field, method or property 'ConsoleApplication1.Program.Addtion(int, int)'" on the line 14 [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void …

Member Avatar for Momerath
0
156
Member Avatar for berwick53

I'm doing a project involving VB.Net 2008 and SQL. I'm trying to make a combobox display whats in the sql database that is connected on the left hand side. how do i do this? Sam

Member Avatar for bklynman01
0
103
Member Avatar for berwick53

I've been learning C/C++ and I'm currently doing an ATM project. It all works fine but I would like to improve it so when i quit the program and it will load the data used previously. currently I use a struct like this [CODE]struct database { int pin, sort, account, …

Member Avatar for taylorc8
0
171
Member Avatar for berwick53

I have the following piece of code which works fine [CODE]data[person].history[data[person].trans]= "CASH WITHDRAWAL 100.00 GBP";[/CODE] but how would I write it so instead of 100.00 it inputs a float called safe_input2

Member Avatar for berwick53
0
94
Member Avatar for thunderwolf07

hi! im also a beginner in using C im confused because ive got a problem. which the answer of C is different from mine here's my problem: !our teacher ask us to covert yards to meters, inches, feet. (my problem is the meter) feet = yard * 3 inches = …

Member Avatar for thunderwolf07
0
145
Member Avatar for berwick53

I have a CSV file with the following data 15278349,567892,3456,9742.30,CASH-WITHDRAWAL-200.00,DIRECT-DEBIT-200.00 64328975,632489,7562,98734.65,CHEQUE-DEPOSIT-100.00,CASH-DEPOSIT-424.54 etc... How would I print to screen the individual lines instead of just the top line?? Sam

Member Avatar for Narue
0
102
Member Avatar for berwick53

Hi i've just started to use constructors and I'm having some problems with the following code with data not saving(saving to the correct place) please Help :( [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> typedef struct details // struct for all data { char name[50][50]; char card[50][16]; long sort[50], …

Member Avatar for gerard4143
0
106
Member Avatar for berwick53

Hi, Im trying to make a caesar cipher, but a windows error comes up when running. Where have I gone wrong?? Sam [CODE]///////////////////////////////////////////////// /// /// /// NAME: SAM BERWICK /// /// DATE: 18/11/2010 /// /// PROJECT: CAESAR CIPHER /// /// /// //////////////////////////////////////////////// #include <stdio.h> /// Stand In/Output #include <string.h> /// …

Member Avatar for NP-complete
0
81
Member Avatar for berwick53

Hi what methods of encryption could I use to encrypt a text document. It must use C and not C++. Cheers Sam

Member Avatar for Adak
0
114
Member Avatar for berwick53

I've got to write a program where it replaces a letter with a dash and then asks the user to enter the letter that should be their. I've written a program and It works the first time around and then prints out two lines. Where have I gone wrong ?? …

Member Avatar for myk45
0
141
Member Avatar for berwick53

Please can you tell me where I've gone wrong !!! thanks Sam [CODE]#include<stdio.h> #include<stdlib.h> #include<ctype.h> #include<string.h> int main() { char array[80]; // input array int i=0; // loop counter 1 int vo=0; // vowels int co=0; // consonents int ot=0; // other characters printf("please enter string\n"); fflush(stdin); gets(array); while(i!=80) { …

Member Avatar for vinitmittal2008
0
155
Member Avatar for berwick53

I have the following array below apart from it having more data and its all stored in a string array. how would I sort it so that It goes from highest to lowest. col 0 col 1 example 0 90.87 example 1 100.87 example 2 873.88 example 9 88.98 to …

Member Avatar for Adak
0
196
Member Avatar for berwick53

How would I make a 2d array of strings and how would I convert a string to an Int ?? Please Help..

Member Avatar for Adak
0
75
Member Avatar for berwick53

I've got to:4. Write a program that asks the user for two strings. The program should then compare the strings and display a message saying whether they are equal or if not, and which one is first alphabetically. For some reason it doesn't print out the parts in the if …

Member Avatar for berwick53
0
95
Member Avatar for berwick53

In my computing class we have got to make a program which outputs the following "XXXXXXXXXX YXXXXXXXXX YYXXXXXXXX YYYXXXXXXX YYYYXXXXXX YYYYYXXXXX YYYYYYXXXX YYYYYYYXXX YYYYYYYYXX YYYYYYYYYX YYYYYYYYYY" We have to create a function and we can only use if and loops. but I'm having difficultly doing it outside of a function …

Member Avatar for Schol-R-LEA
0
124