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.
Forum Post

Hello I need your help.

#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...
Forum Post
Forum Post

use of a 2-d array

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...
Forum Post

Re: Declaring Strings

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;...
Forum Post

Re: bool array

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...
Forum Post

Declaring Strings

I can write char a[] = "hello world"; , but i can not write char a[]; a = "hello world"; why so?
Forum Post

Re: How to use ... properly?

: : #include : #include : #include : #include : void main() : { : FILE *fp; : char code,code2, ename; : int elevel; : clrscr(); : if((fp = fopen("samplete.txt","r"))==NULL) { :...
Forum Post

Re: the position after the last element of an array

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...
Forum Post
Forum Post

Re: the position after the last element of an array

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...
Forum Post

Re: Help with reading a file in C, please.

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...
Forum Post

Microcontroller Programming C

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...
Forum Post
Forum Post

Help with reading a file in C, please.

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...
Forum Post

Assigning values to struct array or linked list problem?

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,...
Forum Post

Re: "Decompliling" C++ Code? Possible To Get Into An Exe File

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...
Forum Post

Re: quick sort not sorting ?

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...
Forum Post

Re: stack around the variable "counter" corrupted?

thank you very much error is gone
Forum Post

Re: do-while array

testScore should check for a "sentinel" value; for example, if you prompt your user to enter data or -1 to quit, then testScore should test against -1. do { cout > testScore; // some...
Forum Post

Re: how to create an array of struct?

Do you mean a dynamic 2D array? typedef struct { int x; } testing; ... testing **array; array = malloc(sizeof(*array) * num_of_rows); loop(...) array = malloc(sizeof(**array)...
 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.