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

C++ help.
 
int sum=82; for(int i; i < sum.length; i++) { final=sum +final; } i need help getting the sum and adding the numbers together. for example 82 w...
[5 replies] Last: If you are looking for a simple answer to your question go with sujitn... (by Militie)
Running C++ programs on a USB flash drive!
 
Hey guys, How can I run C++ programs SOLELY off of my USB flash drive if a computer's hard drive would not allow me to download an IDE on it?? To pro...
[3 replies] Last: 1) https://www.google.ru/search?q=DevC%2B%2B+portable First link: http... (by MiiNiPaa)
How to calculate and apply all possible char combinations (1,2)
 
I'm trying to figure out how to write a password cracking program that will try all possible char combinations for just two chars (without duplicating any combi...
[29 replies] Last: This is complicates code when OP has trouble with it right now. Lookup... (by MiiNiPaa)
grayscale to slope/inclination grayscale
 
Hi I have a bw(grayscale) image and want to calculate the slope for each pixel which returns a value 0 to 255 value. Pixels are always between 0 and 255. Th...
[3 replies] Last: @Disch: think of gradient (well, modulus of gradient) http://en.wikipe... (by ne555)
by Nanyo
open with... help
 
hello I am trying to open a .ps1 file(powershell file) with a C++ program. The problem I meet is that the .ps1 file is opening in Powershell ISE. I want to make...
[1 reply] : Powershell command line help page: https://technet.microsoft.com/en-us... (by Computergeek01)
Array of Arrays
 
how would i set up an array that contains a different array with in it. for example char s = { s ={1,2,3,4,5,6} s =...
[1 reply] : You're describing multidimensional arrays, this is how you'd go about ... (by tipaye)
multiply values in array
 
hello guys if we have array like int numbers = {3,4,8,9,6,3,2,58,6,3,2,5}; how can we fast do smth like 3*4*8*9*6*3*2*58*6*3*2*5 also numbers *numbe...
[3 replies] Last: #include <iostream> #include <algorithm> #include <functional> int m... (by MiiNiPaa)
forgot proper way to get info of one class into another class
 
ok im trying to setup my game. first I have my main.cpp which just creates Game game; game.run(); I also have my Player class but having trouble...
[3 replies] Last: struct player { /* .... */ void foo() { /* ... */ } int n = 25 ; }; ... (by JLBorges)
Question about statically allocated 2D (or nD in general)
 
So if I declare a 2D array like int a and I go into memory view I can see that a is not a vector of vectors (or pointer to pointer in other words), it is ...
[1 reply] : #include <cassert> int main() { using element_type = int ; // e... (by JLBorges)
how to convert numbers from char array
 
hello i want to convert in loop for example this char number ="54465465445646848640"; and in loop convert these element to int one by one.
[1 reply] : char is really a byte (so, an 8 bit integer). So, you can simply do th... (by BasV)
Error in function call of search function..Urgent!!
 
Error in long kitti=B.search(s,no,B); line....I have no idea ...Pls help..urgent!! I have an examination due tomorrow #include<iostream.h> #include<stdio....
[3 replies] Last: Make the search function static: class batsmen { public: static long... (by coder777)
RunTime Error
 
Hi guys, Yesterday I've changed something in my program and didnt debug before I closed it. What's wrong about the CTile::GetTypeID()- function? I dont know ...
[6 replies] Last: Sorry I suddenly felt ill but after 16hours of sleep im Feeling way be... (by HalfNOoB)
C++ Difficulty with File Input Loop?
 
Hello! I'm a very novice programmer and I'm having trouble with File input looping. I'm reading from a list of books and their associated titles, cover types...
[1 reply] : Hmm, I copied your code all into one file, and the only changes I made... (by tipaye)
by Martes
overload operator=
 
Hi! I want to overload the operator =, but my object has pointers, so when I do the return, eventually it passes a copy and so my destructor kills it... how ...
[3 replies] Last: Also: http://www.gotw.ca/gotw/059.htm (by keskiverto)
How to print matrix ?
 
I wants to print matrix such that Consider that original matrix look like following 1 2 3 4 5 6 7 8 9 Now I want to print like following 7 8 9...
[1 reply] : Assuming that you input the matrix in the console, the shortest way wo... (by poteto)
Help with letter grade to numerical grade
 
#include <iostream> using namespace std; int main() { char a; int b; cout << "Please input letter grade: "; cin >> a; if (a == ...
[5 replies] Last: Thank you! I didn't realize there was a default case for switch statem... (by kmiller3401)
PLEASE HELP!!!
 
I am working on this assignment and I have half of it completed, I am struggling with writing code and plan to get some help with it but if someone could help m...
[3 replies] Last: Next time don't wait until the last second to try to get a project don... (by closed account 2UD8vCM9)
College Assignment help!
 
This is my second week of C++ course, and I have an assignment due. My instructor doesn't tell much; his teaching technique is to give few hints, and let the st...
[2 replies] Last: WOW! So quick; it works. Thank you so much! (by nomanrasheed)
Printing name in reverse using pointers.
 
There is alien code. What's wroooooong? Thanks in advance. #include <iostream.h> #include <conio.h> #include <math.h> #include <stdio.h> using namesp...
[5 replies] Last: [quote=Idontownaplanet]-namespace std should not be practiced anymore ... (by cire)
SOMEONE PLEASE HELP ME!!!:D
 
this is the program i currently have however it doesnt work and im not sure how to get it to work! many thanks :) #include <iostream> //for cin >> and cout <...
[11 replies] Last: It will be beter if you read some tutorials, it seems you don't know t... (by TheHardew)
January 2015 Pages: 1... 34567... 24
  Archived months: [dec2014] [feb2015]

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