Beginners - November 2009 (Page 13)

undefined error
 
Hi All, I am very new to c++ and my tutor has given me a file to use and I cannot get it to compile. I get undefined error and I haven't got a clue how to fi...
[4 replies] Last: Thank you so much for your help. I recieved the program as three seper... (by davefulton)
can anybody tell me what is wrong is my code
 
i am trying to get all the array arrange in 1 2 3 and - with 128 4 5 6 ...
[5 replies] Last: thx man it works (by bestnone)
Can't figure out where I'm off
 
First... My code #include <iostream> #include <fstream> #include <string> #include <cstdlib> #include <ctime> #include <vector> using namespace st...
[6 replies] Last: I apologize for not seeing it correctly. I thought you are trying to i... (by writetonsharma)
by hubbu
Making Adjacency List with Vectors?
 
I'm trying to make an adjacency list with a class "Graph" containing a vector with type "Node." The Node class has integer members for storage. The Node class a...
[2 replies] Last: Solved thanks to you Disch! Now I can get some shut eye. (by hubbu)
by Maggi
C program
 
How to write a c program to print 1,21,321,4321,54321 order
[4 replies] Last: ha ha: #include <stdio.h> int main() { print("1,21,321,4321,543... (by herbert1910)
questions on STL containers
 
if I declare something like set<int> s; set<int>::iterator i; s.insert( 4 ); i = s.begin(); s.insert( 1 ); 1) when I cout << *i << endl;, I...
[4 replies] Last: 1) where can I find the info as to whether the STL set or any other co... (by unregistered)
Unitialized Local Variables
 
I am working on a code that draws 4 triangles and keep getting the following warnings: Warning 2 warning C4700: uninitialized local variable 'column' used c:...
[1 reply] : I didn't look over this fully, but you need to take a close look at yo... (by Disch)
by destro
Generating 2 different random numbers
 
I'm back with more problems. this time around I need some help with get this program to generate to diffrent random numbers from 1-14. I have tries a few diffre...
[3 replies] Last: A pseudo random number generator is just a math equation. Basically... (by Disch)
pointer question
 
Consider the following code: char s = "Hello"; const char* pc = s; // pointer to constant pc = 'g'; // error My C++ book I'm reading says this is an e...
[8 replies] Last: Agreed (by dunsondog109)
frequencies
 
Hello! i'm new at programming, and I wanted to write a program that reads a text from standard input and outputs the frequency of each letter in the text, imp...
[6 replies] Last: I'm sorry! There's nothing wrong with it! I just asked because in cl... (by mercedes)
Beginner Requesting Advice
 
Hello everyone! My name is Jack, and I've come to you in seek of help. I have a fairly basic understanding of computers, though I do learn quickly. I've recentl...
[11 replies] Last: Thank you all so much! I've decided simply to try Microsoft's compiler... (by JackUpNorth)
by GameOn
its not talkin long long a=111111111111(12 1's)
 
well in one code if i assign a=12 1's its showing tht "integer constant is too large for ‘long’ type" but if i go through loop for(;a<x;a=a*10+1); where ...
[9 replies] Last: set your number as a float and divide it by 1000 to make it 11111111.... (by helios)
by Claymz
reading from several lines (1,2)
 
hi, i was wondering how to make a program, that would read numbers(which user would input) and for example output how many of them user inputed - but the poi...
[25 replies] Last: To discard input like " 577sad " you can use this condition in the if... (by Bazzy)
by Khaizz
hope someone give me some example ....teach me how to do ...
 
You are asked to create two classes: a)Class Course with attributes course code and faculty code b)Class student with attributes studentID, name and an object...
[9 replies] Last: You are missing a brace on line 10, You still have the course: thin... (by Bazzy)
can i do a multi-dimensional arrays like this?
 
i am totally lousy in programming i was trying to do a multidimensional arrays with 8X8 like this and - the value of 128. #include <iostream> using namespac...
[4 replies] Last: *(*(a+0) + 0) - first *(*(a+0) + 1) - second ... *(*(a+1) + 0) - n... (by writetonsharma)
by gedas
sorting
 
hi guys im creating a dictionary which would show the word and the meaning of the word this is what i have done so far, i created a class called meaning which...
[2 replies] Last: thanks for your reply, at this point am not very sure i understood wh... (by gedas)
C programming.. basic - program runs through without input
 
I know mostly C++. I haven't had any experience using C programming. If anyone knows a bit can they please help me? It's pretty basic what I'm attemping. Is the...
[3 replies] Last: Also your last two scanf should be scanf( "%f", &x ); instead of ... (by kenshee)
Creating a file using fstream in a function
 
Hi, I seem to be running into far heavier resistance with an assignment than I initially intended, and I'm at my wits end, I have a basic start, but I can't ...
[4 replies] Last: thanks, that helped (by nickg140143)
Define custom comparison
 
Hello fellow programmers. This question should be easy, but already wasted hours of googling and testing I now turn to you. As a part of a project I am usin...
[1 reply] : You have an extra < before 'vector' on line 7 (by Bazzy)
Unhandled exception in function
 
I have this structure; typedef struct { valueType value; struct node*pries; struct node *po; } node; and if I use it in a function lik...
[5 replies] Last: no way! thanks! (by sigutis)
November 2009 Pages: 1... 1112131415... 25
  Archived months: [oct2009] [dec2009]

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