473,799 Members | 2,935 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.
8
1,841
thread by: Tomás | last post Mar 7 '06 by: Jacek Dziedzic
I have a few really long template functions. They belong in a source file... and thus must be "exported". Seeing as how few compilers support "export", could someone please point me to a webpage/post that gives a very decent method of exploiting "export" for those compilers that *do* export it, while still remaining compatible with the...
20
2,339
thread by: mikael.liljeroth | last post Mar 7 '06 by: Dik T. Winter
Why do I get NO as result from this ?? double du = (double)3.1415; du = ceil(du); if(du == (double)4) printf("YES\n"); else printf("NO\n");
7
3,734
thread by: skishorev | last post Mar 7 '06 by: Gavin Deane
What is the difference between copy initialization and assignment. How the memory will allocates the objects. Thanks &regards, Sai Kishore
4
1,823
thread by: Manu | last post Mar 7 '06 by: Rod Pemberton
Hello, Can we say that the return addresses from the various malloc function calls, in a program, will always be in a predefined order (increasing or decreasing, depeding on how the heap is managed) ? regards Manu
3
1,832
thread by: thomas.b36 | last post Mar 7 '06 by: Jaideep
Hi all, What's that mean : "Low Level Verification of ASIC Soc"?. The SoC should be tested on development board containing FPGA, CPU and so. In this cas how would you proceed using C programming?. Do one need to be proficient in C prog or just fonctional C will do?. Thank for your precious time Gentlemans and Ladies. Thomas.
13
2,644
thread by: junw2000 | last post Mar 7 '06 by: Geo
Is C++ Exception handling useful? think it is too complicated. What kinds of project need to use it? Thanks.
12
2,503
thread by: Me | last post Mar 7 '06 by: Chris Torek
I'm trying to wrap my head around the wording but from what I think the standard says: 1. it's impossible to swap a restrict pointer with another pointer, i.e. int a = 1, b = 2; int * restrict ap = &a; int * restrict bp = &b;
3
1,685
thread by: Andy | last post Mar 7 '06 by: Alf P. Steinbach
Hello, everyone, I am writing a segment of code for listing the permutation of some event sequences. I tried to use template to make the code more general. When I commented the code as shown below, the code works okay. Otherwise, it will goes to seg fault. I am puzzled on this. Can anybody give me any hints?
7
8,294
thread by: Steve Edwards | last post Mar 7 '06 by: Richard Bos
Hi, How do I create a new type of structure that contains a pointer to its own type? i.e. typedef struct{ string tag; TagPtr *subPtr; } TagPtr;
5
2,492
thread by: rpseguin | last post Mar 7 '06 by: Imre Palik
Ok. I've looked at expat, libxml, ... Too much baggage! I would like to find a small XML walker/"parser"/reader that simply gives me callbacks (C++ or C). No validation needed or wanted. I would prefer some open sourced, portable thing (Linux, OS/X, Windows, POSIX), with at most a couple of files and with no external dependencies. ...
20
2,021
thread by: Daniel | last post Mar 7 '06 by: Peter_Julian
I have the following three classes class A { public: virtual void f() = 0; }; class B: public A {
0
1,312
thread by: skaller | last post Mar 7 '06 by: skaller
The Felix project requires people to help test version 1.1.2 release candidate 4 source build. Please go to http://felix.sourceforge.net if you're interested in helping. The licence is FFAU (like BSD or Boost licences). You will need Ocaml 3.08/9 and Python 2.x plus a C++ compiler to build from source. GNU g++ and MSVC++ are supported...
1
1,273
thread by: lory88 | last post Mar 7 '06 by: Walter Roberson
Hi I hope someone can help me out with a very SIMPLE program about whole string permutations. That is: given a list of strings, the required outcome is a complete set of all their possible permutations. It's like character permutations of a string, but this time it is whole strings instead of single characters that have to be permuted. ...
3
1,876
thread by: JCav | last post Mar 7 '06 by: GB
It's been a while since I've used Visual C++ and I'm getting an exception from an unknown source. I'm writing Java JNI code, calling Java from C++. Is there any way to get more information about what's getting thrown? I've tried to catch it with a variety of catch clauses with all sorts of types. The only catch that works is catch(...). My...
8
3,694
thread by: FUGATO | last post Mar 7 '06 by: John Tsiombikas (Nuclear / Mindlapse)
I need to help in my assignment. I need to wrap a text with the following indications: 1.If you have reached the end of the line (number of characters on this line >= 40) AND you have reached the end of the current word, start a new line and reset the number of characters on the line to 0. The end of a word will be denoted by one of these: ...
1
1,900
thread by: bob | last post Mar 7 '06 by: Alf P. Steinbach
I need to edit an old dos program that was written with Microsoft C/C++ 7.0 (circa 1991?). I have the orig. MS floppies, but no MS 3.1 OS nearby. Can I install this package on a machine with Windows 2000? I have no other developer package by MS. Thanks.
2
1,584
thread by: Hugo | last post Mar 7 '06 by: Flash Gordon
Hi everyone! I need your help! I'm writting a program to comunicates a PC with a PinPad trought serial port... I'm using _bios_serialcom from bios.h... But when I tried to send some data it doesn't work and the return code from _bios_serialcom starts with 8... I don't know what I'm doing wrong... Any help would be appreciate! Here is my...
17
12,794
thread by: Sri | last post Mar 6 '06 by: Richard Heathfield
How do you add an n-bit number in C? Regards, Sri
2
2,157
thread by: c++ newbie | last post Mar 6 '06 by: F. Meyer
I am new to c++ programming I have Borland Turbo c++ ver 3.0 I copied the installed Tcc files from my friends hdd in a cd and pasted it directly into my hdd at d:\lang\tcc\ when i open tc++ it tells invalid directory. Nothing works even the sample files in that folder also does not run. I am sure the codings are perfect because they work in...
17
2,203
thread by: my.correo.basura | last post Mar 6 '06 by: Mark McIntyre
Hi, I'm having some problems working with two-dimensional arrays. Here's the story. I got two 50x50 matrixes (is that the plural of matrix?) defined at compile time. I want to work with them inside a for loop, but depending on the iteration, one is the real one and the other is dummy. At the end of the iteration I swap them. I'm working...
25
17,089
thread by: Jaideep | last post Mar 6 '06 by: Jordan Abel
Hello! I am new to GCC.I've abt 4-5 yrs of experience in windows 'C' programming.I find GCC much slower than turbo or microsoft compilers.Anyway I wrote this small piece of code to calculate process time .The code works fine in windows compilers but gives erratic output in GCC.What could be the problem? code--> .... #include <time.h>
8
5,459
thread by: abdul_n_khan | last post Mar 6 '06 by: abdul_n_khan
Hello, I have a basic question related to datatypes. I am trying to read a value using Microsoft's ADO recordset from a field (lets call it 'Price') with datatype decimal(19,6) => 19 = Precision, 6 = Scale 1) When I read this field into float datatype. I get a value 1.9000, which is correct. But when I read its value in a double datatype...
32
5,006
thread by: priyam.trivedi | last post Mar 6 '06 by: CBFalconer
Hi! Could anyone tell me how to find the square root of a number without using the sqrt function. I did it by using Newton's Formula. How can it be done by using the Binomial Theorem/Taylor Series? Is there any other way of doing it rather than using series? Thank you, Priyam
9
2,042
thread by: romayankin | last post Mar 6 '06 by: Alf P. Steinbach
Here is the problem. There are two constructors of the same class ~~~~~~~~~~~~ CClass() : param1 (0.5), param2 (100000), param3 (NULL), szPath (NULL) { }
4
2,352
thread by: SkyBlue | last post Mar 6 '06 by: Keith Thompson
A straight forward Q from C newbie: What is the limit of INT variable type? I'm writing a code to calculate the sum of odd/even numbers between a given range, and I want to limit the number size so it works (e.g, give an error message if the number given is too big).

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.