Beginners - June 2011 (Page 6)

Problem with class
 
Hello , I can't understand "char *str "!!! plz help me! class samp{ char s ; public: void set (char *str){strcpy(s,str)} };
[2 replies] Last: tanx alot!!! (by shahin007)
Question about bluetooth programing
 
First of all, I have almost no experience with this kind of stuff. Im looking to see if I can either program a bluetooth headset to beep when it loses conn...
[4 replies] Last: I have the samsung facinate. I would go the easier route. I thougt I ... (by Paramount)
Array problem
 
I was trying to make the Dungeon Crawl program given in the article Beginner Exercises. Now I thought of using a bi-dimensional array, but was told to use si...
[8 replies] Last: I will do that! it is a good idea. As for making the class, the examp... (by Nisheeth)
file i/o, struct, linked list and segmentation fault
 
Hi folks, Sorry this is long. I didn't want to be a "HAI GUYS, HERES MY CODE PLZ HLP" poster. I've been up all night with my C++ Lab and I'm looking for some...
[no replies]
c++ switch case
 
can somebody help me create a program that uses switch case.. im new in c++..
[1 reply] : http://cplusplus.com/doc/tutorial/control/ (by closed account S6k9GNh0)
by tonnot
How to get the values of the actual iterator of a vector of structure
 
Ok, I have a iterator vector<mystructure> my_vector; iterator vector<mystructure>::iterator it; Ok , I can use the iterator so: for (it=my_vector.begin...
[no replies]
What means ^ symblos in Visual C++?
 
That's it the question. I've never seen this symbol and I haven't been able to find this symbol. array<String^>^ dir = Directory::GetDirectories( folder )...
[2 replies] Last: It's a 'managed' pointer (ie garbage collections) in CLI/.NET (by coder777)
help
 
help. im getting non-lvalue in assignement error. while (true) { for (i=1; i<= g && ! file_in.eof(); i++) { file_in.getline(input_line, COL_WIDTH); cout...
[1 reply] : g = atoi(input_line); (by coder777)
how do I define system settings that affect structure definitions from a file?
 
suppose I have a structure and a bunch of functions that use some global MYGLOBAL in their calculations. Now I have some function that I will make that will rea...
[2 replies] Last: What are these 'system settings' are supposed to be? I can't define/... (by coder777)
how to forward declare and then define a template function?
 
Hello, I'm trying to forward-declare a template function outside of main() like this: template <class typ> void memshift(typ arr , int src, int dest, typ & c...
[4 replies] Last: So how would I create this function: void myfun(int input) { retu... (by kev82)
by opie
reformat a while or if/else condition for a range
 
the user is supposed to enter a bottom number within range and a top number within range. The program works great if entering within range or outside of range....
[1 reply] : You could wrap your input loops with a do{ ... }while( top >= bot... (by hamsterman)
Symbol Iterations
 
Hello, all! I just submitted an assignment for school, and I have a feeling that I took a rather bush-league approach to coding it. After messing with <ioma...
[4 replies] Last: Ok, I've figured out how to make this pattern with a nested for-loop, ... (by plaid311)
what am i doing wrong
 
useing bloodshed dev c++ i enter in the code verbatum from my instructor but i keep getting errors 5 C:\Dev-Cpp\1.cpp expected constructor, destructor, or ty...
[2 replies] Last: i enter in the code verbatum from my instructor Haha, no, you're not... (by Athar)
by Raxis
C++ Ranges
 
Hello, Recently I have been writing a basic grade tracking program. Basically it read the grades and computes a sum. Then it saves the grades that way you can ...
[2 replies] Last: Thank you LB, Actually my problem was: else{ cout << "Search r... (by Raxis)
need help for easy lotto tool
 
Hi, i'm not familiar with c++ but would like to have a little command line tool to check my lotto numbers. i wrote a pseudo pseudo code and it would be nice if ...
[no replies]
Sentinel value in while loop not working.
 
Let me start off by saying that this is my first time posting on here and any and all help will be greatly appreciated!! I have a while loop that is reading ...
[2 replies] Last: worked perfect! thank you so much! (by Enordquist)
SFML -- Why won't this code work?
 
I feel like shit having to pose for help on this code but oh well. Also, does forward declarations of classes include its members too, or just the class Class...
[10 replies] Last: Yeah I will definitely start doing that. thanks (by brokenbot)
Problem with Vectors Revisited
 
I know most of you are probably getting annoyed with me but this is the last thread ill make for a while i promise and I've finished my project and there are on...
[7 replies] Last: I probably should have planned more, i diddnt expect the project to be... (by nano511)
LNK2001 Error
 
Here is the error: 1>------ Build started: Project: Employee Database, Configuration: Debug Win32 ------ 1> Main.cpp 1>c:\users\david\documents\visual st...
[6 replies] Last: Thanks L B! (by nano511)
by hny24
what is the randomize function ???
 
plz give me it's explination ???? give me it's output also ???? main() { randomize(); char city ={"del","chn","kol","bom","bng"}; int fly; for(int i=0;i<3;i++...
[1 reply] : randomize() seeds the random number generator used by the random() fun... (by jsmith)
June 2011 Pages: 1... 45678... 41
  Archived months: [may2011] [jul2011]

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