Beginners - April 2014 (Page 17)

Swap Function for Shuffle Function: Bitmap Image
 
Hello, I am having trouble finding the correct syntax for this problem: I must randomly shuffle 20 % of the pixels in an image. And I must also, create a swap f...
[no replies]
Pointers versus References
 
Hello! What are the differences between pointers and references? What are the advantages and disadvantages of ones rather than the others? Thank you in ad...
[18 replies] Last: Yes, the same location is being accessed by more than one variable. He... (by TwilightSpectre)
complicated password
 
much longer than it needs to be but i did it the long way which i find simpler 440 lines #include <iostream> #include <string> using namespace st...
[4 replies] Last: Those visualizations of a keypad are redundant- they can easily be iso... (by Ispil)
by rshoe
Dynamically allocating an array in array
 
I am trying to write a function that asks the user how many numbers they want to create and then dynamically allocating an array of that may elements. Then fill...
[3 replies] Last: Your welcome :) (by Codermik)
overly complicated password
 
much longer than it needs to be but i did it the long way which i find simpler 440 lines #include <iostream> #include <string> using namespace st...
[1 reply] : Double post.... http://www.cplusplus.com/forum/beginner/130090/ (by Codermik)
by mwmays
Seperate Chaining
 
My code will compile however when i run linux commands on it such as copperfield.txt is the full txt. g++ -o hw5.exe hw5.cpp ./hw5.exe < copperfield.tx...
[2 replies] Last: @Ryan: This has nothing UNIX/Linux-specific. @mwmays: Could you use m... (by keskiverto)
An Idiotic Newb fails at a program...(Please help!)
 
Hello C++ Forum! I am a (relatively) new programmer, and have a fiendish curiosity with everything computers. That being said, I received the following error wh...
[4 replies] Last: [quote=boxnuggets]Hey. I used the script. My only problem is, when I i... (by Duthomhas)
Help with entry level Encryption program
 
hello, I was given a task to write a program to encrypt the first character of a word. The word will be entered by the user. Additionally, the user will enter a...
[4 replies] Last: I don't think your TA was paying any attention to you at all. It look... (by Duthomhas)
simple game.
 
Hi guys, i am making a basic game that uses a menu system for the user to move a tank represented by T,tank can move up down left and right,in the enviroment th...
[1 reply] : This will not compile - some major errors are: - Function definitions ... (by JockX)
Homework Help Please
 
I can't get the cpp file to read the print() files from the .h files... Please can somebody check it for me and see what is wrong... This is the errors that...
[3 replies] Last: The Ship class should have the virtual print() function, but it shou... (by PrivateRyan)
Ignoring input after space
 
Initially my problem was if I input something like "asdf qwer" it would read "asdf" as input for UserID and "qwer" as input for password. So I am trying to mak...
[5 replies] Last: @codewalker you are right, was just an example, something more accura... (by eyenrique)
how to close the program after 3 tries
 
I am new to programming with c++ and for this current project I need help I need to create a loop that will close the project after 3 tries so basically if it...
[2 replies] Last: Lines 50-64 you need a loop so that the user can be prompted multiple ... (by AbstractionAnon)
by Auroch
Asssociative arrays: How to add data?
 
Hi, I have the following problem: Text file "strlines.dat" contains series of the following information of straight lines: 1) coordinate of one line's point 2) ...
[7 replies] Last: #include <fstream> #include <map> #include <iostream> #include <... (by AbstractionAnon)
read file by fstream
 
Write your question here. I want to devide the text in file data.txt into an array of char*( mean i use the pointer char** q) by the way line 1 for q , line 2 f...
[2 replies] Last: i used as you said and it still have the problem haizzzz so crazy i sp... (by Hades0162)
by vrivas
32767!!!!????
 
Hi this is my first time creating a C++ code. The task is to ask the user for ten numbers, determine whether each is even or odd and determine the max, min, and...
[2 replies] Last: min = n; max = n; n is uninitialized so this is undefined be... (by giblit)
Time between text
 
Ok I know the title is misleading but hold on. I want time between each line of text. For example I want it to say "Hi what's your name" and i type "al" then it...
[3 replies] Last: Nevermind, I got it to work. Thanks for the help AbstractionAnon! (by TheAnarchist)
Encryption Program help
 
I am trying to do the cipher program, but my code seems to encrypt all the characters, how can I just let it convert to just the first one? Thanks. deleted
[3 replies] Last: As I said you don't need the for loop, just the word.at(0) statement (by codewalker)
checking 2 arrays
 
I have to check 2 arrays to see if the characters are the same in both spots and the characters have to be the same, so an uppercase C is the same as another up...
[1 reply] : Line 7: index is unititialized. You're going to go through the loop ... (by AbstractionAnon)
Binary Compression
 
I'm currently taking a beginners C++ class and this program has been throwing me for a loop. I've completed a section of code but am clueless on what to do next...
[3 replies] Last: That has helped quite a bit so far. Thank you! (by SilentReverie)
<Vector> needs to be set to an array
 
I have to set the vector in this for loop equal to an array that I pass to it in the containing function, I'm not sure how to do this, can someone elaborate on ...
[1 reply] : What is line 11 doing? Is it supposed to be defining a vector object?... (by MikeyBoy)
April 2014 Pages: 1... 1516171819... 67
  Archived months: [mar2014] [may2014]

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