49,761 Topics
| |
Hi Given 4 contiguous bites, how the computer know if that is an ASCII character or integer value? Thanks | |
On my forum I go to we were talking about how some peoples C++ hellowords were 10x larger than the C version.On my GCC and G++ there is no difference but on some of theirs there is a huge one.If any of you wouldn't mind could you compile C [code= … | |
This is probably really easy question. How may I find in C++ if the number is even or odd? Thanks | |
Do all the protected members of super class are inherited to the sub class when we are deriving it in public visible mode or are there any exceptions. | |
char MiddleCharacter( ); //Returns the "middle" character of the //string. If the string length is even //then the right-most character of the //"left" half is returned. how to find the middle character in a string Thank you | |
Let's pretend that I'm interviewing you for a C++ job. I want to know how you[1] approach problems and the extent of your C++ prowess, so I'm going to ask you to solve short problems in C++[2]. These problems range from beginner to advanced, and may be more than they … | |
The copyList function here is not working working. Anyone have any ideas? // header file [CODE] #ifndef H_orderedLinkedList #define H_orderedLinkedList #include <list> #include <iostream> using namespace std; struct coordinates { int xValue; //variable to hold x coordinate int yValue; //variable to hold y coordinate }; struct node { coordinates info; … | |
Hi I have an application built in Excel which transfers arrays of data to S-Plus for manipulation and calculations and fetches results from S-Plus and displays them in Excel. It uses COM communication to link excel to S-Plus, however this can be quite slow as the arrays I pass have … | |
any 1 can help put on this..?i cant determine who is the winner when 3 x or 3 0 meet.. /* Tic-Tac-Toe This program will allow 2 players to play a game of tic-tac-toe. Input: Interactive keyboard input from the players. Output: The tic-tac-toe board */ #include <iostream> #include <iomanip> … | |
i wanaa make games in c++ plz give me some advice on how to proceed eg:- i want to make tic tac toe but ant make out the logic plz tell me how to proceed | |
------ Build started: Project: Login Server, Configuration: Debug Win32 ------ Compiling... isc_server.cpp login_client.cpp login_server.cpp main.cpp base_client.cpp base_server.cpp base_socket.cpp crypt.cpp crypt_server.cpp globals.cpp logging.cpp thread_manager.cpp Generating Code... Linking... LINK : fatal error LNK1104: cannot open file 'libboost_thread-vc80-mt-gd-1_34.lib' Build log was saved at "file://c:\Documents and Settings\Matt\Desktop\eROSE2\Login Server\Debug\BuildLog.htm" Login Server - 1 error(s), 0 … | |
Hi, I am working on a program for an assignment. It is to find all the anagrams contained in an input file. I have read the file into a vector. Next I created a 2D array that contains the orginal words from the file in 1 column and the signatures … | |
Hello all, my name is alfredo, and I am 13 years old. I just started learning c++ about 2 weeks ago, and I am having a problem that's really giving me a headache. I am trying to code a project that will contain 2 files, file1 and file2. When file1 … | |
Is there a way to pass a function template to another function? I tried this but it doesn't work. [code=cplusplus] template <typename T> void template_function( T arg ) { } void function( template <typename T> void (*func)( T arg ) ) { } [/code] How can I pass a function … | |
Hi. I have a C++ program (written In Borland C++ Builder) which makes requests and receives responses via SOAP. I have imported the SOAP using wsdl inporter. It has created the classes and I have created object instances from them. However, I have a particular element that has unboundd values. … | |
when i compiled my c++ code in linux platform (ubuntu), i got an error regarding with an array. the error states: array must be initialized with a brace-enclosed initializer. //source error long long byParam[2] = ""; can anybody show me a solution on my error...thanks | |
Is having static virtual functions possible in C++ ? I know its not as compiler throws an error but I am eager to know why? the one reason I can think of (please validate) "Virtual Functions are related to the object i,e calling a right functon on right object where … | |
Hi, i'm trying to use cygcurl-2.dll, i downloaded a simple example from curl site bur i'm not able to compile it properly. the example is this: [code] #include <stdio.h> #include <curl/curl.h> int main(void) { CURL *curl; CURLcode res; curl = curl_easy_init(); if(curl) { /* First set the URL that is … | |
Hi. I have developed PHP scripts (both server and client) and a SOAP/wsdl that work as expected. However, I would like to build the client side using Borland's C++ Builder 2006. This program will still access the web service using the wsdl while the server side script remains written in … | |
Hello everyone, In this post it might not be as interesting. I created a "while" loop with the purpose of continual runtime of the application until it closes. However, I came to a conundrum. In this "while" loop- [code] 01: while(true) 02: { 03: if(PeekMessage(&msg, NULL, 0,0, PM_REMOVE)) 04: { … | |
Hi everyone, I've been googling this for a long time, and most of the hits are about keyboard shortcuts in the actual IDE... it's so annoying.. :( I'm working on a pretty big VS project (about 20 source files).. I have to add some keyboard functionality to it... simple stuff … | |
fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory I'm using Vc++ pro. I have installed MySql and set the include directory C:\Program Files\MySQL\include\ in my project directory, that include folder does have mysql.h so I can't figure this out, anyone got an idea? | |
Ok I have a bug that is very hard to pinpoint. Upon Compilation I get Compiling... Forkin.cpp \vc98\include\xlocale(467) : error C2059: syntax error : 'end of file' ForkLift.cpp MainWnd.cpp \vc98\include\xlocale(467) : error C2059: syntax error : 'end of file' Mat4f.cpp Generating Code... Error executing cl.exe. Forkin.exe - 2 error(s), 0 … | |
can you help me plz in these 2 assignments: assignment1: Create a new string ADT (using a dynamic array). The data members of the String class are a pointer to the start of your string and an integer representing the length of that string. The following methods should be provided: … | |
Hello, First of all, I am new to c++, but have experience in PHP. I am currently working on a little educational program for myself and a group of friends. I use linux all the time, but my friends tend to use windows. i would like to add a graphical … | |
Hello everyone. Its been a while since I posted. I've gone through many threads regarding Linking issues that beginning programmers come across. Its the linking error - "error LNK2001 : unresolved external symbol." I admit I am a beginner and I also encounter the same problem. Going through all of … | |
The problem I am having is one in which I am using getline to read in a name with spaces, and when I attempt to output it it is cutting off the beginning of the names. This is the code I am using. I also have to have the cin.ignore('\n') … | |
started a new thread because naru got my interest. please explain. [code="cplusplus"] #include "stdafx.h" #include <iostream> #include <string> #include <cstdlib> using namespace std; void reverseword(char * reverse) { size_t size = strlen(reverse); //get the size of the char * for(size_t i = 1; i <= size; i++) { cout << … | |
all is not always what it seems. I found out the hard way that there is a very big difference between a copy and a direct assignment . [code=cplusplus] char* a = new char(); char* b = new char(); cin.getline(a,10,'\n'); strcpy(b,a); //ok makes a SEPARATE copy a=b; //This seems to … |
The End.