| |
thread by: J. W. McCall |
last post Jul 22 '05 by: Martijn Lievaart
I know that this newsgroup is for pure C++ language questions only, but
I wanted to ask where would be an appropriate place to post a question
about this, as I can't find any that have any traffic.
Thanks,
J. W. McCall
|
thread by: Jochus |
last post Jul 23 '05 by: Jochus
Hi!
Today we saw the information about lists. We have an assignment about CGI.
That's all going well, but we're stuck at the insertion sorft of linked
lists
--
void voeg_in_lijst(const char* padname, int matches, match *& bestanden) {
match *hulp;
|
thread by: DanielEKFA |
last post Jul 23 '05 by: DanielEKFA
Hey there :)
Just joined the group, looking for a resolution to a problem I and my
three groups members are having (we're students, making an FTP-like
server/client as an exam project).
We're getting segmentation faults when threading with the following
code (this code is not the actual code as it's going to look, but a
shortened version...
|
thread by: sam |
last post Jul 23 '05 by: Chris.Theis
Hi,
The following code produced a core-dump:
PropertyParser::PropertyParser(list<HashMap> &p_list)
{
l_conf_data.clear();
cout << "beginning copy.. size: " << p_list.size() << endl;
copy(p_list.begin(), p_list.end(), l_conf_data.begin());
cout << "finished copy..." << endl;
}
|
thread by: christopher diggins |
last post Aug 10 '05 by: christopher diggins
Hello,
I want to convert a value of type T where sizeof(T) <= sizeof(void*) into a
void* and back again. I am currently doing it as follows:
void** ppvoid = reinterpret_cast<void**>(const_cast<T*>(&x));
void* x = *ppvoid;
This works on Visual C++ and GCC 3.4 but I suspect it is not the "correct"
way to do things.
|
thread by: 127.0.0.1 |
last post Nov 13 '05 by: Richard Heathfield
Hello!
#include <stdio.h>
int main(void)
{
char *p = "hello, world";
printf("%p\n", p);
|
thread by: DevarajA |
last post Nov 14 '05 by: Emmanuel Delahaye
What is #pragma used for?
|
| |
thread by: skishorev |
last post Dec 30 '05 by: mlimber
Hi,
Here I am taking two functions. void f(int,int) and another one is
float f(int,int).
Is it possible to overload with return values.
Thx,
kishore
|
thread by: Andrea B |
last post Apr 29 '06 by: noone
Hi everybody,
a guy told me during a job interview that we can't compare directly 2
floats, because in very rare situations we can get wrong results.
I googled it, with no result.
Do you know something about that?
Bye,
Andrea
|
thread by: Joe Van Dyk |
last post May 6 '06 by: Daniel T.
I have a vector of structs. Say I get a new struct that's supposed to
replace one of the structs in the vector. I believe I could use
replace_if() to do this, but I'm not sure what the syntax would be.
Something to do with bind2nd or something, I bet.
If there's another struct in the vector who's "id" data member is the
same as the new...
|
thread by: Christian Christmann |
last post Jun 27 '06 by: Richard Heathfield
Hi,
do I have to provide the return type when a function
is declared in ANSI C-99?
Or would
main ( void ) { ... }
be enough?
|
thread by: Belebele |
last post Aug 2 '06 by: Victor Bazarov
The code below does not cause an assertion failure.
fstream f;
f.open("myfile");
assert( f.is_open() );
However, the one below does fail the assert:
|
thread by: achilleas11 |
last post Nov 21 '06 by: sircool
///////////// start code /////////////
#include<iostream>
#include<iomanip>
using namespace std;
int ReadSquareSize()
{
int x;
cout<<"Plhktrologhse to mege8os tou pinaka, akeraios 8etikos perittos apo 3 kai panw: ";
|
thread by: wrestling god |
last post Nov 23 '06 by: horace1
Hey everyone, kinda struggling with a part of my hw assignment. would anyone know how I could get started.?? here is the question:
Graphical Determination of Pi: The full value of pi, which no one really knows for sure, can be approximated by considering the area bounded by a quarter circle. For a quarter circle of radius r = 2 meters, the...
|
thread by: coolindienc |
last post Dec 2 '06 by: Ganon11
Hello everyone,
I am trying to call a text file as an array in the program, that can have up to 100 rows and three column. When I tried to do so, I was only able to call the first line. Can anyone help me to find a way to call all the lines? My data file is as below.
2 5 1050
5 17 1200
3 12 1225
2 23 1300
3 6 1140
3 3...
|
| |
thread by: Benny the Guard |
last post Jul 14 '07 by: weaknessforcats
Been working on a project that compiles, links, and runs fine on 32-bit windows. Now trying to migrate to 64-bit windows. On debug build it works fine. However, on release build the std::map::find operation starts acting odd.
My code simply does a lookup, if it fails it inserts the proper element (creating the data element is expensive so I...
|
thread by: Ravishankar S |
last post Feb 14 '08 by: Army1987
Hello C-Experts,
Is there any predefined constant in Std C which specifed that the
implementation uses the IEEE754
standard for floating point operation ?
Regards,
Ravishankar
|
thread by: sanjay |
last post Oct 9 '08 by: sanjay
Hi All,
I have a doubt in understanding the output of the following program
that i executed on my system. I was using DevC++ IDE which uses minGW
based compiler.
----------------------------------------------
#include <iostream>
using namespace std;
|
thread by: gozlemci |
last post Oct 12 '08 by: newb16
Hi everybody;
During my coding, I have encountered a problem.I appreciate if anybody answer it.
Here is the simplified code:
//Header5.h
#pragma once
#include <string>
using namespace std;
|
thread by: franklini |
last post Jul 23 '05 by: franklini
hello people i. can anybody help me, i dont know what is wrong with
this class. it has something to do with the me trying to override the
input output stream. if i dont override it, it works fine. i would
forget overriding it but i have to do it because its a coursework. here
is a simple version of the class
#include <iostream>
#include...
|
thread by: James Aguilar |
last post Jul 23 '05 by: Andrew Koenig
Hey all,
I have a bit of code that implements a suffix array, which is essentially an
array of iterators or indexes into a string. The array starts out like this
String: ABAB
Array: 0123
But then gets sorted
|
thread by: masood.iqbal |
last post Jul 23 '05 by: Peter Koch Larsen
What is the standard C/C++ lexicograhic ordering of punctuation
characters with respect to each other and the alphanumeric characters?
--Masood
|
thread by: Bob Smith |
last post Jul 30 '05 by: Matthias Kaeppler
hi all,
having some problem with locale. I use an std::string, but seems like not
locale aware هنِ = garbage. How do I make the string aware of my
scandi-locale? TIA
--
http://www.kolumbus.fi/bob.smith
|
| |
thread by: ting |
last post Oct 25 '05 by: ting
I'm a newer in C++.
I hope to output a string's address. The program is as follows:
#include <iostream>
using namespace std;
int main()
{
char *str="ABCD";
char *p;
|
thread by: jagadeeshbp |
last post Nov 22 '05 by: Greg Comeau
Hi,
I am having a CPP file which defines a class:
class xyz{
public:
int (*funcptr)(void);
}
A function foo is defined in a "C file"
|