49,757 Topics
| |
hello everyone, I need some relative information on recent developed softwares.:) thank you | |
Hi. I'm making small application what will do c++ programs compiling easier. I have this code: [CODE]System.Diagnostics.Process.Start("C:\\Alps\\compiler\\H-i586-cygwin32\\bin\\g++.exe", "-c Main.cpp -o main.o ");[/CODE] This code should start [CODE]g++.exe[/CODE] with arguments [CODE]-c Main.cpp -o main.o[/CODE] for compiling main cpp file to o file. Can you see any error in my code? Why … | |
this is what i have, and i have lots of mistakes in class to class...and friends functions dont know why, need your help CCar.h: [CODE]#ifndef _CCar_H //מונע אפשרות להכללות כפולות של המודול #define _CCar_H #include "CWorker.h" #define LEN_N_FIRMA 20 //class CWorker; class CCar { char m_firma[LEN_N_FIRMA]; // car firma int … | |
I am trying to use 2 USB webcams with OpenCV. I can get a visual with one webcam but I haven't done with two webcams. Can anybody help me? I use this code for a webcam. [CODE]void WebCam() { char Vid[] = "WebCam"; IplImage * frm; CvCapture * capture; capture … | |
hello am new here.. can somebody tell me if there's a restriction for a decimal numbers entered? for instance, cout<<"Enter number: " cin>>num; --- if the user put a decimal number on the variable num.. i want this to be INVALID INPUT in the terminal screen as a result. any … | |
Hi all, I have a switch statement with more than 15 different cases. I want to replace that with any better alternative which would be efficient and also will take less code. I came to know that function pointer can be one alternative. I dont know any anything about and … | |
I am trying to use Code::Block, But I still get some problem like when I'm using DevC++. In Watch Windows, I want to see A array. (example: int A[5][5]). but in debug windows, I will appear from top to down: [CODE]A[1][1] A[1][2] ... A[5][5] [/CODE]This style is to difficult for … | |
I know that this [ICODE]#define QUOTE(X) #X[/ICODE] turns X into a c-string version of whatever is passed to it. my question is if there is a way to do this in reverse ie: [ICODE]#define DEQUOTEANDCALLFUNCTIONORCLASSWITHGIVENNAME(X) (X#)()[/ICODE] is this possible? | |
Upon building my C++ projects vs2010 crashes even though the process was successful, I tried updating to Sp1 to see if that would fix the problem. But was stopped by some errors on installation. I tried to re-install, safemode, I had some addins about 3, AnkHSVN and two basic other … | |
I migrated the code from C++ to VS C++.Net. I got following error. u.ui2_local = (char *) wcsLocal; u.ui2_remote = (char *) wcsRemote; error C2440: '=' : cannot convert from 'char *' to 'LPWSTR' for both. rc = NetUseDel(NULL, (char *) wcsPath, lForce ? USE_LOTS_OF_FORCE : USE_NOFORCE); error C2664: 'NetUseDel' … | |
Dear friends: Could you please tell me how to set the tab in vs2008 so as to use multiple rows of tabs in vs2008. I could not fint it in setting. Regards | |
[CODE]#include <iostream> #include <algorithm> #include <vector> #include <string> #include <ctime> #include <cstdlib> using namespace std; vector<string> function1(vector<string>v) { for(int i=0;i<4;i++) {cin>>v[i];} return v; } int main () {vector<string>v; vector<string>guess; vector<string>guess=function1(vector<string>v); cout<<"size:"<<guess.size()<<endl; cout<<"contents:"; for (int i=0; i<guess.size(); i++) {cout<<guess[i]<<"";} cout<<endl; return 0; }[/CODE] i need to build vector<string>guess(4) in function function1 … | |
Hey guys. I just started to work with SDL few hours ago, and following some tutorials I've managed to make a simple application with a moving image, a background and with a FPS limit. Everything went fine and I've managed to run and compile the program until now. But suddenly … | |
I have started with windows programming.I am now in the painting and repainting part.When the WM_PAINT is called,the entire client window is supposedly validated,does that meaen the window comes to the foreground and becomes the active one? Or have I misinterpreted the meaning of validation of window? Please help. Thanks … | |
does anybody know library for c/c++ to catch pressing of keys like ctrl+shift+foo or fn+f7 etc. ? | |
This is a class that uses a vector to store 3 points (x,y,z) so i can find the distance from each of the points. Can anyone help me?? [CODE]#include <iostream> #include <string> #include <algorithm> #include <cmath> #include <vector> #define inline using namespace std; int main() { class Vector3 { public: … | |
Hi guys, i currently want to replace all spaces into another(or 2) special character, and vice versa. e.g (replacing spaces with 'xx' character and vice versa). Another way would be removing all spaces completely. Is there any method i can use to accomplish that? [code] #include <iostream> #include <vector> #include … | |
Hey guys, I'm very new to C++ and had a really quick question concerning linked lists. So I was wanting to pass a linked list to a function. I realize from another post that I need to put void function(Class * & head) to have it actually do something to … | |
Hello all, I want to develop Android java applications for Android Smartphones(>Android 2.1) and Android Tablets(>Android 3.0). I had already downloaded the Latest Android SDK and Eclipse plugin for that. The entire environment for developing the android application is ready with me. I have professional experience of programming in C++ … | |
Hi i am new to c++ i will be needing help so any1 interested in helping me | |
I recently change Code:Block. But I don't know, when I compile, at line 1: [CODE]#define <stdio.h> or #define<cstdio>[/CODE] I see an error:macro names must be identifier. When I compiled on DevC++, I saw no error. the second question I want to ask is, who have link or documents.etc.. that teach … | |
Hi guiz plz some1 help me out . i Am looking to earn some money with the help of my Visual c++ skills | |
I am trying to write some tool for MSDOS environment but it doesn't work as expected. I want to get the tool to read from some commandline pipe, like C:\> type a.txt|testpipe where testpipe.exe is the compiled program. The problem: After going through the piped contents, it does not stop … | |
please i want to know if its going to be possible for me to learn how to programme a market sellable anti virus, form Gentlevic. | |
I am using OpenWatcom to code C++ for interest, and I am in search for better compilers. OpenWatcom doesn't have string input and output operators overloaded, I always have to use workarounds. Can anyone name some [COLOR="#ff0000"]standard[/COLOR] compilers which compile and link [COLOR="#ff0000"]pure DOS exectables[/COLOR] for me? | |
#include<iostream> using namespace std; class area { double dim1, dim2; public: void setarea(double d1, double d2) { dim1= d1; dim2 = d2; } void getdim(double &d1, double &d2) { d1 = dim1; d2 = dim2; } virtual double getarea() { cout<<"You must override this functionn"; return 0.0; } }; class … | |
Hi all, I'm developing an application which helps to manage car park by recognizing the car's plate number. I use VC++, OpenCV, Windows SDK and DirectX in this app. But I'm now having a little trouble with it. Let me introduce a bit about how my system works so that … | |
I got this error when tried to compile.. 1>------ Build started: Project: experiment, Configuration: Debug Win32 ------ 1>Compiling... 1>commands.cpp 1>..\..\..\..\commands.cpp(19) : warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1> C:\Program Files\Microsoft Visual Studio … | |
Hi i have a task to stores marks for students, a struct is used to store this. the thing giving me trouble at the moment is how to read and store a floating point number within a struct, the data specifically for the mark is on 1 line of a … | |
I am writing a code that is supposed to give the payroll info for a specified number of employees. The user is first asked to enter the employee’s name, hourly wages, and number of hours worked for the week. Then when that is done the employee’s data, which consist of … |
The End.