by: Alex Vinokur |
last post by:
What is wrong in program below?
--- foo.cpp ---
struct Foo {};
int main ()
{
Foo foo1, foo2;
for (int i = 0, foo1 = foo2; ; ); // Line#5
return 0;
}
|
by: Wilfried Mestdagh |
last post by:
Hello,
probably a beginners question :)
I have this code sample in VB:
if (objResults.Item(1).etc
Translate this into C#
if (objResults.etc
But compiler complains about the index '1'...
|
by: Igor Okulist |
last post by:
int func(void**);
{
short* p = NULL;
func(&p); //<<< here
}
Could somebody remind me why is this not allowed ?
error message: "cannot convert parameter from 'short **' to 'void **'"
|
by: royend |
last post by:
Hi.
I am having some strange troubles creating a dropdown menu at my toolbar. I have followed this tutorial:
http://www.codejock.com/developer/article05.asp
My problem occurs at this line:...
|
by: nassim.bouayad.agha |
last post by:
Hello,
here is a code snippet showning my problem :
template<typename _K>
class TClass1
{
public:
void Process(const _K& arg) const
{
|
by: munjao1 |
last post by:
i am passing an char ** argument and returning its value as int
i am getting an error in doing that as cannot convert int to const char*
what can i do?
|
by: John |
last post by:
The following code:
int test = 1;
bool isTrue = (bool)test;
results in a compiler error:
Cannot convert type 'int' to 'bool'
wtf, any ideas on how to work around this?
|
by: simbasaurus |
last post by:
Is the following code in any way illegal/wrong/dirty?
Could it fail to compile on some platforms?
void *p;
int x,y;
x=3;
p=(void*)x;
p=&y;
|
by: Frostmur |
last post by:
Hi !!
I'm trying to convert C code to C++.
This is my function:
static void (*selection)(void) = NULL;
static void (*pick)(GLint name) = NULL;
void zprSelectionFunc(void (*f)(void))
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|