General C++ Programming - March 2016 (Page 4)

Inject C++ in compiled program
 
Hello, I'd like to inject my C++ code into an already existing and compiled and running (dynamic ed...
[1 reply] : In Windows you can use OpenProcess / ReadProcessMemory functions to fi... (by Konstantin2)
Randint issue! (1,2)
 
I'm on the verge of finishing this. I'm having just this one issue. I'm suppose to loop the rand 1...
[23 replies] Last: Thanks, I've learned quite a lot about arrays! I'll deal with the coun... (by DragonflyBeach)
Need help
 
Create a program that encrypts a plain text into a cipher text and decrypts a cipher text into a pla...
[2 replies] Last: Oh friend work on it. Don't rely your homework to others ;) (by julius france)
help!!!
 
#include <iostream> #include <string> #include <cstdlib> #include <ctime> using namespace std;...
[1 reply] : whats that? (by epal)
Limit the amount of output
 
Is there a way to make the program pause or stop at a certain line of output? I have a loan calculat...
[7 replies] Last: #include <iostream> #include <string> #include <iomanip> int main( i... (by JLBorges)
Reading from text File
 
I have a simple question I am trying to read from a text file, where each data is separated by a ...
[7 replies] Last: As you give more details of the problem, the solution begins to get cl... (by Chervil)
Odd Quirk in the Code (Tested Multiple Times)
 
I have just started to code in c++ this year, so I am by no means an expert. For an assignment from ...
[1 reply] : At a glance, you used = where you should have used == . Also, the ... (by cire)
by guru23
Vector problem
 
When asked to enter students grades, it only output the first number the amount of times that's cons...
[9 replies] Last: I give up. I'll just do it for you. This relies on you have a C++11 c... (by Moschops)
Selection Sort for Linked List and Vectors Using Iterators
 
I have to write a generic selection sort that will work with single linked lists, double linked list...
[1 reply] : Learn to indent Make sure that your code does reproduce your problem.... (by ne555)
by kbs96
Inequality in if/else statement
 
I am working on an assignment and I need to make different if/else statements to calculate penalties...
[4 replies] Last: you know and is a valid operator you may write bottom <= pay and pa... (by ne555)
String extension error
 
Not solved, poor comunity.
[1 reply] : IL2 =="yt_"<<IL; This makes no sense. (by Moschops)
pointers
 
So I have this code here, where I create an array, my question is why don't I get 0 as the output, b...
[1 reply] : Found it, I did foo(&ptr); instead of foo(ptr); ... (by Edward01)
Appending Node to DLL
 
I'm trying to append node's to a new list. The program currently crashes at the while loop. void...
[no replies]
binary search
 
Well from the below code i wanted to find the index of the first number higher/equal to x.'x' can b...
[2 replies] Last: What do you mean find the index of the first number higher/equal to x?... (by booradley60)
Append char to char pointer
 
Hello all, How do i append a letter to char pointer in C++; if i have: char *c = "Hello world"...
[5 replies] Last: Yes, typo. I'll fix it. Sorry about that. (by dhayden)
am confused about the output.
 
typedef char TEXT ; #include<iostream> #include<string.h> using namespace std; void JumbleUp(TE...
[3 replies] Last: You say it's C++, but there's almost no C++ in it. It uses C style str... (by Moschops)
by a10e29
Advice please
 
Hi, I'm a backyard programmer so bare with me. I've been reading a lot about anti patterns and well...
[7 replies] Last: Hi, I had a look at your diagrams: if those are classes and inheritan... (by TheIdeasMan)
No Output to Console (GUI application)?
 
Strange problem. I've built a GUI application using C++ with a TDM MINGW64 C++ compiler using Codeb...
[1 reply] : I found a solution. I need to put -mconsole in my linker options. I'... (by dominover)
How does the compiler allocate space for char *
 
Hello all , question about char pointer. when we declare this variable. char *word = "Hello, world...
[1 reply] : String literals ( like "Hello, world" ) have static storage duratio... (by JLBorges)
Problem with exchange sort int float pairs
 
File name:CSC2144N.txt Contents of .txt file -------------------- 10 7.35 -21 45.9 3 -4.56 85 34.1...
[no replies]
March 2016 Pages: 123456... 23
  Archived months: [feb2016] [apr2016]

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