49,757 Topics

Member Avatar for
Member Avatar for Zevoxa

Hello, I'm trying to create a program that installs a directory and then runs some commands in a console of that directory that is installed. I think I could manage doing running the console commands, but I'm having a real hard time in trying to make my program install the …

Member Avatar for Zevoxa
0
109
Member Avatar for KhizarIqbalEngr

Hi Everyone...!! Last Week, I Was Assigned A Project Of Building A Mine Sweeper Game In Console.!! I Start Working On It But I Don't Have Any Idea From Where Should I Get Started..!! I Want To Add Some Simple Graphics In My Game, But First I Want To Make …

Member Avatar for KhizarIqbalEngr
0
2K
Member Avatar for غادة

**Write a C++ program that will make use of the following structure and The typedef Statement: typedef int ArrayType[MaxSize]; The structure is the OneDArray structure, which contains the following data items: a- Name of array. b- Size of array. Use dynamic memory allocation (dynamic one-dimensional array) for storing positive numbers …

Member Avatar for owenransen
0
154
Member Avatar for CHOCHOCHO

I got this assignment from my teacher the other day and i am having a hard time understanding it. I asked him for help and im even more confused. **I AM NOT ASKING FOR YOU TO DO IT. I AM ASKING FOR ADVICE AND HOW TO DO IT** Write a …

Member Avatar for tinstaafl
0
160
Member Avatar for GaryWazHere

Hello, I'm trying to make my maze game object-oriented. The problem is my mazeArray. I'm a bit confused on how to use it correctly to draw out my maze. Map.h: #include <stdio.h> #include <stdlib.h> #include <windows.h> #include <process.h> #include <cstdlib> #include <ctime> using namespace std; #pragma once class Map { …

Member Avatar for tinstaafl
0
486
Member Avatar for moataz_elghoul

Write a code by if statement that inputs five numbers and determines and displays the number of negative numbers input, the number of positive numbers input and the number of zeros input.

Member Avatar for rubberman
0
60
Member Avatar for Vasthor

map<string, vector<int> > // 42 xref(istream& in, // 43 vector<string> find_words(const string&) = split) // 44 error: [errorPic](http://s13.postimg.org/3y4vgjdev/compiler_error1.png) this is a cross-ref program that's written in the book, the exercise told me to create an improved feature for it. So, before I start with my work, I need to organise …

Member Avatar for Vasthor
0
424
Member Avatar for sherubdorji
Member Avatar for jmareth

NO ONE SHOULD COPY THIS PROGRAM, ITS PLAGIASISM AND IF COUNT WILL RESULT IN AN AUTOMATIC ZERO FOR YOU AND I, so dont be stupid. #include <iostream> #include <string> #include <fstream> #include <stdio.h> #include <stdlib.h> using namespace std; void occurrence (char[], int[]); void initialize (char []); void sorts( char[], int[]); …

Member Avatar for jmareth
0
304
Member Avatar for kshahnazari

Is there any command in c# to make a c++ program run (no need to return a value and ...) ?

Member Avatar for Ketsuekiame
0
69
Member Avatar for nick.rechtien.5

Hey folks. I'm hoping I can get some help here. I have to make this program to play the game paper, rock scissors. I am having a few issues with the program. 1.) I dont think i am using the rand() correctly 2.) After entering your choice for Paper Rock …

Member Avatar for <M/>
0
284
Member Avatar for aqidis

Write a program that performs the least mean squares optimization. Given a large collection of data of the form (x0 x1 x2 x3 d), your task is to determine w0 w1 w2 w3. The LMS technique finds these weights by starting with some assumed weights, such asw0=w1=w2=w3=0, and finding the …

Member Avatar for flankechen
0
638
Member Avatar for ztdep

#ifndef TINYVEC_HPP #define TINYVEC_HPP #include <iostream> #include<iomanip> using namespace std; template<typename T_numtype, int N_length> class TinyVector { protected: T_numtype data[N_length]; public: ////////////////////////////////////////////////////// // Constructor ////////////////////////////////////////////// TinyVector() { } ~TinyVector() { } TinyVector(const TinyVector<T_numtype,N_length>& x); TinyVector(const T_numtype & initValue); TinyVector(const T_numtype x[]); TinyVector(const T_numtype & x0, const T_numtype & x1); TinyVector(const …

Member Avatar for ztdep
0
229
Member Avatar for robert.speciale

