473,543 Members | 3,246 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C / C++ Forum

C / C++ programming language - Get answers to questions about compilers, visual C++, templates, namespaces, classes, data structures, OOP (object-oriented programming), inheritance, data types, exceptions, Standard Template Library (STL) and the C Standard Library.
0
142
thread by: surana | last post Jun 27 '08 by: surana
Find more details about C/C++ such as job oppurtunities, Flowchart preparation and many more. A one shop website for all your programming language needs as Java, .Net, http://www.computenetwork.blogspot.com http://www.sqlserversoftware.blogspot.com
5
1,578
thread by: nembo kid | last post Jun 27 '08 by: Eligiusz Narutowicz
Which book do you suggest after K&R? Thanks in advance
5
1,136
E*
thread by: Richard Tobin | last post Jun 27 '08 by: Eric Sosman
7.26.3 Errors <errno.h> Macros that begin with E and a digit or E and an uppercase letter may be added to the declarations in the <errno.hheader. May an implementation define an error macro EOF with a value different from the EOF in <stdio.h>? -- Richard -- :wq
3
6,984
thread by: Deniz Dogan | last post Jun 27 '08 by: vippstar
Hello. I have a question regarding the st_mode field of the "stat" struct in sys/stat.h. I'd like to know how to use the S_IRWXU, S_IRWXG and S_IRWXO flags to mask the mode_t value into human readable form such as 755, 644, etc. Currently I do something similar to this: usr_t = (mod & S_IRWXU); usr_r = (mod & S_IRUSR);
0
964
thread by: Barry Schwarz | last post Jun 27 '08 by: Barry Schwarz
On May 9, 6:18*am, mdh <m...@comcast.netwrote: Unless you initialized the array or assigned some data to its elements, what you are looking at is residual garbage, what the standard calls an indeterminate value. If you want the address of an object, any object, aggregate or scalar, you use the & operator on that object. &arr, &arr,...
0
925
thread by: sssulthana1 | last post Jun 27 '08 by: sssulthana1
hai friends you do this work in house you will get more salary Rs- 50,000 see that website
9
2,051
thread by: iavian | last post Jun 27 '08 by: Jack Klein
Hi all , I want to set a env variable in a C program? . Not through shell env variables. Any help? Thanks Vijay
12
1,285
thread by: Julien Lafaye | last post Jun 27 '08 by: Willem
Hello, i callocated a pointer to a user-defined struct. The value of the pointer is something like 0x0000002aaaaa (can't remember actually, I don't have the computer running the code with me). Then I perform some stuff on the allocated structure which must be buggy since after its execution the value of the pointer is something like...
4
6,662
thread by: S. | last post Jun 27 '08 by: S.
Hi all, I have the requirement that I must pass-by-reference to my function addStudent() and getAge() functions where my getAge() function is within the addStudent() function. I am able to pass-by-reference to the first function, addStudent() but then I am confused as to how I am suppose to pass the pointer of 'student' from within the...
0
925
thread by: chandran.ram28 | last post Jun 27 '08 by: chandran.ram28
hai friends, "each dayis a new adventure to dream search and discover" www.goodhistory5.blogspot.com
12
9,094
thread by: Michael.Z | last post Jun 27 '08 by: Michael.Zhang
Anyone who can help: Given a Table.h file I am writing a Table.c file. I keep getting the compile error: previous declaration of Table was here / conflicting types for I think the problem was the result of two pieces of code. First: typedef struct Table; /* in Table.c*/
19
1,359
thread by: geese786 | last post Jun 27 '08 by: Richard Heathfield
my vote for navia.
0
1,745
thread by: Nicodemus | last post Jun 27 '08 by: Nicodemus
Do You Belive? \ cheapbbc@sina.com wrote in news:aecf26b6-4c75-4d87-b09c-a7380875e0f3 @w34g2000prm.googlegroups.com:
2
1,357
thread by: Paul J. Lucas | last post Jun 27 '08 by: vippstar
Given this: #define NUM 100 I was to use a CPP macro like: char *p = MACRO(NUM); and have MACRO defined such that it would expand to:
9
3,547
thread by: V | last post Jun 27 '08 by: Willem
Hello: Consider the following nested for loop: uint64 TABLE; for (i=0; i<=7; i++) for (j=1; j<=7; j++) for (k=1; k<=(1<<j)-1; k++) TABLE = (TABLE) ^ (TABLE);
6
4,128
thread by: jt | last post Jun 27 '08 by: cr88192
i think i was not clear in my quesiton. my question actually was how to store a graphics image generated in C. Eg. #include<graphics.h> void main() { int gm,gd=DETECT; initgraph(&gd,&gm,""); rectangle(50,50,200,300);
10
4,389
thread by: swornavidhya.mahadevan | last post Jun 27 '08 by: Malcolm McLean
Which allocation (Static / Dynamic) is suitable for the situation when we are trying to allocate for a overloaded memory when the memory is full and no space to allocate. What will happen if both the allocation is impossible. Sworna vidhya
0
953
thread by: trchandran.ram | last post Jun 27 '08 by: trchandran.ram
hai dear, each day is a new adventure to dream search and discover www.googlehistry5.blogspot.com
14
28,083
thread by: deepak | last post Jun 27 '08 by: Keith Thompson
Hi Experts, I'm getting this compilation error while trying to access a member in structure. at what time we will get this error message? Thanks, Deepak
7
2,527
thread by: Tameem | last post Jun 27 '08 by: Morris Dovey
i am a new C programmer. i want to calculate someone's age. my input would be his birth date. like : Date: 07 Month: 12 Year: 1988 and the program will take the current date from system and calculate his age, how can i do that in C. please inform me.
0
942
thread by: larryl48h | last post Jun 27 '08 by: larryl48h
What if you could recapture your ex lovers mind, heart and soul?...Wipe the slate clean? Turn back time? Even if you feel right now that your situation is too far gone…too screwed up …or just plain too darn complicated? You already know how hard it is to just even wake up and roll out of bed in the morning. You leave your radio off on your...
24
2,026
thread by: arnuld | last post Jun 27 '08 by: Barry Schwarz
I have a function named getword that read every single input from std. input. WHAT I WANTED: I want it read the word if it has less than or equal to 30 characters. Anything else beyond that should be discarded and it should ask the user for new input. Ctrl-D should exit from the program. WHAT I GOT: It reads anything beyond 30 characters...
6
3,874
thread by: Dan | last post Jun 27 '08 by: Antoninus Twink
What is the correct way to allocate memory that is defined as volatile so that all standard compilers will not optomise out writes to the memory that are never read again? I have some encryption programs that, depending on the implementation/compiler, part of the code that clears memory at the end of the program gets optomised away.
16
9,128
thread by: pereges | last post Jun 27 '08 by: Default User
Do you see anything wrong about this method ? For eg. I write a shell script a.sh containing : cc -o test file1.c file2.c file3.c and then execute the shell script ( sh a.sh) to compile and create the executable. What is the difference between this method and writing a make file ?
3
1,839
thread by: nembo kid | last post Jun 27 '08 by: nembo kid
I have an issue with a simple function that has to make a linear search for a key into an array. If the key is found in the array, the function it has to return 1 to the caller and pass array index through a out parameter. The issue is that the out parameter is not being updated. If I return the position to the caller (instead to use a...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.