General C++ Programming - January 2015 (Page 18)

SOLO Learn STUCK
 
Write your question here.can someone help me understand what im missing or how im missing it? Challange 1 module6: Fill in the blanks to print the sum of th...
[9 replies] Last: Oh my god are you shit'n me? Lol it work wow I completely forgot all a... (by DesigNature)
steganalysis
 
I am doing my final year project on detecting an stegnographies image,ie, i need to detect if any image is hidden in one another image using LSB insertion, ie, ...
[no replies]
Convert 1-d to 2-d array !!
 
Write a program using user-defined function which accepts an integer array and its size as arguments and assign the elements into a two dimensional array of int...
[1 reply] : Google c-style array initialisation and c-style array 2 dimensions. (by mutexe)
Merging arrays and sorting the resultant !!
 
Write a program using user-defined function to merge the contents of two sorted arrays A & B into third array C. Assuming array A is sorted in ascending order, ...
[1 reply] : we don't do homework (by Yanson)
Adding-up Elements of a Two-Dimensional Array
 
Good day guys, I would just like to share my code and wanted to do something about it. This code shows a loop inside a loop initializing a two-dimensional arr...
[5 replies] Last: Reading both of your arguments made me laugh. Hahaha. But thanks, it d... (by exoruel)
Seg fault Newbie
 
I am coming from java to c++ and I am trying to adjust to the nuances(more like huge differences). I am getting a seg fault error and can not figure out why. I ...
[9 replies] Last: Or use smart pointers instead :P (by MiiNiPaa)
example : input : 23 output : 22333
 
I need help guys. Program : Input : 23 Output : 22333 Code : ‪#‎include‬ <iostream> using namespace std; int main (){ char myNumberCha...
[3 replies] Last: for(int i= 0; i < strlen(myNumberChar); i++) { for(int j=0; j < my... (by beko)
If/else help
 
Hey folks I just started learning C++ a week ago and have been stuck on a project for the past 2 days now. I am building a limited purpose calculator which find...
[5 replies] Last: jmadsen, I much appreciate you looking over my program. Embarrassingly... (by Riemann28)
Error LNK1120, LNK2019 - Passing values
 
Hi! New to the forum, user of the website. I'm currently coding a hangman game and I've run into the errors mentioned. I recently condensed my 5 levels of...
[3 replies] Last: You're welcome dude. (by mutexe)
by Xhobi
If Else problem
 
When i pass choice "2" why my program proceed to last else?It should have to stop. #MindStuck void Booklist() { int choice; ifstream books; books.o...
[2 replies] Last: I don't know where you are learning C++ from, but it's terrible. Get a... (by bugbyte)
by hanest
simplification needed
 
Hi there, I am writing a piece of code that simulates a random walk in 2 dimensions (an object chooses whether to move up, down, left or right randomly). I woul...
[5 replies] Last: Thanks for the advice, i have since used theideasman suggestion and us... (by hanest)
to minimize all open windows
 
please anyone help me how can i minimize all open windows using c++ program? I want to call the minimize function at some places in my program... so write how ...
[2 replies] Last: i want it for windows os. (by Prabhat Routray)
unsigned char[] to const void* ?
 
How to convert these data types? i have an array of bytes in unsigned char array, and need to convert to const void* pointer.
[3 replies] Last: Consider not using C-style casts on pointers. Those are dangerous. Sim... (by MiiNiPaa)
Define an Optional Parameter in C++ Functions
 
Hi. I want to create a function with Optional parameters. I know this feature is not available in C++. But i heard that i can use a handmade class called Option...
[11 replies] Last: Don't forget the comma: #include <cstdarg> void function(int x, ... (by Duthomhas)
Assignment operator but with some member exceptions
 
The task is to use the assignment operator of a class, but change all the data except certain ones. For example, below we are to assign all Person data of 'oth...
[3 replies] Last: Factor into two classes: namespace detail { struct person_identi... (by JLBorges)
image header file problems
 
Hello! I used GIMP to convert my image to header file. However, pixel data is a static char* type, and the function which will use it accepts only const Uint...
[2 replies] Last: thanks! it works. (by hakeris1010)
Boolean function in Turbo C++
 
Is the boolean function already defined under the default headers? Else, how would I create one? Would this work? : #define true 1 #define false 0 type...
[3 replies] Last: http://www.learncpp.com/cpp-tutorial/26-boolean-values/ I suggest to ... (by MiiNiPaa)
How to delete an element from an array?
 
Hello, I am learning on arrays and I have to learn how to delete an element(s) from an array; suppose I have an array x = {1,2,3,4,5,6,7,8,9,10}, and I want to...
[3 replies] Last: There is, but as you can't resize an array, the best you can do is mov... (by kbw)
Call of non function
 
I have decalred a password function which accepts an array as parameter but while compiling, it's showing an error wherever I have called it. void password(...
[7 replies] Last: Hey yeah I got you. Believe it or not, I'd initially called the parame... (by Pratik K)
Effect if VGA CRTC Mode Control DIV2 bit on text modes
 
Anyone knows what effect the DIV2 bit of the CRTC mode control register has on text mode display? Does it double every horizontal character? Or does it double a...
[no replies]
January 2015 Pages: 1... 1617181920... 24
  Archived months: [dec2014] [feb2015]

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