98 Posted Topics
Hi there)) I cann't deal with the file opening operation - [CODE]char* fpath = "D:\TC\myprog\readit.txt"; FILE* fp; fp = fopen (fpath, "r"); if (fp != NULL) printf ("\n(!) File opennig error\n"); else printf ("\n(+) File have been opened successfully!\n"); for( i=0;i<=n-1;i++) { a = getc(fp); putchar(a-48); putchar('\n'); }[/CODE] For some … | |
hi everyone)) Please tell me - where is the mistake here - [CODE]struct address {char* city ; char* street; int housenumb ;}; struct addinf {int age; struct address* address;}; struct student {int number; int kurs; char* name ; struct addinf* addinf;} stud; stud.number=1; stud.addinf.address.housenumb =123;[/CODE] thanks in advance) | |
Hi guys! please tell me - how to determine the length of the input stream without reading simbols ? (for save the input string) thanks in advance )) | |
Hi guys! )) please reply - how to clear the input stream of the console? thanks in advance )) | |
Hi guys ) Please help me - I can't understand - what's the meaning of this error message . [QUOTE]Object reference not set to an instance of an object.[/QUOTE] for this piece of code - [CODE]CityName = "NY"; this.MapCityMass.ArrayOfCities[this.NumberOfCities].CityName = CityName; [/CODE] this class's code - [CODE]public class CITY { … | |
hello guys)) Advice please - how to set the stream encoding? (to read a text file) I use this code - [CODE] StreamReader stream1 = new StreamReader(fs); System.Text.Encoding code = stream1.CurrentEncoding; StreamReader stream2 = new StreamReader(fs,code); while ((i = stream2.ReadLine()) != null) { label1.Text = label1.Text + i; } stream2.Close();[/CODE] … | |
Hello )) Please tell me - How to receive surnames of students and their mark in all subjects? in this form -[CODE] SURNAME1 1hismark1 1hismark1 1hismark1 1hismark1..... SURNAME2 2hismark1 2hismark1 2hismark1 2hismark1.....[/CODE] I use this database - [CODE] table STUDENT ( STUDENT_ID NUMERIC not null, SURNAME VARCHAR(60), ); table SUBJECT … | |
Hello )) please tell me - where's the bug in this code - [ICODE] main() { short int n = 0; n=[U]getdet[/U] ( **m , n); } [B]short int ** [U]getdet[/U] (short int **m , int n) /*вычисляем определитель матрицы*/ { short int c=0; if (n==1) return **m; }[/B][/ICODE] compiler … | |
Greetings to you friends)) Advice please - how to get integer value from the console? I did so, but nothing good can come out - [CODE] short int n = 0; n = (int)getchar();[/CODE] thank you in advance for your reply )) | |
Hi guys )) Please tell me - how to check that a variable is initialized ? Thanks in advance ) | |
Good day) Advice please - is it permissible to use this syntax - [CODE] insert into EXAM_MARKS ( EXAM_DATE) values (str_to_date('26-05-2000', '%d,%m,%y')); [/CODE] This line does not work. I can not understand on what went wrong. Thank you for your answers) | |
Hi guys ! Please help make a sql-query - There are three tables - [CODE] table STUDENT ( STUDENT_ID NUMERIC not null, SURNAME VARCHAR(60), ); table SUBJECT ( SUBJ_ID NUMERIC not null, SUBJ_NAME VARCHAR(100), ); table EXAM_MARKS ( EXAM_ID NUMERIC not null, STUDENT_ID NUMERIC not null, SUBJ_ID NUMERIC not null, … | |
Hi thete )Tell me please - am I right - if [B]fillnumb[/B]=0 then after executing this code - [CODE] switch (fillnumb) { case 0: [B] fillnumb[/B] = 1; break; case 1: [B]fillnumb[/B] = 2; break; }[/CODE] [B]fillnumb [/B]will be =2 ; | |
Hi. Could you tell me - what is wrong here - [CODE] public class MAP { public string MAP(string FilePath) { FileStream fs; try { fs = new FileStream(FilePath, FileMode.Open); } catch (FileNotFoundException exp) { return exp.Message; } catch { return "Не удаётся открыть файл"; } return "all right!"; } … | |
hi everyone! )) As I understand it - to a class B inherit fields and methods of class A must describe them in this order - public class A [ICODE]{ public method34() { int m = 34; } public class B { private int my_m; public method1() { int m … | |
Hello )) Guys tell me please - in which folder should I put the file ( a few folders in one project), so that the program will be able to "read" it. if the path = "something.txt". Thanks in advance )) | |
good evening)) (At us now evening)) Please answer the question - there's a code fragment - [CODE] public string MAP(string FilePath) { FileStream fs; // объявляем байтовый поток try { fs = new FileStream(FilePath, FileMode.Open); } catch (FileNotFoundException exp) { [B][U]return[/U][/B] exp.Message; } catch { [U][B]return[/B][/U] "not possible to open … | |
Re: I recommend you book by this author - [URL="http://www.herbschildt.com/"]Schildt[/URL]. ))) | |
Do I understand that by using the following code [CODE] a = getchar(); b = getchar();[/CODE] , after pressing "1" and "Enter" keys ( Enter - to continue programs work), we can derive the following variables - [CODE]a = '1'; b= '\n';[/CODE] thanks in advance)) | |
Mates, this is my first piece of C code. I do not know what is wrong. Please, tell me, that's not so I've highlighted the lines that the compiler "doesn't like " - [CODE]#include <stdio.h> #include <alloc.h> #include <stdlib.h> main() { short int n = 0; int k=0,u,i=0; char a=''; … | |
Hi) Tell me, please - why why this method doesn't work? - [CODE]private void MapForm2_Load (object sender, EventArgs e) / / loading the map. { Color redColor = Color.Black; Rectangle r1 = new Rectangle (1, 2, 35, 35); }[/CODE] thanks in advance) | |
Hello, dear Programmers! Prompt - how to get the coordinates (of picture box) of the point which was clicked (by mouse))? Thank you for your answer) | |
Hi guys) Please tell me - why is it impossible to keep global variables in C in a processor register? thanks in advance) | |
hi, mates! Could someone tell me - how to connect the module with by code in a C#-project? Thanks in advance) | |
Re: hi) 18 months - it's quite a lot) you could easily pull up the knowledge. Learn the requirements of specific companies - and try to learn the necessary questions)) good luck) | |
Re: 1) You like Oracle....well....and -what else do you like? (To understand what scope you are more interested in) 2) Than the technical and functional departments are engaged? | |
Re: pirates - not only[B] 1)[/B]those who are selling cracked software. Pirates - it is also [B]2)[/B]those who wrote the software , and then does everything to make old one become useless.And then offer to "pirate" prices to buy new. I do not support neither the firsts nor the seconds. In … | |
Re: [QUOTE]still not working ever since i added the dropdown menu bit [/QUOTE] [B]PinkSmartie[/B] , Show more significant piece of code - and highlight what isnt working and where you think it's a mistake! I'll try to sort out the problem)) | |
Hello)) I have a text file with a script that can be used to create an Oracle database, but I want to use this script to create MySQL one) Unfortunately, not all commands are similar. I've already changed the commands for creating tables. And now I can not understand how … | |
hello guys! Please advise a good (reputable) online journal about computer security. Thanks in advance. | |
Hi guys! I can not understand - what is wrong with this simple line - [CODE]create table SUBJECT ( SUBJ_ID NUMERUC not null, SUBJ_NAME VARCHAR(100));[/CODE] error message -[QUOTE]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to … | |
Greetings. Tell please function PHP5 which defines presence of the end of a line (like !feof - for the file end). Thanks in advance!) | |
I wish you all the correct code)) Hi) There was a problem reading the file. Actually, I want to read from file command for MySQL (originally, this team is destined for Orcle, but I think it will be right for MySQL). I think the problem in the encoding (I do … | |
Re: do not worry. programmer - it is his knowledge, not a diploma)) | |
Hello programmers ! Can anyone tell me - how to delete an initialized reference-type element, which suggest some links? Is there for this in C # the special function? Thank you for your answers)) | |
Dear programmers)) Please tell me - why in С# this line [CODE]string [this.LevelNumber] mass = new string [this.LevelNumber];[/CODE] isn't permissible? What can be an equivalent for it? Thank you for your answers) | |
Hello friends)) How to create a dynamic array in C#? Does anyone know? | |
Hello) Please tell me-how to set up automatic numbering of lines in Visual C# Express Edition (or maybe this feature is not there?) Thank you in advance) | |
Re: [QUOTE]This is not a valid survey link. Please contact the author of the survey and have them resend you the correct link to this survey.[/QUOTE] Yes, change link. | |
Re: Do that you to be pleasant. Professionals will always not suffice. | |
![]() | |
Re: Hey! And how about classical C or at least C++? C's the "closest" language to machines (without considering the assembler)) | |
Hello friends)) Prompt please analog of function (if it exists) TryStrToInt (Delphi) for C #. In advance thanks) | |
Hello! Whether who will prompt css-property which certain div to be stretched on веритекали in conformity c in the size containing in first div (which sizes are defined in pixels)... In advance I thank.)) | |
Re: which styles do You use for pictures? (Names from sheet of styles) | |
The End.