Beginners - May 2013 (Page 50)

Searching and Sorting Arrays
 
Heyy guys. I'm kinda new to c++ and I'm totally stuck :/ Nothing happens after I enter the ticket number. I don't know what's wrong with my code :( I need some ...
[2 replies] Last: This is one of my homework problems on Myprogramminglab and it doesn't... (by Manisha95)
need help with this
 
it says Write a program to calculate the salary as per the following table here is the table http://i40.tinypic.com/2hxy8nc.jpg I can only get t...
[5 replies] Last: Try this #include<iostream> using std::cout; using std::cin; using s... (by eyenrique)
Abstract class inheritance issue
 
I am (still) working on a bank account project for school in which I instantiate and use different class objects - some of which are abstract class types. Th...
[4 replies] Last: I will try that in a couple of minutes. Makes sense as the compiler se... (by IdivideBy0)
by Keelan
Arrays and Structures
 
I'm having a lot of trouble with using arrays in structures. I can't seem to get the format right and I don't know how to point to an array within an array of s...
[10 replies] Last: Last question, so I finally have my program complete. BUt theres a pro... (by Keelan)
read content from file
 
for example:(hassan javaid \t google chrome) i want to use getline function to ignore space between hassan and javaid #include<iostream> #include<stri...
[no replies]
by tpinon
Help! Deleting all contents!
 
I'm trying to create a function that will search for a specific record and delete it, but my function is deleting all the contents of the file. I can't figure o...
[1 reply] : Don't you think accessing the file directly could be complicated? You ... (by Aceix)
Recursive function help!
 
Im stuck. Im having trouble making the linked list print all 'Z' if the elements in the list are capital. void make_Zs can only pass a parameter that is a point...
[2 replies] Last: In what way are they different Myangryplatypus ? (by Smac89)
by tpinon
deleting all contents from a file
 
Is there simple code to just delete all contents from a binary file?
[2 replies] Last: great thanks! (by tpinon)
Is this formatted correctly?
 
Hey guys! I am still very new to C++ and am currently learning about converting decimal to binary, and binary math. I decided to try and make a simple program t...
[4 replies] Last: Ah very true. I had them as global before because instead of a default... (by TheSuperPhreak)
Get list element
 
Wirte a function that find the n biggest element from the list .Put these elements in an array in descending order . (You can run the list only once) . I am a ...
[7 replies] Last: This is not a homework service. (by AbstractionAnon)
How can i count the number of words in a string?
 
I have to make it so it will say this phrase has 2 words or this phrase has 7 words. I'm guessing I might have to use a while statement? #include <iostrea...
[6 replies] Last: You should read the description of the function before to use it. (by vlad from moscow)
opening number text file
 
how do i save a text file into an int array? the code i'm trying is as follows. #include <iostream> #include <fstream> using namespace std; int main() { ...
[3 replies] Last: In most cases (when you are using ASCII) you can just do //c is char ... (by MiiNiPaa)
Why isnt the toupper working?
 
I need it so even if you enter a capital Y instead of a lowercase y it just makes it all uppercase. Im trying to do this in line 36 #include <iostream> ...
[1 reply] : response = toupper(response); (by vlad from moscow)
Need help with passing variables to functions!
 
Ok so I'm taking a C++ class right now and we are working with functions. I really don't understand them and my teacher doesn't really "teach". I have problems ...
[1 reply] : Compare what you do with the example here: http://cplusplus.com/doc/tu... (by keskiverto)
Read data from text file
 
The task is to read data from file. sms.txt structure: first line: hour minute phonenumber second line: message #include <iostream> #include <string> #includ...
[6 replies] Last: Oh, I see what you did there... You deserve a trophy, sir, thanks! (by Messzir)
by MandyG
Drawing at specific coordinates in a loop
 
I am trying to write a program which simply reads through a multidimensional array (using 'for' loops) and if it encounters a certain letter (like 'A'), it wo...
[1 reply] : You need to use your i and j counters as variables in the location for... (by pogrady)
Class call fail
 
I'm getting so pissed on this right now. I can't call the "Login" class from the "TitleScreen" class. #include <iostream> #include <string> #include <wi...
[1 reply] : You need to declare the Login object before the titlescreen object. as... (by pogrady)
Error with classes
 
I have been coding C++ for a few days now, I know the basics + a little more. But today, while coding a calculator in a way I've never coded it before, I got...
[4 replies] Last: Put the lines 42-69 (the declaration of Addition, Subtraction etc.) be... (by Fransje)
Why wont it let me enter a second phrase?
 
It lets me enter the first phrase in fine but then it skips the second one and goes straight to the cout statements. #include <iostream> #include <string> #i...
[2 replies] Last: alright thanks that makes sense now. (by SlenderMan)
Can a Function return different types depending on conditions?
 
I want to write a function that that performs a calculation if the parameters passed to it are in a certain range, but returns the word "ERROR" if they are not ...
[4 replies] Last: You can only do that in a full OOP language where every data type is d... (by IceThatJaw)
May 2013 Pages: 1... 4849505152... 66
  Archived months: [apr2013] [jun2013]

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