Beginners - September 2011 (Page 13)

Sorting
 
I apologize if this is answered elsewhere, i was unable to answer my questions after searching. I have 3 distances in my final output that i need to be printed ...
[1 reply] : I would set up an array or some other container (like a vector) and us... (by Zhuge)
Sorting User Input
 
Hey, I'd like to take input from the user and sort that input to determine which function to all next. I am having trouble finding a clear description of how...
[2 replies] Last: AFAIK there is no case insensitive comparison for std::strings. You'd ... (by Zhuge)
classes error expression must have a class type
 
I have attached my header and cpp files. I have the problem as listed in the subject line and would very much appreciate some guidance. I have enclosed the pr...
[5 replies] Last: Thank you so so much. (by rheeler)
!= operator with ASCII
 
I'm in an entry level C++ class at school and I was given the task to write a program that involved arrays and such(the finished working code). #include<iostr...
[3 replies] Last: Exactly. What you wanted was logical AND ( && ) rather than logical O... (by moorecm)
Function To Convert string To double
 
Hi, I am writing a form application in VC++. At one place I have to convert string into double.I tried strtod() function by including stdlib.h in .cpp file....
[2 replies] Last: You could use a stringstream (#include <sstream>). double StrToD... (by Cuddlebuddie928)
help me please!!!!! :(
 
Hi everyone, i've been trying to get this program to work for about 15 hours now and I dont understand why it won't work. I have tried trouble shooting and debu...
[8 replies] Last: No problem. (by ddwinters45)
Getline help
 
Hi guys, I have several function which is not in the int main(). it is however linked by myfile and line. What i am trying to do is retrieve each line from the...
[2 replies] Last: thanks for the suggestion, '\n' in the buffer solved everything. (by yoitsmejy)
segmentation error
 
why am i getting an segmentation error here void Tree::printTreeList() { unsigned int i; cout << treeVector.back()->getName(); cout << "\n\n\n LISTING \n";...
[1 reply] : Notice that you added 7 TreeElements all with unique addresses but you... (by histrungalot)
by bayou
fatal error LNK1120 in VC++
 
The following code does not compile in VS 2010 Visual C++. I get the error: error LNK2019: unresolved external symbol "public: __thiscall testTemplate<double>...
[no replies]
Cannot Loop Properly
 
#include <iostream> #include <string> #include <cctype> #include <vector> using namespace std; int main() { char ans = 'y'; string aString,fStr...
[no replies]
by Chathu
Files C++
 
I Want To Keep A Separate File For Each And Every Employee In My Program. In My Program I Will Store Details About Employees. I'm Creating A Random Number As Em...
[6 replies] Last: :) (by Chathu)
weird cout output
 
hi, i get this really weird output when running this program, does anyone know why??? this is the code void Tree::printTreeList() { unsigned int i; c...
[1 reply] : Think you have to dereference the treeElement before you can call its ... (by Gaminic)
Memory Leaks
 
Hi guys! Take this function for example: int random(int n) { int* a = new int ; return 0; } Obviously, this is a memory leak. But what about static a...
[1 reply] : Yes, they are on the stack. (by shacktar)
by buggys
True and False problem
 
Hi there, I'm new to the programming area so I've just been testing a few things out with a 'how old are you' script, and I'm struggleing on true and false stat...
[3 replies] Last: ok yup <_< should of looked around harder. Thnx for that. (by buggys)
Opening files
 
So I' am trying to read from a file and the end of this code, but nothing is really coming up. I have pretty muh stumped myself and im pretty much second guesso...
[8 replies] Last: Also, you are writing to a file named "output.txt" but reading a file ... (by JMJAtlanta)
How to start
 
Hello everybody, I'm sorry if this is a silly question but.. what program do I download to actually start coding a link would be appreciated, Thank you!
[5 replies] Last: Devcpp is really old, don't get it. If you like the interface, try wxD... (by firedraco)
by tonnot
How to get right arrays when I call the array function two times at the same line?
 
I have this function at class A: void my_function(char array1 ,char array2 ); I call it so: my_function(classb->give_me_array(22), classb->give_me_array...
[6 replies] Last: Thanks for the ideas (by tonnot)
Reading in a string ignoring all spaces?
 
string infix; cout << "Enter infix expression : "; cin >> infix; This is what I have. However, I want it to omit all spaces. If I were to typ...
[2 replies] Last: figured it out... #include<ctype.h> #include<algorithm> string infi... (by ande6870)
need help with while loop!
 
#include <iostream> using namespace std; int main() { int n1, n2; int i=n1; cout << "Enter 2 numbers "<< endl; cin >> n1, n2; while (i<=n2){ cout << i << ...
[1 reply] : n2 is never entered try cin>> n1 >> n2; (by dznguy)
by Ragine
Help with code..
 
int o = 45341; int x = 600; int b = 802; int d = 230; int t = 1000; int y = 424; int z = 432; void Form1::Form1_Load(System::Object^ sender, System::...
[5 replies] Last: Hey, it's your algorithm, not mine. Debug it to determine where it go... (by webJose)
September 2011 Pages: 1... 1112131415... 48
  Archived months: [aug2011] [oct2011]

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