Beginners - March 2014 (Page 33)

by Ram1
Can somone please Help me with this..
 
Declare a multi-dimensional integer array with 10 rows and 20 columns with initial values of each element in the array being 0. Use a while looping statement to...
[1 reply] : int array = {0}; cout << "Enter a column and a row and a value: or... (by Smac89)
Output after using pointers
 
Can someone explain to me how to track the variables in the code below? It is a practice problem for my programming final and I have no idea what is going on. ...
[1 reply] : I just commented the code as I worked through the program. Take a look... (by Volatile Pulse)
by gduong
Overflow in calculation area of rectangle
 
I am so confused on why i am getting a overflow for my rectangle. void calcArea(){area=length*width;} . I have been staring at it for 30 mins and i can't figu...
[5 replies] Last: Damn i am so bad. I understand now. Ty very much (by gduong)
by K Cii
Vector & Permutations (Homework Help)
 
Hi, I searched and found similar topics but nothing seemed to help with exactly what I need. The question is: - Write a program that produces ten random permut...
[1 reply] : Standard library example: #include <algorithm> #include <iomanip> #in... (by MiiNiPaa)
Parallel Arrays
 
OK this is what im trying to do Write a program that allows you to enter CD names into an array of strings and the CD artist into an array of strings. At t...
[1 reply] : Change: cin >> n; // ... cin >> cd_names ; // ... cin >> cd_artists ;... (by Volatile Pulse)
seperate chaining, printing one duplicate string
 
I have a hash table that reads words from an input file, converts each word to a hash value, and stores each word to the hash value index of the hash table. The...
[6 replies] Last: Nvm, got it. Thanks for trying to help :). (by closed account 2604izwU)
Random Movement
 
I need to make the bugs and ants move randomly throughout the grid. Will this allow for them to move randomly? Or am I simplifying the problem. Here is the c...
[9 replies] Last: Thank you for your help! (by giraffe1234)
by magyar
Structures not working
 
Hi, I am working with structures for the first time. I am not able to cout the data I read from a file using a struct. My program is below. What am I doing wro...
[11 replies] Last: #include <iostream> #include <string> #include <fstream> using namesp... (by JLBorges)
Conv. int to Roman Numerals!
 
I have a project due tonight where I have to convert integers to Roman Numerals. The problem I have with my current code is that the flow is a little bit off...
[1 reply] : On line 81 you forgot an else, so the code at line 85 is executed. Als... (by ats15)
Queue using a Circular Linked List
 
I am new to C++ and need a little direction. I am working on a queue. It is telling me that my pointer "new_data" is not initialized, but I thought I did initia...
[1 reply] : > It is telling me that my pointer "new_data" is not initialized, but ... (by ne555)
auto fails. What is the type here?
 
#include <map> #include <functional> struct A { void func1 (int x) {}; void func2 (int x) {}; void mapping() { std::map<int, std::function<void(...
[10 replies] Last: Yes. A non-static member function with one explicit argument has an a... (by JLBorges)
by lafo
Declaration of a Variable with a loop
 
hey guys, I am writing a code and have a problem I hope you can help me. :) As you maybe can see in my code below I am trying to create a declaration of a va...
[2 replies] Last: thanks for the help dude. i was so on the wrong track and didn't thoug... (by lafo)
Math and pointer location
 
Please help me find what is wrong with this code. I mean seriously I have combed through it more than a few times. I need to know why it is not delivering me ...
[1 reply] : Just scrolling through your code: [code firstline=174]x=rand()%(10^(b... (by Smac89)
Programming assignment help
 
...
[1 reply] : Yes, I'd recommend using loops to do this problem. Try reading the fol... (by Zhuge)
Overloading <<
 
When I had my code on one big page is was working fine but as soon as a try to organize it and make a header and cpp file for my class I ran into an issue with ...
[1 reply] : friend std::ostream& operator<<(std::ostream& is, IntArray& ia); ... (by ne555)
Rock Paper Scissors Help
 
Hi all, this is my first post. I need some help with my code for Rock, Paper, Scissors. The program runs but when I choose, for example, rock, and the computer ...
[2 replies] Last: Oh wow haha, thanks so much I appreciate it! (by Jacman11)
Addition of a transposed and original matrix
 
I want to add a transposed matrix and original matrix but i cent seem to get it.. can anyone help? Here's my code so far: float average() { float Matrix ...
[1 reply] : Considering the declaration float Matrix ; then Matrix would re... (by ne555)
by dean93
Help with Program
 
I get the correct out but it doesn't want to line up, and it reaps each value five times. #include <iostream> #include <math.h> using namespace std; ...
[1 reply] : line 23 is in the middle of a loop, so it repeats each time it loops. (by SamuelAdams)
using functions help
 
I need to call a separate function from main() that takes the inputed number and does the following: prints digits of this number; and returns...
[1 reply] : Returning each digit and returning the sum is different. if you wish t... (by giblit)
Parsing Input
 
So basically I'm creating a database I guess you could call it. I have a function that scans the input and then compares it to the key of a map and if it matche...
[2 replies] Last: I love you<3 Works perfectly. Thankyou so much. (by Renthalkx97)
March 2014 Pages: 1... 3132333435... 79
  Archived months: [feb2014] [apr2014]

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