15,300 Posted Topics

Member Avatar for nagarjuna844

I assume you are using \*nix os, so if you get a core dump then run gdb or another debugger that will tell you where the problem is assuming you compile your program for debug.

Member Avatar for np complete
0
350
Member Avatar for Manchala

You don't need arrays or while loops. Just use three simple for loops. The first counts the number of rows, which is 6. The second displays space(s) to move the cursor on the screen, and the third displays the letters in reverse order that they appear in the alphabet. loop …

Member Avatar for Ancient Dragon
0
205
Member Avatar for Termid

What language is the software written in? There are hundreds of them. What you should do next depends on the language. Some languages such as html and java are interpreted when they are run, others such as c, c++, c#, and VB require a compiler to translate the text file …

Member Avatar for Termid
0
134
Member Avatar for lewashby
Member Avatar for nyquist

The smallest unit of storage in a computer is one byte. What you want to do is to bitmap the byte(s) of memory, one byte normally holds 8 bits (but may vary depending on the operating system). So if you want an 8x8 matrix of bit then use an array …

Member Avatar for vijayan121
0
6K
Member Avatar for Vasthor

Are you trying to run MinGW under a linux emulator? You probably don't have permissions to run MinGW from within c:/users/mat folder. Move MinGW to C:/MinGW then make sure to grant access to everyone then try again.

Member Avatar for mike_2000_17
0
159
Member Avatar for theguitarist

int and const int are not the same thing -- int is a variable that can change a runtime from one value to another, while const int may not even be given storage because the compiler may just treat it as if it were a macro by inserting its value …

Member Avatar for mike_2000_17
0
6K
Member Avatar for triumphost

