Computer Science
Computer science is the study and the science of the theoretical foundations of information and computation and their implementation and application in computer systems.
Language
Platform
Any
License
Any
#include
#include
#include
using namespace std;
struct t_alunno
{
string nome;
string codice;
int eta;
};
t_alunno alunno;
t_alunno buffer;
FILE * fp;
int nrecord;
int i;
bool...
guys, we use like a 2-d array very often.
But what exactly is the use of a 2-d array ?
Now when i look at it, i feel everything can be done using a 1-d array and incrementing the pointer...
char a[] = "hello world";
you can that because the compiler knows how much space to allocate for the string "hello world."
char a[];
a = "hello world";
C won't allow aggregate assignment;...
I don't think bool is a valid type in TC; if you're saving your source as .c, then you might try a typedef statement.
bool may be valid in c++ though... I can't recall. to check, try saving your...
I can write char a[] = "hello world"; , but i can not write
char a[];
a = "hello world";
why so?
:
: #include
: #include
: #include
: #include
: void main()
: {
: FILE *fp;
: char code,code2, ename;
: int elevel;
: clrscr();
: if((fp = fopen("samplete.txt","r"))==NULL) {
:...
Thank you so much.
I checked the book again......
The book is C Primer Plus, Fifth Edition (is that book not good?)
In Chapter 10. Arrays and Pointers, it said:
C guarantees that, given an...
FileName);
Kind Regards,
Midas
Well, not exactly. What it means is that you do not have "array bounds checking" in C. That is to say, you can go on accessing the locations even beyond the logical upper limit of your array, and C...
This code will not work. 190 is approximate # of lines in file - not characters per line. And lines will not be the same length, so reading constantly by 190 characters will skip some short lines and...
Hello all,
Using AVR studio 4 and ATmega16 microcontroller
I am trying to set up a program that takes in an input from an ADC (potentiometer) and output it to an LED via PWM. I am doing...
I have a file with 190 lines, that goes something like this:
Antigua,English,Local dialects
Bahamas,English,Creole
Barbados,English
Belize,English,Spanish,Mayan,Carib
Canada,English,French...
Hi,
I have doubt on using structure array for my project.
My project have some scenarios, example, 4 nodes and one wireless access point.
Each node have different parameters like IP Address,...
Hello programmers,
I solve a strange behavior of MFC graphic objects together with OpenGL objects when Windows 7 Aero is enabled on my desktop. I describe that matter more detail now, I have...
You need a good debugger for this. IDA PRO comes to mind, but it cost money. Try to get a trial version - it may work for 30 days or so. Best free debuffer for Win32 is OLLYDBG. Google for it and get...
quickSort(Array,Array,Array);
left and right are assigned to the values of the array's first and last value.
but in quickSort you use them as they're indices of the array.
it should be...
thank you very much error is gone