Beginners - November 2013 (Page 19)

About **arrays
 
double **tmp; tmp = (double**)malloc(N * sizeof(double*)); for (i = 0; i < N; i++) { tmp = (double*)malloc(N * sizeof(double)); } for (i = 0; i < N...
[no replies]
by eran
sqrt 4
 
need help in task . Write a function that accepts a real value (non-negative) and returns the fourth root of the number. example: if z^4=x ,z is fourth root ...
[3 replies] Last: tnx for your help i succed (by eran)
a "Char" question.
 
Hello. I just wrote a program that gets your name,last name..... and then tells you a story. I have no idea why when I write a name with more than one characte...
[4 replies] Last: Thank you guys for answering me in detail. Your helps were really good... (by D4N005H)
Math Test using Input Files
 
Hi I am working on a Team Project, to create a Math Test, my side is Algebra. I have 2 input Files, and 2 Functions. What I am wanting to do is compare both Fil...
[no replies]
Array Initialization?
 
Trying to print out the two dimensional array but how possibly can I. I get an error on int col saying "type int unexpected." //Function Draw Car voi...
[13 replies] Last: One more question, I have been looking over strings and c-strings for... (by Disch)
Weird error no operator found?
 
Hello all, so I'm working on some code with an instructor given driver program, but I'm coming across two errors one of which is apparently popping up in the in...
[3 replies] Last: Sigh indeed, it appears according to other students in the class he ga... (by halamaker)
by KamKan
Positioning Problem
 
Hi, i am creating a struct program. i have my code with me but the only problem is the date and name won't show up and won't position itself properly. I don;t...
[1 reply] : One of the errors is the use of both k and i as subscripts at line 89 ... (by Chervil)
class composition issue
 
hi, i took this example from a previous post of another user.. whe i try to run it i get a compile error saying : "default argument missing for parameter 2 of P...
[3 replies] Last: thanks, that did the trick! (by ardengo)
by mattho
Deriving error along with class/struct/union error
 
Hello I have an error of the derived class(IDscore.h) not having getscore as a member even though it should be since it is part of the testscore.h which is what...
[3 replies] Last: error C2011: 'TestScore' : 'class' type redefinition Do you have in... (by norm b)
by aggsyb
Sending Mouse clicks to a window?
 
Hey I dug out an old game I used to play and just started playing again for fun , but their are some immensely tedious/repetitive tasks I would like to automate...
[1 reply] : Up , sorry if I rambled on. Cliffs: Need to take the co-ords of a mo... (by aggsyb)
Doubt about fstream
 
I'm writing an algorithm that writes in a file 10 characters (name) followed by 9 more characters (telephone), like that: Jhon 12345678 \n Albert xx...
[1 reply] : Take a look at the reference page for get(). http://www.cplusplus.com/... (by Chervil)
why 96 ?
 
for school i need to wright a program that reads a float number and then displays the largest integer that can fit , ex read in 12.123 should display out 12 wit...
[9 replies] Last: The = symbol is not an ordinary equals sign, like in an equation. It... (by Chervil)
Arithmetic with objects and classes
 
I've been scratching my head at this for a while and I just can't figure it out for some reason, any help or direction at all would be great. I just am having ...
[12 replies] Last: Thank you again, I think I get it now, it works wonderfully!! (by halamaker)
Help me. Always getting an error.
 
First of all, sorry for the messy codes. Our prof told us to make add,view,search,delete. I made all of them except delete since it's giving me an error always ...
[no replies]
by h4ever
streams - what is sense of this code?
 
I found one article which is not in English but there are some parts in the code which are very confusing. The code was not explained too much good but I see no...
[6 replies] Last: Well, thanks. (by h4ever)
Characters in ASCII code
 
Write a C++ program that reads a character and tells the user if it is a letter (‘a’…’z’, ’A’…’Z’), a digit (‘0’…’9’), a punctuati...
[5 replies] Last: OK informaticsgirl! All is well when ends well! I wish you happy p... (by condor)
by sofie
Counting numbers from the loop
 
I am thinking if it is possible to count the numbers from a loop..? #include <iostream> #include <fstream> #include <iomanip> using namespace std; ...
[no replies]
stop watch
 
Can a stop watch be made in c++ , if yes any idea how its made and which libraries are to be used
[2 replies] Last: yes i read the article it's fine but it uses sfml libraries and does n... (by Sharan123)
asciII
 
I need to write a program that reads 2 characters and chooses the largest and then converts it to upper case. what I wrote is working and it is converting but ...
[8 replies] Last: thank you (by iamlearning)
A problem with functions
 
Hello ,write a complete C++ program that contains two functions: Letters( ): that read 10 letters from file and return the number of upper ones. Numbers(): th...
[2 replies] Last: Try this: In the function number(), try and use x = infile.get() , i... (by tipaye)
November 2013 Pages: 1... 1718192021... 80
  Archived months: [oct2013] [dec2013]

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