I'm still a bit of a newbie and have what is probably a minor issue, but for some reason I can't wrap my mind around it. I have a program that does a whole bunch of stuff to text from an input file. The input looks like this: MArch 9, …

Member Avatar for deceptikon
0
149
Member Avatar for robert.speciale

So I am working on a problem and have a bit of an issue that I can't seem to figure out and would like some guidance. I have string input coming into my program via fstream. Its a bunch of sentences where I have to cout it in such a …

Member Avatar for robert.speciale
0
186
Member Avatar for shrina

how to read from txt file to array & how to omit heading in the txt file and store it to array

Member Avatar for tinstaafl
0
251
Member Avatar for zahrak

hi. i work on image processing.how can i convert my mfile to c++ code? i try with : mbuild -setup mcc -B cpplib:mfile a.m and matlab compiler give me cpp code but i can not run it. how can add lib & header file that it can run? is there …

Member Avatar for mohammad110
0
852
Member Avatar for dmanw100

I'm learning how to use the SDL libraries but I'm having a small problem playing the sound. The program appears to load the sound but either not play it or play it too low for me to hear. Here's my code so far: [CODE]#include "SDL/SDL.h" #include "SDL/SDL_mixer.h" Mix_Music *play_sound = …

Member Avatar for hassan.ahmad
0
468
Member Avatar for GaryWazHere

Hi, I need help with my c++ maze game. The problem that I'm having is my keys and doors. I don't really know how to unlock a door after obtaining a key. Heres my code, its a bit messy: #include <stdio.h> #include <stdlib.h> #include <windows.h> #include <process.h> #include <cstdlib> #include …

Member Avatar for GaryWazHere
0
1K
Member Avatar for ירון

i wrote some program in c++ that open csv file and do somthing and copy the resault to new CSV file after compile i get exe file. when i run the exe file, its working well (create the new CSV file) but if i try to run the exe file …

Member Avatar for ירון
0
492
Member Avatar for zenooo

Hello ...I am a student in the second year engineering,,, I find it difficult to solve some questions in C + + anyone knows solve these questions, please help me, and I would be very happy These questions: Q1- Write a c++ program containing a loop to print all the …

Member Avatar for Liuqahs15
-1
130
Member Avatar for Elixir42

Hi , Please can anyone help. I have a window(1280x768) that contains a resolution(1920x1080). I am trying to use ScreenToClient to obtain the mouse coordinates while in windowed format. I am drawing a line from a subject to the mouse cursor which works fine in fullscreen but not in windowed. …

Member Avatar for Elixir42
0
508
Member Avatar for saadi068

I am working on NoC simulator in ubuntu 12.04 c++ is supported, I want to make a script that call my whole program multiple times (for loop= e.g 10) and want to take average value from the functions that were called from other files. Should I create a new file …

Member Avatar for saadi068
0
283
Member Avatar for benshums

Hi, I'm having trouble getting this linker bug to go away. I have 2 files: Socket.cpp and Socket.h. I know that these files are legitamite because my professor gave them to me during last semester. When I remove socket.cpp, everything compiles just fine. But with Socket.cpp, I get these errors. …

Member Avatar for sakthilolita
0
336
Member Avatar for terran1

Hello guys I have an application for face detection and recognition using OpenCV library and Qt (for multithreading and to handle XML files). When I run the app, it detects face and there is possibility to save it as a picture to a file. It happens after I click on …

Member Avatar for DeanMSands3
0
929
Member Avatar for modarbz
Member Avatar for DeanMSands3
-3
160
Member Avatar for tdee

You will create a program that determines the language of a given input file based on the words in that file. The structure of the input files will be one word per line (all lowercase letters). You should read these words in one LETTER at a time. Each input file …

Member Avatar for VernonDozier
0
237
Member Avatar for killer88

I am intrested in making an antivirus program. i have no idea where to start. please give me suggestion , where do i start ?

Member Avatar for Ancient Dragon
1
95
Member Avatar for annefr

Hello I am working on this project and I am having great difficulties could anybody help me please ??

Member Avatar for annaharris
0
76
Member Avatar for ConfusedLearner

For some reason my program is not working and dont know how to solve this problem. In line 15 the "users" is underline in red and will not run. Please help. #include <iostream> #include <cmath> #include <iomanip> #include <string> #include <fstream> #include <C:\Users\N.\Desktop\Popcorn\Popcorn\JJ.cpp> using namespace std; int main() { fstream …

Member Avatar for Schol-R-LEA
0
164

The End.