General C++ Programming - October 2015 (Page 15)

String Subscript Out Of Range
 
I'm trying to create an XOR encrypter with a one time pad. I can't seem to get my randKey function to work as it always outputs an error (mentioned in the title...
[2 replies] Last: Oh I see. Thanks :) (by integralfx)
I need help fixing this code that adds and subtracts two arrays
 
I'm getting errors of the wall with this. My teacher didn't really explain it well. <#include "stdafx.h" #include<iostream> #include<math.h> using namespac...
[1 reply] : Hi, Please don't double post. kbw provided you with an excellent a... (by TheIdeasMan)
#include <cstdio> in Visual Studio 2015 Community Edition
 
I am an extreme Newbie to C++ Programming, so please "be gentle with me" !!! I am following a book "C++ A beginner's Guide" and have been doing some examples o...
[4 replies] Last: > my Linux Mint compiler made no complaints to gets The Linux Mint co... (by JLBorges)
problem with basic vector statements
 
When I compile it, it shows" no matching function for call to ....." can anyone help me? Thanks a lot! #include <iostream> #include <vector> using namespa...
[2 replies] Last: I see. Thank you so much! (by VJoyce9)
Can Someone please explain the logic of loops to me.
 
My professor and TA are not good teachers, whatsoever... I tried to ask them about the logic of looping, but they won't give me an answer. Instead, they keep b...
[4 replies] Last: To solve a problem like this, start by making a table with some key da... (by dhayden)
Help with pThreads
 
I am on a mac using terminal and atom and I am following along on (http://www.tutorialspoint.com/cplusplus/cpp_multithreading.htm) tutorial on pThreads for my ...
[2 replies] Last: What should I do? You need all the output for a line to be done in on... (by kbw)
Just doesnt work...
 
I recently installed this on a new windows and now whenever i type even the simplest of codes it just shows random numbers back as a result. Even when i simply ...
[6 replies] Last: The issue was with your code, not anything in "the settings menu". (by LB)
Advanced Data Type "Age" ?
 
Hi guys, Seriously, can someone show me how to do this? Write a C++ program by using: • Create a class Age, which has: 1. One attribute (DateOfBirth). 2. De...
[10 replies] Last: [quote=AmmmG 01]no need for anything else, just how to implement the p... (by LB)
by esolve
how to initialize static character string in a class?
 
I have a class which is actually a group of functions class{ static char errbuf ; public: static func1(); static func2(); .... } since I only want ...
[2 replies] Last: besides, besides, is the OOP in this design is a bit odd? if so, h... (by esolve)
by kruxan
Help with arrays
 
I'm a beginner of C++ as you might figure when reading my code below, but I can't get arrays to work as I want it to. I've now spent hours of reading tutorials ...
[3 replies] Last: Thanks for the tips, however I've now resolved it. But I've stumble o... (by kruxan)
by new1
stuck in file loading
 
Having file with strings specified like below Ex: test.txt test1=abc test2=vzxc test3=agda test4/ddf=cat testa44/addf=boy ... .. i want to sto...
[4 replies] Last: You can switch the maps like so: bool is_map1 = true; while(std::getli... (by coder777)
Ladar Simulation Framework Help
 
I am looking to create a very basic physical simulation in which a static scene exists in space and is 'viewed' by a simulated LADAR sensor (or Kinect or simila...
[3 replies] Last: there is several . Quickly on Google search : unity3d lidar sensor (by Ericool)
std::priority_queue with std::tuple<int,int>
 
Hi There! I'm having some problem at run time with this program and for all I can see, it should work. I would really appreciate any help anyone can give. The c...
[1 reply] : class Compare{ public: bool operator()(const triple_t& a, const tri... (by JLBorges)
Performing a Bubble Sort on a Character Array with Pointer Notation
 
Good evening all, I've just developed a program to perform a Bubble Sort on an array of characters using pointers to pass the array through several function...
[1 reply] : Replace arr with *(arr+count) as you did before: *(*(arr+count))... (by MiiNiPaa)
bitwise where (1,2)
 
Hi, I've been studying bitwise ops lately but I don't know how to test this content on my own: for e.g. 0 1 1 0 // 6 0 0 1 1 // 3 ------- 0 1 0 1 // 5 ...
[28 replies] Last: If you're really interested, checkout the book "Hackers Delight". Its... (by htirwin)
Word Reverser using C-Strings
 
I'm pretty much done with this assignment for my class. Although, in my final c-string "test" in which the words of c-string are supposed to be reversed it ...
[no replies]
funtion of Perfect Square/ prime number
 
I am trying to create a simple function that checks if a number that is entered by a user is a perfect square and another function that also checks if that same...
[1 reply] : Whatever you do see whether it is quicker to check for primalty first,... (by closed account 48T7M4Gy)
by Sh0es
Sorting with Parameter Options
 
I'm trying to implement a quicksort algorithm that can sort objects of the same class by one of several member types. Can anyone suggest the best way to do this...
[1 reply] : It's probably not the best way from your point of view given your ques... (by closed account 48T7M4Gy)
Assistance with Data Validation in Character Arrays
 
Hello! I need some assistance with a somewhat complex code of mine. Here's the scenario: The program is supposed to catalog the deliveries made delivery system...
[3 replies] Last: Thank you both so much for your help! I realized what I had to do, and... (by universal constant)
by roarkr
Code to change text format in text file
 
Hi, Is there someone who could help me with this issue. I have several hundred c++ code lines in a text file in this format: IOCP.sendVarData(number,...
[8 replies] Last: Update, Hi Roarkr, I have downloaded a light IOCP client using winso... (by Possum)
October 2015 Pages: 1... 1314151617... 27
  Archived months: [sep2015] [nov2015]

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