Beginners - November 2010

exercice
 
Hello everybody, I am a beginner in c++! I'am doing an exercice but I have a problem that i can't solve. I'm trying to create a new class witch allows me to cre...
[1 reply] : [co de] Your code goes here [/co de] Point P2; Here you are usi... (by ne555)
by exca
how to overload operator= with pointers?
 
Hi all, I have written some classes in my code, and when I create object pointers of it, I want to assign one to another. I think I must write an operator= f...
[3 replies] Last: You may not need to define one for your nodes but I don't really know ... (by kempofighter)
Need advises doing exercise!
 
Exercise:make an algorithm counting average y values.Formula y=sqrt(2*t+x)when t=(1/(x-2)) x changes[-2;2] step h=0.5.Use loop while. So I made this algorithm b...
[5 replies] Last: Mind keeping it english pls :D, would like to learn out of this aswell... (by Faff)
Counting characters in a sentence
 
I need some guidance. I want to create a program which will count characters in words within a sentence. I want it to output like this: " Please type a...
[no replies]
FUNCTIONS
 
Hi there, I am trying to learn the concept of a function but looking for information on the web and my notes have made me more confused than ever! I know th...
[8 replies] Last: That would be this one :) Though in this case I think the first on wo... (by Faff)
simple program crashing
 
Howdy, This little program I've written for my class keeps crashing when trying to output elements of the list. Below is the code, with a comment at the point ...
[6 replies] Last: You are making this way too difficult. Just insert the strings into t... (by kempofighter)
by userpl
Split strings + writing into variable under condition
 
Hello This program read file and then it uses strcspn() to split strings. It displays words. I'd like to modify program now to check if variable "moja" equal...
[no replies]
by userpl
Split strings + write into variable under condition
 
Hello This program read file and then it uses strcspn() to split strings. It displays words. I'd like to modify program now to check if variable "moja" equal...
[no replies]
by phunk
string matrix addition to get answer of type double
 
// Hi , Program is to get the final marks based on the following formula. // I get an error that it cannot multiply grades ... with the constants. // Any h...
[no replies]
by ipcmd0
C++ w/Operator Overloading & Inheritance Failing to Execute
 
Hello, I've been banging my head on this for a while now. I have two classes, RationalNumber and Term. The RationalNumber class allows for the creation of an ...
[1 reply] : The program seems to fail when I try and create a default Term object. (by ipcmd0)
Replacing malloc with new
 
Hi, I'm trying to replace this line array = (el *)malloc(realsize*sizeof(el)); with this one (el *) array = new array[realsize*sizeof(el)] Is this ...
[6 replies] Last: Awesome info, thanks for everything disch (by claudiordgz)
Chatbot: Many Issues
 
Well. After a 2-3 year break from programming (Done a bit, but no C or C++ unfortunaly), I finally wanted to start a little project. I fell across this 'tuto...
[1 reply] : [code firstline=20]//typedef std::vector vstring; typedef std::vector... (by ne555)
Exception
 
i don't know about part of "exception" Please help me to know. thanks!
[1 reply] : http://www.cplusplus.com/doc/tutorial/exceptions/ (by firix)
Comparing Arrays
 
I am working on a project for school in which you must take an answer key, students names and their answers from a text file and output how many the students go...
[1 reply] : for//a for loop because you are preforming an action for each element... (by hamsterman)
Characters programme
 
Hello, I am new guy in here and I am learning how to use a C++, but I have problems. How to use this and make them work in C++ language, but not written in C l...
[1 reply] : You mean, how to use iostream ? printf("This line will be with low t... (by hamsterman)
by Prex
Opperand Error in If statements
 
so I'm writing a program to check sudoku puzzles as you solve them, so if you put a number in a spot where it is already in the row, column, or square, it will ...
[2 replies] Last: Ahh, that makes sense, thank you. I'll probably switch to characters (by Prex)
by potpot
Largest sum of given coloumn
 
I have a problem with getting the largest of the sum of every column in my array. What I need to do is get the total for every column, a , then display the lar...
[1 reply] : You could put every sum into an array and then find the greatest value... (by hamsterman)
Employee class code outputs
 
Recently I got this written test qns which seems tricky at least for me. Can someone guide me along how to get the 4 outputs? Tks. #include <iostream> us...
[8 replies] Last: Hi Return 0 What I hope to have is step by step on how to get the a... (by makan007)
cannot compile the program
 
hello there.. i cannot compile the following program..please need your help //This program will be used to find different functiond #include<iostream> #in...
[5 replies] Last: Thank you tmoney ..going to try it next time:) (by engineer sara)
by Rave
Deleteing from BST
 
ok, i need to delete a tree from a binary search tree, the simplest case is when i want to delete a leaf node, check if the left and right are null and delete i...
[1 reply] : Depends on how that tree is build. If I'd do that I'd have an array... (by coder777)
November 2010 Pages: 123... 42
  Archived months: [oct2010] [dec2010]

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