Beginners - March 2010 (Page 26)

by Robo66
do while with strstr Statment
 
It's been a long time since I coded anything. I'm having problems checking the equalty of a string function within a "while" statement. The loop never seems t...
[4 replies] Last: I wonder if it's the fegets() that is your problem. It says here http:... (by Computergeek01)
by oman
return float in return value function
 
hi every body! my question is: How can I return float value in return value function to the main function?
[1 reply] : Structure of a function: type name ( param1, param2, ... ){ body }... (by jRaskell)
A program that collects users information Question
 
Here is my code it complies but when it asking the question it work all the way up to when it ask you for your Address, then it skips city, and then it goes on ...
[4 replies] Last: Ok I got my program to work using something else but I was wounding is... (by OnymousIllusion)
structure declaration
 
hi im new to C++ and got stuck on some parts of assingment which i seek help :) say i have structure. The output is 0. Is there a way to change structure varia...
[2 replies] Last: OMG that worked. thanks for help didn know it was that simple. (by whoami32)
Array in C++
 
Hi to all I need your help in this question An integer array is defined to be sequentially-bounded if it is in ascending order and each value, n, in the arr...
[1 reply] : We can assist you in completing the assignment, but in general we are ... (by jsmith)
Anyone assist me with this...... please
 
Below was my try , doesnt seem so fine // program to calculate 1+1/2 + 1/3.......1/100 #include <iostream> using namespace std; int main ( ) { double n ...
[4 replies] Last: #include <iostream> using namespace std; int main ( ) { float sum ... (by Sergius)
Trouble with my bool
 
Alright, so I've tried a couple things to get my bool to return what I want it to return and I can't get it to do what I want. If I put what I put below (count...
[7 replies] Last: Thanks for your help. I don't know why I thought that needed to be in... (by Thecrow471)
by cmhATX
Array problem. Unknown errors
 
Just think of me as a total noob. I have some errors that i don't understand and could really use some help. #include <iostream> #include <iomanip> usi...
[1 reply] : What are the errors? (by firedraco)
by orbit
Program to determine palinedromes.
 
Edited:**** This program I'm trying to write is part of a homework assignment, but I'm having major trouble understanding the logic of what to do to determinin...
[13 replies] Last: This was my final answer btw. #include <iostream> using na... (by orbit)
by kcc15
unable to display a file
 
I have to do a program that counts different types of characters in an ordinary text file. We are supposed to have the text file display in the output and I can...
[6 replies] Last: I need to have it output how many characters are in the text, includin... (by kcc15)
by mulpro
Problem with chained overloaded operator
 
OS: Ubuntu Linux 9.4 GCC: v4.4.1 I'm writing a String class while learning about operator overloading. I'm having trouble with how to use overloaded binary...
[1 reply] : /facepalm I just realized I was thinking my conversion constructor ... (by mulpro)
by opsarc
Not declared (Even though I declared it)
 
#include <iostream> #include <fstream> using namespace std; ifstream::pos_type size; char * memblock; int main () { ofstream asmsource ("asmsou...
[2 replies] Last: Actually, putting the for statement in the if statement worked well. T... (by opsarc)
Histograms
 
I have a lab project due for my C++ class soon that I'm having a lot of trouble finishing. The project is that we have to create a program that makes at least ...
[no replies]
Undefined reference to '_WinMain@16'?
 
Here's my code: #include <iostream> using namespace std; struct intStruct{ int num; }; void change(intStruct* test, int input){ test->num ...
[4 replies] Last: you need a main() function where you use your functions.something like... (by Vidus)
initializing a variable inside a struct
 
struct birthday { int month, day, year; }; struct person { char last ; char first ; birthday date, *dob. // (*) } *per , per2 ; int main() {...
[1 reply] : You can't declare a variable's value in the definition of a class. It'... (by tummychow)
odd issue with increment operator in postfix
 
I was writing code like this: ifstream input("data.txt"); char ar1 , ar2 ; int n = 0; while ( !input.eof() ) input >> ar1 >> ar2[n++]; (Assume ...
[2 replies] Last: The thing is, the first time through the loop, n seems to be incremen... (by Disch)
by vlad61
"if" question
 
how can i make it so that when i use input strings to ask for a name can i make it so if the user does not put in a first and last name i can make some "if" err...
[5 replies] Last: The string contains's at least two words if there is one or more white... (by R0mai)
problem with pointer
 
Can anyone tell me what the difference between int* pt and int (*pt1) is? I've been playing around w/ that and only found out one difference. That...
[7 replies] Last: (this makes it an array of pointers?) Not quite.. it makes it a p... (by Disch)
how can we find two inputs x1, x2 such that ƒ(x1) = ƒ(x2)
 
Dear all, I am a newbie in c++ and am having some difficulty to find a pair of (x1,x2) such that f(x1) = f(x2) where x1, x2 are integers and f=(pow(x,3)+floo...
[2 replies] Last: I barley recognise this formula. Which is it? I remember something lik... (by Computergeek01)
Do-While Loop problem
 
For your birthday, you received $10 gift certificate for an online music store. You can buy songs until your money is gone. Write a C++ program that allows a us...
[2 replies] Last: Thank you! (by MicMagicFly)
March 2010 Pages: 1... 2425262728... 34
  Archived months: [feb2010] [apr2010]

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