General C++ Programming - July 2016 (Page 8)

Access violation writing location
 
Hi,I am having this error and it crashed. would you help me to find the problem? thanks Exception thrown at 0x00892C0B in AMIRHOSSEIN19.exe: 0xC0000005: Acc...
[4 replies] Last: Thank you so much (by artafroni)
Undeclared Identifier
 
Hi I'm having a problem with an undeclared identifier error. I can't seem to find out why < #pragma once #include <iostream> #include <vector> #include ...
[4 replies] Last: Does that help you? :) (by Naughty Albatross)
Array Help Please (1,2,3)
 
Trying to stop and exit array when "Enter key is Pressed" but stil add the values I have entered. CODE: int rowSize = 1; int colSize = 10; int array...
[53 replies] Last: So your problem is totally solved now? Have a nice day :) (by Naughty Albatross)
to store the dialled contacts in call log
 
Hello everyone, Can someone solve this problem? I've written the function. But it is not displaying any contact as dialled numbers. void PlaceCall(int j) {...
[2 replies] Last: Line 21: __DATE__ and __TIME__ are not going to give you the current ... (by AbstractionAnon)
If activation for preprocessor directive
 
Hello, I want to activate an preprocessor directive with an "if" command, something like: if (condition){ #define SOMETHING } Is there a possibility...
[2 replies] Last: you can compare other macros or possibly static_assert s (by Ericool)
by mahdiz
Question about ifstream
 
Hey guys, I am trying to import a table of data form a text file by using "ifstream" command, But I can import just a table of 14*14 form 364*54. Any suggestion...
[6 replies] Last: Lines 5-6: You've declared the array twice. Lines 11, 13: Your for ... (by AbstractionAnon)
by aatwo
Unresolved external
 
Hey guys. I have a compilation error I am trying to understand, manifesting in the form of unresolved externals. Basically I have three files: FileA.h w...
[5 replies] Last: > The linker hasn't got a clue what myFunction is because it can't fin... (by ne555)
Scope operatur function call
 
Hello, I have seen the following case (see below). What does it mean? Why can showResult be called with the :: operator? Why is it done that way? showRe...
[2 replies] Last: :: is the scope resolution operator. If there is nothing on the left h... (by fcantoro)
Matrix - need good programmer help
 
*EDIT cout << "Enter number of integers: "; cin >> arrray ; OUTPUT: Enter number of integers: 1 2 3 4 Say user inputs 1 2 3 4 how can I count the number...
[13 replies] Last: int ROWS = 0; int COLUMNS = 0; int **array; cin >> ROWS; cin >> COLU... (by Naughty Albatross)
run time complexity of this program
 
I am always having confusion when it comes to run time complexity of an algorithm. I wrote this code for suffix array, I am not sure of the run time complexity ...
[7 replies] Last: closed account 5a8Ym39o6 (PM) > Here is my updated solution. http://pa... (by JLBorges)
Moving pointers in a matrix
 
Hi, I'm doing a project that has a 2d array of pointers of Base class (Critter), and it holds objects of two derived classes (Ant and Doodlebug). Now, everythin...
[19 replies] Last: Cheers, all the best :) (by closed account 48T7M4Gy)
by dereck
geometry calculator,part1 and 2
 
Part #1: Write a program which displays the following menu: Geometry Calculator: 1. Calculate the area of a circle 2. Calculate the area of a rectangle 3. ...
[2 replies] Last: A simple way to create a programm is to use the given text and find th... (by closed account 48bpfSEw)
Compare
 
my program: #include<iostream> #include<vector> #include<string> #include<cctype> #include <stdio.h> using namespace std; int main () { vector<stri...
[2 replies] Last: You declare two counter variables. For example, counter1 is for four-l... (by Naughty Albatross)
vector problem2 (1,2)
 
my program is #include<iostream> #include<vector> #include<string> #include<cctype> using namespace std; int main() { vector<string> s; string ...
[24 replies] Last: I think you meant guys. (by closed account 48T7M4Gy)
calculate the number of different letters and compare
 
my question: if the number of four and five letter words input is equal, then your program should have no output. Otherwise output either the four or five lette...
[8 replies] Last: just a note for the future :+) There also shouldn't be 2 topics about... (by TheIdeasMan)
AES-128 Encryption using OpenSSL with ECB mode of operation
 
Hello all. Can anyone shed some light on some documentation or examples of AES-128 with the ecb mode in C++ or c even? I understand 64 bits are enciphered at ...
[2 replies] Last: Google didn't help? Unfortunately no. All the examples I found impl... (by ChocolateColumbo)
Thread within class
 
I'm trying to use thread lib within my class, the class basically just runs specific python function and stores it's return value, everything works fine however...
[5 replies] Last: Yes, it still freezes because line 4 will block like a normal function... (by coder777)
Xcodecopy asignment operator is implictly deleted when trying to delete from vector?
 
So I'm trying to write a clone of Space invader using SFML and everything was going fine until I tried to delete from a couple of vectors, now I'm getting an er...
[3 replies] Last: why exactly would not having my constants set to static make the copy... (by coder777)
Need some help with c++ functions (a lot of functions with combination)
 
hi, guys i'm in colleage trying to do some homework with cs10 and got stuck with this combination of functions please help me out!!!! T^T spent 8hours today sti...
[2 replies] Last: http://www.cplusplus.com/forum/beginner/194119/ (by Naughty Albatross)
1 function to for multiple "gets" using template
 
let's suppose I have program like the one below, is it possible to make a single "get" function to retrieve any of the used variables in union using templates o...
[9 replies] Last: @Cubbi store them in the variable of specific type (int, long, double... (by mekkatorqu)
July 2016 Pages: 1... 678910... 13
  Archived months: [jun2016] [aug2016]

This is an archived page. To post a new message, go to the current page.