General C++ Programming - March 2017 (Page 6)

Matrix printing
 
Hi all, so i'm trying to use a function to print 2 matrices, i expect it to print in the 2x2 form but it keeps appearing on a straight line. The function: i...
[2 replies] Last: oh, thank you. (by apollocreed)
by SCB3
Why this is happening?
 
So I'm trying to implement reading in a file of a board game. Now, I know the error is something to do with the first if statement, but as far as I can see, th...
[6 replies] Last: http://stackoverflow.com/questions/5605125/why-is-iostreameof-inside-a... (by cire)
by blippy
Using _Decimal64 from g++
 
I am mixing and matching C/C++ in a single project. Whilst gcc recognises _Decimal64 as a built-in type, g++ does not. Is there a way that I can cajole g++ into...
[4 replies] Last: Nice, I didn't catch that these were OS specific defines, sorry. (by jonnin)
Integer Array that can be sorted in different kinds
 
Our professor haven't taught us about these parts yet the only clue we got is that it uses array. Any help would be appreciated. Create a program that would...
[1 reply] : c++ has built in sorting, but usually these problems are to re-invent ... (by jonnin)
Plugin <stdlib> works no more. What plugin instead ?
 
Hi all! My O.S. ubuntu Linux 16.04. My compiler GCC, belonging to Code::Block 13.12. My program : Echo Chess Program. My compiler says about #include<stdlib>: n...
[3 replies] Last: Thank you very much. With <cstdlib> it's OK !! (by sylvain)
hook sendmessage without DLL
 
This is a example hooking windows api messages normally i must to use dll. Example: Injector. #include "stdafx.h" #include <stdio.h> #include <stdlib.h> #inclu...
[1 reply] : You can copy executable code directly into the other process' address ... (by helios)
find matches between 2 arrays
 
trying to find matches between my 2 arrays and display how many matches. int matches(int userarr , int usersize, int arr , int size) { int matches=0; matc...
[7 replies] Last: To see what's wrong with your code, here it is, indented to show the b... (by dhayden)
Issue with filter
 
I'm getting a duplicate in my array and I cannot figure out how, here's my output and code below Process started >>> Win32: Allocating Device Array... Suc...
[17 replies] Last: Okay was getting the same result only because I didn't notice that com... (by awsdert)
issue with validation loop
 
Hi, my assignment is as follows: Write a program that uses the following arrays: • empId: an array of seven long integers to hold employee identification n...
[1 reply] : Your do while loop conditions are wrong - you're just missing an = for... (by prc27)
Convert int to LPWSTR
 
How i can convert a int to LPWSTR?
[9 replies] Last: This shouldn't be happening: those symbols are defined by the standar... (by mbozzi)
Help with using functions!
 
Im trying to use functions inside functions... this is what i have... void Init_Keno(int arr , int size); void twenty_Num(int arr , int size); void disp_Boa...
[1 reply] : Im trying to use what i have in each funtion without typing the same c... (by iosgaming700)
Help calling a function in a function
 
made a function and need to use a function inside a function. I hope it makes sense. Ask below if you need clarification. void Init_Keno(int arr , int size); ...
[3 replies] Last: EDIT it worked (by iosgaming700)
Calculator Program
 
I've been assigned to make a program which can calculate all of the options stated below. I'm receiving an Error message saying "too few arguments to function '...
[1 reply] : getOperands(num1); This only passes one number when it was initial... (by Hengry)
Show console since dl using mingw
 
The dll will be: // dllmain.cpp : Defines the entry point for the DLL application. #include "stdafx.h" extern "C" __declspec (dllexport) void...
[2 replies] Last: How i can link the console to my dll?????? (by omarespanol)
char question
 
i have a question about the rand() function say i want to read two character in like AB or and WC im trying to do it in a character array but when i cout it...
[9 replies] Last: i already solve it and i got to work in the loop thank for the help (by ghost1111)
creating all permutations of a grid?
 
I have a list of 2d vectors of characters, and I need to create and save all possible combinations of characters to this list. I already have some characters fi...
[4 replies] Last: yea that is what I got also, assuming you didn't want caps and lowers ... (by jonnin)
Fixing Date Class
 
I have to create an assignment that prints out the information that i set for the classes. I am having trouble printing the date on the program. I am not sure i...
[1 reply] : //d1.setDate(11/06/1996); d1.setDate(11, 6, 1996); Date dateOfBirt... (by ne555)
LVColumn question
 
Normally to get the name of item i do this: ((LVITEMW*)lparam)->pszText Reference: https://msdn.microsoft.com/en-us/library/windows/desktop/bb774760(v=vs.85)...
[5 replies] Last: As far as I understand LVM_INSERTITEMW or LVM_SETITEMW deal only with... (by Thomas1965)
random character generate
 
hello everyone char c,g; for(i =0; i <1; i++) { c=(rand()%1) + 'A';//i know if i set the rand() function like this g=(rand()%1) + ...
[3 replies] Last: it is initialized already. it contains your 3 possible outcomes. th... (by jonnin)
Return maximum value function
 
Hi guys so i'm creating this function to return the maximum value of an array, I have looked over everything but it still doesn't return the max value. int ...
[2 replies] Last: Thank you, that worked perfectly. (by apollocreed)
March 2017 Pages: 1... 45678... 19
  Archived months: [feb2017] [apr2017]

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