Beginners - November 2013 (Page 48)

weird numbers on matrix multiplication
 
hi, first of all, sorry for my english, is not so good as I wish it was. I'm having some weird numbers on the output of my code, when I run the program it show...
[1 reply] : Line 35: uninitialized array. Line 37: use of uninitialized value. If... (by keskiverto)
Letter Frequency help plz
 
Hi, I am new to c++. I am writing a program that reads in a text file and gives a count of how many times each letter appeared in the file. I got it to read t...
[4 replies] Last: I just use this definition of SortArray because I had used it previou... (by cire)
by QataJo
Why wont it work?
 
#include <iostream> #include <cstdlib> #include <ctime> using namespace std; void DisplayMenu(); void Addition(); void Subtraction(); int main() { ...
[4 replies] Last: I'm a bit confused with how you corrected my program with the changing... (by QataJo)
errors in arguements in function call
 
Hello all, I had developed function in following way in my code, i am getting errors given below. Please let me know the cause of these errors. Function d...
[no replies]
Help - what am I doing wrong???
 
Hey... I'm not sure what I'm doing wrong here - REALLY need this done soon, as I have this due tomorrow!!! #include <iostream> using namespace std; ...
[3 replies] Last: You will be using all of that for the rest of your class, I seriously ... (by IWishIKnew)
Text file with Parallel Arrays
 
I'm trying to read a file that then sorts three sets of data (states, miles, shelters) into three parallel arrays. I've compiled it, but I'm still getting some ...
[3 replies] Last: seekg, not seekp. seekp() is a member of ofstream. The way I remembe... (by IWishIKnew)
by bebarb
Exception handling
 
Hi guys, I'm having some issues with exception handling, although I don't know why. I'm probably just tired and over worked but for some reason it's not cli...
[4 replies] Last: Wow, I'm not sure how I didn't catch that. I think logically speaking ... (by bebarb)
to cire about the allegro error message
 
The error message is "function aquire_screen() undefine". "Function makecol () undefine". I am using allegro5.0.10 for msvc10. I am also trying to run an edited...
[1 reply] : Can you give the exact error message rather than paraphrasing? A quic... (by cire)
Help with overloading
 
My task is to implement the output shown in the first attached code file. I, unfortunately, am attempting to learn a lot of this as I go, so I'm really lost. My...
[no replies]
First time poster (I'm sorry)
 
I'm going to be honest this is a homework question but its one specific thing that I am confused with. All the parts of the problem have to be done with while l...
[8 replies] Last: Thanks that did the trick! I ended up doing something slightly differe... (by TRAINWRECK)
need some assistance
 
got this question as a course work an i am totally out of it...........any of you smart programmers can assist.........also need help writing the pseudocode. i...
[1 reply] : You didn't learn anything in class?? (by IWishIKnew)
swap function
 
How to find the swap function ? #include <iostream> #include <string> using namespace std; // YOU WRITE THe SWAP FUNCTION PROTOTYPE HERE int main ()...
[1 reply] : um... int y(1), x(0); swap(x, y); //x and y are swapped... Mabey y... (by IWishIKnew)
Divide and Conquer
 
Hello, I tried to understand this piece of algorithm anlysis through slides and youtube but I can't understand the part that why we multiplied T(N/2) with 4...
[1 reply] : http://www.cs.berkeley.edu/~vazirani/algorithms/chap2.pdf (by mobotus)
NEED HELP WITH "WHILE LOOP"
 
This is what I have to do: 1.Create a variable named total (double floating point), a constant double variable named TAX=1.13. 2.Create and 10 element array...
[2 replies] Last: Global constants OK. Avoid global variables like you have here. doub... (by mobotus)
confusion of error
 
I ma not sure why i would be getting this error. After awhile of not figuring it out, i figured i would ask the forums. I am not sure if i acciedently deleted a...
[1 reply] : ok figured it out. After posting i reviewed the code one last time, an... (by metulburr)
by enz0
Blackjack game
 
Hi there, I need to make a simple blackjack game where you input the cards and the program outputs your total value. The problem is for some reason when I input...
[1 reply] : While in a traditional blackjack game, you don't input your cards, but... (by CplusplusAcolyte)
Arrays in a function
 
I need help with this program. I need to use 3 different functions. The first function should read in N amount of integer values from the user.If any values are...
[2 replies] Last: In your function "getData", your while loop is not prompting for them ... (by Parasin)
by AARGH
linked list; why is it defined struct Node * next inside the struct?
 
simple question regarding a pointer declaration. why is struct required for the Node * next? class dude { int na; struct Node { int ...
[4 replies] Last: It was because the names for structs were not in the same visible spac... (by Duthomhas)
pthread and fprintf(file_descriptor,..) question
 
I can use pthread_create() to kick off 7 threads, each thread contains a fprintf(unique_fid) command However I have noticed when running the 7 threads, the f...
[2 replies] Last: The most obvious answer: Each thread does not have a unique file desc... (by Disch)
what can we put in an array
 
Hello, Is it possible to have an array where each position of the array is an array? Thanks!
[2 replies] Last: Yes. That's called a two-dimensional array. There are two ways to do ... (by Duthomhas)
November 2013 Pages: 1... 4647484950... 80
  Archived months: [oct2013] [dec2013]

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