Beginners (Page 8)

Deleting a char*
 
In my destructor I have it so that it will delete the char* buf, but after the destructor is done it...
[1 reply] : [code firstline=6]String(){ buf = new char ; strcpy(buf, " ");... (by long double main)
by hwy63
Using structs in functions?
 
Hello, I am trying to create a program that uses structs to perform fraction multiplication. I need ...
[6 replies] Last: NEVER MIND FIGURED IT OUT! I have to put 'struct' in front of fractio... (by hwy63)
The program does not print results
 
Hello everyone, I'm writing here coz I can't find how to find the main problem at my code. The main...
[6 replies] Last: There isn't a number in your range that makes line 49 be true (by Lowest0ne)
by leo255
Function that returns object and "return *this"
 
Hello, I'm trying to understand the following function (it's part of a class called "stackDouble", ...
[2 replies] Last: I'm a bit iffy on the function returning it's class name by reference... (by AbstractionAnon)
Simple nested loop question
 
Hello everyone, I am new to the forum and this is my first topic. I am learning C++ and the task I ...
[2 replies] Last: Oh silly me =P Thank you very much! (by brokenmachine85)
sorting link list
 
This is a sorting function for double link list but there is always an exception error , what is the...
[1 reply] : Line 8 looks like it goes too far, shouldn't temp->prev->next = temp-... (by Lowest0ne)
by rjeezy
Help with File IO
 
Developing a program that opens a file for writing and reads from that file. I also have some calcul...
[4 replies] Last: Thank you so much. I really appreciate it. Now I know how these types ... (by rjeezy)
Text input and console crash ...
 
I made this programme and when I insert more than 10 digits this shows:http://prntscr.com/39l3pw p.s...
[3 replies] Last: If I only use main() - the program doesn't even compile. Try changin... (by wildblue)
Simple String Question (Please help simple question)
 
What value can strings hold I know they hold string literals/text but can they store numbers for ...
[6 replies] Last: > What value can strings hold A sequence of characters. 'a' is a char... (by JLBorges)
by Auroch
How to combine structures and vectors?
 
I have the next problem: Entering coordinates of points on a plain with keyboard (as rows x,y). Repl...
[11 replies] Last: Thank you so much! Very helpful! :D (by Auroch)
by binf
Need a little help!
 
I want to write a code where the user can enter undefined number of ages until input is 0,and for ev...
[3 replies] Last: you are welcome! (by eyenrique)
Stuck on an assignment, in need of assistance
 
I need help with a homework assignment. I can't figure out what exactly my professor is asking for. ...
[6 replies] Last: Ifstream is a stream. Work with it like you would with std::cin . T... (by MiiNiPaa)
different types without template
 
Hi, I am wondering how can I make something like this: int check() { do something........... ...
[4 replies] Last: Just a note: overloading resolution will take into account only functi... (by MiiNiPaa)
Arrays
 
I am starting to work with arrays. I was given this problem. adding 20 digit arrays. #include <ios...
[3 replies] Last: Sum has 21 elements. First value that you do look at in printSum is s... (by keskiverto)
by angelk
C++ ASCII Snow Animation for Christmas
 
Hello, I have such an effect using the library graph.h. Can you give me some advice or help. http:...
[no replies]
Why this code returns an error?
 
#include <iostream> using namespace std; template <class T> T sortArray(T data ) { i...
[2 replies] Last: Thank you very much Disch :) i really learned a lot and fixed the b... (by Optimuskck)
binary operator and a function
 
Please I need help this questions 1. What is the difference between a (binary) operator and a func...
[7 replies] Last: For starters you are missing the main function. You are also missing a... (by giblit)
A little confused: Classes and Objects
 
Working on my class assignment, and I'm not sure if I'm going about the right way. Error Message...
[13 replies] Last: You're welcome (by dleanjeanz)
Adding a counter
 
How do I make this so if the user does not enter the number 5 10 times in a row it will display some...
[1 reply] : do this int tries=0; do { cout << "Please enter... (by nickmiller24)
const int to declare an array of struct error
 
Hello all, So basically I'm having a problem that I can't really locate info on via google. Basic...
[3 replies] Last: Awesome, thank you for the help. Just curious, could you explain a bi... (by KvltKitty)
Pages: 1... 678910... 112
  Archived months: [feb2014]

Cannot post in this page. To post a new message, go to the first page.