Beginners - March 2015 (Page 4)

function
 
what is d prblm?? #include<iostream> using namespace std; class test{ private: public: int sumf(int,int); int sumf1(int,int); }; in...
[4 replies] Last: Thats becuase your functions doesnt make any sense. int test::sumf(i... (by TarikNeaj)
Need Help with Streaming files
 
I am learning input and output of files,i use Dev C++ when i run code,hence,it doesn't stream text into File here is the code: #include <iostream> #inclu...
[2 replies] Last: oh damn lol thanks for note and help! i will be looking more deep next... (by SuperCrusader)
Problem with if... else.
 
I've had this issue before, and someone suggested using a bool variable. The problem is we haven't "officially" instructed on the use of bool variables, and my ...
[9 replies] Last: Yeah, fg pointed that out too. I fixed it promptly, and I'll let my in... (by Xatasha)
Problem: Searching N elements from an array which sum is X
 
You are given S,X and N. S = size of an array N = number of elements you have to find X = sum You have to find N elements from the array which sum is X. I...
[3 replies] Last: I am a beginner. There is only brute force (linear search) approach in... (by abdalimran)
Need help with data handling
 
Hey I need some help with file handling. I am making a math quiz. I am stuck on the last task of my work. This is the task specification. (any advice would be m...
[3 replies] Last: Exactly what changes did you make? (by fg109)
Need help with data handling
 
Hey I need some help with file handling. I am making a math quiz. I am stuck on the last task of my work. This is the task specification. (any advice would be m...
[1 reply] : Duplicate threads: http://www.cplusplus.com/forum/beginner/160683/ ht... (by fg109)
how to check if a file is emtpy with ofstream
 
How would I go about creating a if statement checking if a file is empty ex.a text file with no text in it?
[1 reply] : http://lmgtfy.com/?q=checking+if+file+is+empty+c%2B%2B (by TarikNeaj)
Palindrome Error
 
Hi, I've to made a program to check whether a string is a palindrome or not.. I've made following program.. After 2 hours of brainfucking efforts.. I'm still ...
[12 replies] Last: > why is this not working now because it doesn't build. c++ is case-se... (by ne555)
Can't convert a string to binary
 
Hi guys, can you re-write my program where it's mistaken ? I can't figure out how to convert my input string into binary :/ I will input 2 programs:the first is...
[14 replies] Last: nice...... :D (by shadder)
Declaring variables problems
 
Hello, I have some questions about declaring variables, its giving some problems a character variable c initialized to “y” an integer variable x unin...
[1 reply] : a character variable c initialized to “y” may look like char... (by shadder)
by el2015
Lingo in visual studio c++
 
HI guys, I need lingo in application with visual studio c++.How to call Lingo in visual studio c++ ?
[no replies]
Help
 
Please help me to solve the C++ problem to find out the difference between 2 hours???(hh:min) for example: hour 1 : 2:59 hour 2 : 1:29 the differen...
[4 replies] Last: cout<<"\nThe difference is "<< Ct- Ot; // should be Ot - Ct ... (by TarikNeaj)
given postorder and inorder,output preorder
 
solved
[3 replies] Last: give you as a reference http://blog.csdn.net/u012315428/article/detail... (by sirrunrun)
1st exercise about pointers
 
Hi, i had this exercise in the book I'm reading and I'm wondering if i did it right like the author would want it would be done 3. Write a function void to_low...
[3 replies] Last: Thank you guys, really good stuff. Now i can happily continue my quest... (by etrusks)
How to read/write a bmp file?
 
I want to write a code which make a image .bmp and to choose pixels colors from a file named pixels.in. I saw format file on wikipedia but I don't get how it ...
[no replies]
by koopey
recursion in linked list to remove node
 
hi guys. while running this program, i am getting program stopped working error. i want to remove a particular node in linked list by recursion. here is partial...
[no replies]
Array and If Statement - Can't Get Expected Output
 
I'm incredibly new to C++, in my first semester of a university computer science course. I've been trying to write code for an assignment where we're suppose...
[5 replies] Last: Oh, I apologize. I missed your actual question when I answered. fg109... (by Zhuge)
ofstream Assistance
 
Hello guys, so my ofstream is doing something very strange, it is spitting out junk to the file when I am writing out, i am using << which has worked for me ...
[no replies]
Bubble Sort Issue
 
I'm having an issue figuring out how to make a bubble sort, sort by high school name. I am suppose to create a program where the user can enter student's names,...
[2 replies] Last: https://www.youtube.com/watch?v=TVL5_1NWviA&index=2&list=PLHJE4y54mpC6... (by TarikNeaj)
Input words not being recognized in simple "if" statement
 
This is the first code that I have tried to write without directly following a tutorial. It is a simple "if" statement, where each of the three possible answer...
[11 replies] Last: happy to help :D (by shadder)
March 2015 Pages: 123456... 51
  Archived months: [feb2015] [apr2015]

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