Beginners - April 2014 (Page 18)

Text Files
 
Hi guys. I need to write a program which reads from a text file the elements of 2 given matrices. Excluding the text file business, i have written up a cod...
[5 replies] Last: don't worry I've figured it out! thanks for all the help (by closed account 1TpXSL3A)
Use pointer to pass an array of structs into function
 
I'm making a code to validate login information in the console. I'm trying to use a linear search function to validate the user name inputted by the user. I'm t...
[1 reply] : Line 19: You're attempting to declare a typedef, but don't give the t... (by AbstractionAnon)
Invalid Conversion Error
 
Hey guys, I'm in the middle of writing a program, but I came across this error that I can't seem to fix. At line 155, the error is: "invalid conversion...
[5 replies] Last: I had already figured out line 155 (I set my program up not to return ... (by psychoticbear)
Help deleting a line from a file (fstream)
 
Hello everyone. I need to delete a specific line from notas.dat, but instead of that, my code deletes everything but the line i input... For example.. i hav...
[4 replies] Last: I already tried... but didn't work either... when i do that, it delete... (by dualdark)
by Aceix
Programming editors on Xubuntu
 
Can anyone suggest a very good and free editor modified for programming on Xubuntu(GNOME). Tried GVim, but I'm having difficulties setting up custom startup pr...
[2 replies] Last: Checked it. Cool themes. You know how to build with arguments? Aceix. (by Aceix)
BEGGINER CLR C++ FORM indications needed
 
So first of all, thanks for your help in advance. This is my first post, this is very important to me, because this is regarding my thesis degree project. I st...
[6 replies] Last: I JUST WANTED to thank you and tell you that i managed to make it work... (by Leviatan1)
by kox
reference to an element of char array
 
Hello. I'm learning about pointers. I'm wondering why reference to an element of char array doesn't give me address of this element. For example: char arr ={ ...
[3 replies] Last: Ok, thanks. (by kox)
Q, 4 , 5 ,6
 
Hi Guys, Kindly help me on below : 4. An array contains the elements shown below. Using the binary search algorithm,trace the steps followed to find 88. A...
[1 reply] : for num 6: the function i wrote as : 6 = total / 2 Average = 3 is t... (by Aceix)
Program
 
Hi Guys, Aprreciate if anyone can help me out on this. 1. Write a program that reads integers from the keyboard. If any of the numbers are negative, it re...
[1 reply] : Start of with what you know and post/ask specific questions if you don... (by codewalker)
by Subo93
2D array Print the winner.
 
I want to print the highest scored player.. How can I modify this program for get that output.? the Player numbers are 100,101,102,103 . Here im getting Maxi...
[1 reply] : So this is your table of 3 rounds and 4 players. array tbl p... (by wildblue)
Have it compiled and running but NOT getting calculation right
 
I have to have the user to enter a code to signal if the person wants volume surface area or cross sectional area of a cylinder I have it working but the calc...
[5 replies] Last: YEEESS! works perfectly thanks guys ! It all makes sense now! #inclu... (by crocks1292)
Avg and Std Dev from .txt file
 
Having trouble with standard deviation. It was mentioned that I might have to read the input file twice? #include <iostream> #include <fstream> #include...
[1 reply] : I don't think you have to read the file twice, might be useful to have... (by mutexe)
Computing Course Grade
 
Write a program to compute numeric grades for a course. The course records are in a file called "inputGrades.txt” that will serve as the input file. The input...
[9 replies] Last: worked. thank you! (by goblue83191)
recursive algorithm.
 
im suppose to Write a program that will be able to get the prime factors of the number input by the user. Make sure your program implements a recursive algorith...
[1 reply] : Duplicate of http://www.cplusplus.com/forum/general/129854/ Please do... (by MikeyBoy)
Help me!
 
Hi dudes! I want know how to use int vector! I know to use char vector! --- Char vector e.g. program I use Code Blocks #include<iostream> #include<stdio...
[3 replies] Last: why would you want to use a vector of integers to do what I think you ... (by mutexe)
Error for character entries...
 
So... I found out that for this problem I HAVE to use an unsigned short for the acct #, which is the first variable. I am brand new to arrays, so I am in unchar...
[3 replies] Last: As TheIdeasMan said loop should start at 0 and go up to SIZE-1, so use... (by codewalker)
by xvvll
Creating a Menu
 
I'm trying to learn how to create a menu, i got this code online, and have been tweaking it, however i'm not sure how i can add more options to it, any hints wo...
[5 replies] Last: Good job, the hardest part of being a programmer is more the problem s... (by TheBeardedQuack)
why does my setprec. affect everything below it?
 
hi im writing this code to find the average of user input integers but when i find the average which i want to be set to setprecision(1), everything else below ...
[2 replies] Last: It is expected behavior you need to get the precision before setprecis... (by codewalker)
removing array[x]?
 
Hi I'm working on dropping array. for example, there are these three arrays mary 2 90 john 1 85 james 3 70 if I cin >> row, for example 0, it should pri...
[1 reply] : Arrays are a set size and I don't think there is a way to change it on... (by BHX)
Command line with sorted numbers
 
So I have a program that uses command line arguments to generate numbers and determine what should happen to the numbers (i.e sort in ascending or descending or...
[17 replies] Last: I got it! the problem was that in the gen() functions type are the int... (by Gawaine)
April 2014 Pages: 1... 1617181920... 67
  Archived months: [mar2014] [may2014]

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