Beginners - November 2012 (Page 34)

Function variables not being initialized
 
Hi. I am trying to create a program that opens a pre-written text file and reads the numbers from the list which is then computed in order to obtain the min, ma...
[5 replies] Last: Set min to equal the very first number in the set to compare, or you c... (by Raezzor)
Stupid mistake cant find!
 
My program keeps telling me on line 33 that it expects a (;) not a ({). i have tried countless times to get this to change since i assume that it is wrong and i...
[5 replies] Last: Thanks cire and vlad. My code is fully operational now. (by arodriguez0816)
Linked list sort by number
 
The function I created to sort the list by an ID number is only returning the first line from the text file and then goes into an unexpected error. What am i m...
[2 replies] Last: Thanks for some insight, I haven't really tried to go back and step th... (by mcdougalrl05)
Problem about converting char arrays to int and then store into list<int>
 
Hello everybody! I have a major problem about some lists. That's my code: #include<iostream> #include<list> #include<cstring> #include<cstdlib> usin...
[7 replies] Last: C++11 lambda functions + algorithms! Tnx CatFish2 ! (by Incis B)
read multiple integers from string each in integer form
 
hi i am trying to read numbers from a string. whatever i read i want it in the form of integers. i tried using getline function to take it as an integer. A...
[3 replies] Last: content removed due to reply timeout. (by closed account D80DSL3A)
by Kart
How to use Code Tags
 
Click the Less than and Greater than sign when you log on to submit a problem. Format: <> and paste your code between these [.code] .... [./code] It d...
[2 replies] Last: I nominate this for sticky. :) And thanks Andy, that was good reading! (by Raezzor)
Honest HW attempt Failed. Please help!!
 
so i am learning files in class. i was to open a file manipulate the content and create a new file with the manipulate content. spent days on this program and w...
[9 replies] Last: My apologies. I am new to this website and I did not want to come off ... (by arodriguez0816)
by khal
traversal vector
 
Hi, I am unclear of how to access the data in a vector that stores a pointer to a struct. This is what I have. struct Node { int data; ...
[1 reply] : The problem is that you selected incorrect approach. You should store ... (by vlad from moscow)
Who can creat a simple button event by VC++2012
 
I want creat a button When I Click Button Then EXIT Program How I can do that?
[2 replies] Last: But I got so many dufault code :< (by Ruri Gokou)
by pl00xi
how to check if a string starts with a certain string?
 
if i want to see if string question; cin >> question; question starts with something like "why are you" How do i do? Also i'm not ...
[5 replies] Last: Cool! And it's not a bad way. But you are doing the test kind of both... (by andywestken)
Runtime error (attempting simple caeser cipher)
 
Hi I am in the process of coding a caeser cipher and when am currently getting a runtime error that I cannot find the cause of, and can't really continue the co...
[2 replies] Last: When you do this: for(int i=0;i<100;i++) you need to keep within the... (by Chervil)
Help sorting array
 
I tried to make a code to sort an array in which the user specify the dimension of the array and then the program check whether it's sorted from the smallest nu...
[2 replies] Last: The program doesn't crash. After I enter the dimension of the array th... (by Eliijahh)
A logic problem, or a loop problem?
 
The exercise is: #include <iostream> #include <cmath> using namespace std; /* Create a table of simple multiplication which populates a 2 dimensional ...
[6 replies] Last: Works fine this way every time I do it. Some compilers will let you... (by firedraco)
Need Help With this pointer problem.
 
List* List:: rev(List* c) { List l1; cout<<c; node* temp = c->head; node* ptemp = c->head; while(temp!=NULL) { int d = c->count()...
[2 replies] Last: thank you so much, sometimes workload makes me forget looking for triv... (by Waqar Ahmed)
by tony12
Using pointers in place of arrays with counters as indices
 
I have an assignment in which my professor gave us a program and wants us to change all the arrays with counters as indices to pointers. The purpose of the prog...
[no replies]
Information on a programmer work experience?
 
I would like some information on a programmers life in the workfield. I would like to know what exactly does a programmer have to engage on. Even though I want ...
[3 replies] Last: Wow, this is really interesting hearing these experiences. I have been... (by sin0xFF)
Vector and algorithm question
 
I'm working on an assignment, writing a simple RPG program using a vector and an algorithm. I am having an issue getting my program to function properly and I ...
[1 reply] : Your program is a bit weird. You never use choice1 . You never use m... (by Catfish2)
Header file out of scope problem
 
Ok so my sources are like this: main.cpp int main() { widget w; } widget.h #include <"custom header file") void customfunction (int); ...
[2 replies] Last: Even though custom header file just contains my own custom functions (... (by rozick1)
error
 
strcpy(sendbuffer,(char*)&this); I wrote the above statement in a member function of a class but it shows an error "lvalue required as unary '&' operand".sen...
[no replies]
Undefined reference to cpp
 
I'm having some trouble with my makefile (I do believe). When I define a constructor in my header file I can link to it just fine. When the constructor is in ...
[no replies]
November 2012 Pages: 1... 3233343536... 75
  Archived months: [oct2012] [dec2012]

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