Beginners - April 2014 (Page 41)

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 thing is, that this program does not print "sk" (at fd >> s...
[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", with a data array and size). I understand what it does, but ...
[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 am trying to complete asks me to do the following:- "A pr...
[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 problem with this code ?? I need help , i have changed poin...
[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 calculations that need to be done within the program. I am basical...
[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. the programme is supposed to make sum of last m digits of ...
[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 example this string -- Doggy200 It's text but has numbers i...
[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). Replacing coordinates in vector (point - structure data type). T...
[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 every age entered the program will show "You have lived a cent...
[3 replies] Last: you are welcome! (by eyenrique)
Removed
 
Removed.
[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........... } double check() { do something.......... } My t...
[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 <iostream> #include <string> using namespace std; void convert(...
[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://www.youtube.com/watch?v=uXucv07o1sM
[no replies]
Why this code returns an error?
 
#include <iostream> using namespace std; template <class T> T sortArray(T data ) { int arrsize = sizeof(data)/sizeof(T); int x,y,temp; for...
[2 replies] Last: Thank you very much Disch :) i really learned a lot and fixed the b... (by Optimuskck)
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 Messages: 1. error c1083: Cannot open include file 'MenuBuilder.h...
[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 something like "You pay to directions well". I just can't see...
[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. Basically I have a struct that I am trying to declare an array of...
[3 replies] Last: Awesome, thank you for the help. Just curious, could you explain a bi... (by KvltKitty)
turbo c++
 
hi can somebody tell me how can i write my first name middle name and last name in turbo c++. Thank you
[1 reply] : #include <iostream> using namespace std; int main() { cout << "y... (by dleanjeanz)
by Pg0715
reading numbers in an array and placing the positive and negative integers in place
 
im not understanding how to do this im reslly lost any help would mean alot Write a C++ program that reads the numbers in an array of integers and places all ...
[2 replies] Last: does this seem better I ran it and worked but can I get some advice if... (by Pg0715)
best way to pass argument to constructors of array of objects?
 
Basically I'm making like a gazillion objects of this particular class and so im making the objects in a 1 dimensional array. The objects need access to the mem...
[4 replies] Last: bump (by MarketAnarchist)
April 2014 Pages: 1... 3940414243... 67
  Archived months: [mar2014] [may2014]

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