If you want cross-platform then use c++ [boost libraries](http://www.boost.org/doc/libs/1_51_0/libs/filesystem/doc/index.htm)

Member Avatar for deceptikon
0
762
Member Avatar for Dev93

The problem you see is that c++ stream library may or may not be thread safe meaning that you might see almost any random output or a mixture of the two. Read [this thread ](http://stackoverflow.com/questions/6374264/is-cout-synchronized-thread-safe)for more information. If you want specific output then you will have to add thread synchronization …

Member Avatar for Ancient Dragon
0
336
Member Avatar for iamthwee

They probably need to escapt the \& symbol [edit]. well, according to the line above & doesn't need to be escaped, so I have no idea what the problem is.

Member Avatar for iamthwee
0
207
Member Avatar for Labdabeta

yes it is opossible, how to do it depends on the operating system. For MS-Windows you need to learn win32 api functions. [Here is a good tutorial](http://winprog.org/tutorial/http://winprog.org/tutorial/). After you have learned that you can start learning [MS-Windows GDI functions](http://msdn.microsoft.com/en-us/library/aa923590.aspx)

Member Avatar for Labdabeta
0
123
Member Avatar for suganesha

The first thing you need to do is split up the Hotel class into three different classes 1. GuestInfo 2. RoomInfo 3. Hotel class Hotel should contain an array or vector of RoomInfo classes class RoomInfo should contain an array or vector of GuestInfo classes, as well as the room …

Member Avatar for np complete
1
7K
Member Avatar for Suzie999

I just googled for it and found [this tutorial](http://www.johndcook.com/cpp_regex.html) as the very first hit

Member Avatar for Suzie999
0
2K
Member Avatar for Suzie999

> int raw_len = sizeof(MyTest_u_char2) + 1; That line is wrong -- sizeof takes the size of a pointer, not the number of bytes allocated to the pointer. In this case sizeof(any pointer) is 4 (in most implementations today but could be some other value depending on your compiler). What …

Member Avatar for deceptikon
0
144
Member Avatar for deriweb

You need to do socket program to send/receive over the internet. Exactly how it's done is operating system dependent, e.g. MS-Windows see turotials for winsock, for \*nix there is POSIX sockets. There is lots of into on the net about both which you can easily find by googling. Hardware isn't …

Member Avatar for np complete
0
163
Member Avatar for king03

Can you choose to specialize in more than one of those? If yes, then specialize in all that interest you. BTW Oracle, Cisco and .NET are completly different thigs, that is, Oricle is an SQL database while .NET is a program environment, there probably is a .NET verson of Oracle. …

Member Avatar for marcos.fish09
0
296
Member Avatar for kshahnazari

>can you please write a program for me Nice of you to ask, but No, we are not here to do your homework for you.

Member Avatar for np complete
0
124
Member Avatar for equation

if you want to copy the arrays that are declared in oneFunction() into the arrays declared in twoFunction() then onefunction() will have to call twofunction() passing it the two arrays. twofunction() will need two parameters, not one.

Member Avatar for nitin1
0
174
Member Avatar for sss93

There are several higher-level c++ alternatives, such as C#, Windows Forms (which is CLI/C++), MFC, wxWindows, QT (cross-platform) just to mention a few. C#, WF, and MFC you will want to use Microsoft's VC++ 20?? compiler/IDE.

Member Avatar for mike_2000_17
0
386
Member Avatar for yehernpoh

Kind of hard to say what the problem is without knowing the declaration of variables.

Member Avatar for WaltP
0
176
Member Avatar for gerard4143

Maybe a map is not the best way to go about that. Another way is to create a structure that contains a string for the argv entry and int for counter, then create a vector of those structures. After that, just call std::sort() to sort any way you want it.

Member Avatar for vijayan121
0
524
Member Avatar for Nomi55

If the OP is from India he may not have any other choice but to use Turbo C/C++ because sadly that's what is taught in their universities.

Member Avatar for Nomi55
0
260
Member Avatar for Labdabeta

[wprinf()](http://msdn.microsoft.com/en-us/library/wc7014hz(v=vs.80).aspx) and related functions work with unicode characters. You may have to change the [code page](http://msdn.microsoft.com/en-us/library/2x8et5ee(v=vs.71)) in order for other languages to display correctly.

Member Avatar for Labdabeta
0
240
Member Avatar for Jaypie
Member Avatar for daniel.krishnasamy
Member Avatar for sona123456

>Any idea as to how this question should be done . Yes -- find out how to use magick++

Member Avatar for np complete
0
139
Member Avatar for green_ning
Member Avatar for r0vanz01

line 17 should be moved up so that its within the bracketed if statement that starts on line 13.

Member Avatar for np complete
0
714
Member Avatar for triumphost

Attempting to do it a "portable" way is useless becuse \*nix doesn't support DLLs, instead it has shared libraries with \*.so exension. >Also is there a way I can program for linux on windows? Only if you run \*nix in a virtual machine window and use a compiler for \*nix …

Member Avatar for Ancient Dragon
0
353
Member Avatar for gerbil

>Bruce was also thought of as a gay name Don't let [Bruce Willis](http://www.guardian.co.uk/technology/blog/2012/sep/03/no-apple-bruce-willis) hear that!

Member Avatar for happygeek
0
294
Member Avatar for I_m_rude

>please make this thread as "must read" There is only one MUST READ thread and that's the DaniWeb Rules. All others are optional just as this one should be. >Just share that what have you all done in your universities/scholl time which made you to come to this level of …

Member Avatar for nitin1
3
295
Member Avatar for owenransen

Read about cgi programs, a short tutorial is[ here](http://www.geekdaily.net/2007/08/06/c-a-basic-cgi-tutorial/)

Member Avatar for owenransen
0
200
Member Avatar for gerbil

It was much simpler and safer to just use CODE tags. That way your algorithm wouldn't have to guess about what is or is not code, and sometimes it guesses wrong.

Member Avatar for gerbil
0
242
Member Avatar for muhammads

From what little I've read about it [here](http://www.nongnu.org/pngpp/doc/0.2.5/) you shuld prolbably use [Code::Blocks with MinGW](http://www.codeblocks.org/downloads), which is the windows port of GCC because png++ is documented to work with gcc and not VC++. That's not to say you can not use vc++, just that the port will be easier with …

Member Avatar for muhammads
0
1K
Member Avatar for samohtvii
Member Avatar for Ancient Dragon
0
206
Member Avatar for pkfx
Member Avatar for dreday92

what "issues" and what function? If there are compiler errors then post a few of them.

Member Avatar for Ancient Dragon
0
174
Member Avatar for cortiknee

write your own similar [to this](http://www.cplusplus.com/reference/clibrary/cstdlib/itoa/). You won't need to write a complete implementation if all you need it to convert an integer to string. In that case its the same as atoi()

Member Avatar for dverex
2
15K
Member Avatar for riccardo-m

instead of all that shifting I just store it in a char array then xmit the array inx x = -123; unsigned char buf[sizeof(int)]; memcpy(buf,&x,sizeof(int); // now just xmit buf Serial.write(buf,sizeof(buf)); // C++ code to convert the captured bytes back into a long integer int x; memcpy(&x,buf,sizeof(int)); // or this …

Member Avatar for riccardo-m
0
3K
Member Avatar for nikhil.pro
Re: hi

>how can i link my file to this question? One of the items in the purple ribbon above the edit box is Files -- click that link.

Member Avatar for Ancient Dragon
0
106
Member Avatar for Subodh11

The first problem is the program is attempting to change data that is stored in read-only memory. String literals can't be changed. You can correct that by storing the string in read-write memory like this: char data[]="ALOK KUMAR ASHISH KUMAR ANKUSH After that you will want to set pointer t …

Member Avatar for Ancient Dragon
0
143
Member Avatar for Unhnd_Exception

Most likely because there has already been enough said on that thread. It's all about suggestions -- take it or leave it, that's your choice.

Member Avatar for Reverend Jim
0
147
Member Avatar for linc186

Is the code beginning on line 21 of Intro.h really in intro.h or is that just a posting mistake? It should be in a file named intro.cpp. If you really have it in intro.h then that is a problem, remove it and put it in intro.cpp. As for the undefined …

Member Avatar for gusano79
0
283
Member Avatar for limzhengtong

you need a semicolon ; at the end of the class declaration in the header files. Also, in the \*.cpp files, remove the semicolon before using namespace std statement class foo { // stuff here }; // <<<<<<

Member Avatar for zvjezdan.veselinovic
0
409
Member Avatar for bigstorm

computer science is compatable with almost all other fields, and at least some knowledge of other fields is required because programmers and computer scientists don't work/live in a vacuum. To answer your question, yes I can see a double major of computer science and mechanical engineering.

Member Avatar for editorawais
0
244
Member Avatar for zeppelyn

>int bsort(int Ar[], int count, int swc) Are you required to use that or did you make it up yourself? I would have passed count and swc by reference so that the bsort() can change it for main(). Then in main() you don't call bsort() in a loop, but only …

Member Avatar for WaltP
0
197
Member Avatar for np complete

you mean[ this](http://www.youtube.com/watch?v=t1vexQzA9Vk)? No,

Member Avatar for zeroliken
0
90
Member Avatar for maeve.goodall.1
Member Avatar for muhammads

look into [boost filesystem](http://www.boost.org/doc/libs/1_51_0/libs/filesystem/doc/index.htm) which is cross-platform

Member Avatar for rubberman
0
206
Member Avatar for billionair

yes. For small programs like you might write in first year programming courses it doesn't really matter a whole lot, unless of course you are learning how to write functions. They become very important in larger programs to keep the functions small and understandable.

Member Avatar for rubberman
0
166

The End.