Beginners - November 2010 (Page 32)

by avyrez
c++ vs c++
 
hello i have to diffrent book to start programming, one by dr.kris jamsa& lars klander and the other one by brain overland now i want whats the different ...
[4 replies] Last: what programming language is this? https://github.com/mrichardson23/A... (by avyrez)
string class to array
 
I am reading a single line of text from a file and want to read it as a string class then fill an array with the string. Is this possible. I want to use the c++...
[2 replies] Last: of course You can read. getline to use it. (by firix)
by alexbg
declare an angle
 
Hi, i have a trouble with a homework.The problem is that i dont know how to declare an angle in a triangle in cpp. Pls help me.Its very important for me
[4 replies] Last: excuse me, i am begginer, dont laugh at me, but where should i define ... (by alexbg)
assignment problem
 
Hi all, i have a class and i try to initialize the variable of a class through constructor in this way: class one { one(int k):*a(k){} int *a; };...
[7 replies] Last: ok, i got your point . (by kikirikou)
Using vectors
 
Can someone please explain me how I can use vectors to count how many times each word appears in an input? For example: Input: I write blah blah Output:...
[1 reply] : First, you'll want to find each word somehow. If you search for spaces... (by Albatross)
Multiple Classes
 
I have a difficulty I need help to overcome. I am developing a program that uses more than 1 class. Variables defined in one class are used in other classes. ...
[7 replies] Last: Yes, that organization makes much more sense. Initialize is a prob... (by Disch)
How to allow user specify file path for fstream?
 
Hi, I'm very new to c++ but I'm trying to write a program which displays data from a file. However, i don't know how to allow the user to specify the file pa...
[4 replies] Last: You're welcome. It will work with a string too if you call c_str() on ... (by closed account D80DSL3A)
I need to lern toC
 
i need to create a program with C++ i need to input number like 50 Program told me " Good" when i put 75 he told me v good and when i put 80 he told me v g...
[5 replies] Last: brad82 to agree. (by firix)
Very basic question
 
Hi, I'm brand new to programming. I'm learning from a book entitled Beginning C++ Through Game Programming . My first program is essentially a "Hello World" ...
[4 replies] Last: http://www.lazyfoo.net/SDL_tutorials/ you can browse the site to ... (by firix)
Function clarification
 
Can I get some help with my code? I am at a stand still because I can't think of how to get my carry function to work. The function I am having trouble with is ...
[2 replies] Last: In line 80 your variable(sum2) is not used. Thats all I could find wro... (by lare26)
by firix
Compile Error!!!
 
View ColorizedCopy to ClipboardPrint // regex_simple.cpp // compile with: /clr #using <System.dll> using namespace System; using namespace System::T...
[2 replies] Last: ok. but I'm going to make active. (by firix)
Pointers and two dimentional arrays
 
I am having difficulty with using pointers with two-dimensional arrays. Below is the beginnings of a wild guess. What am I missing? Any help would be appreciat...
[1 reply] : choose one: char** ptr = monthName; char* ptr = monthName ; char* ... (by hamsterman)
Load contents in subfolders
 
Time after time I have wanted to include or load files from within sub-folders ( \resources\sprites\sun.png for example), however I can not figure out how to...
[4 replies] Last: Your right it was "resources\\sprites\\sun.png" man that was obviou... (by CoderWalker)
by Xeleos
Linked list... output problems...
 
I am studying linked list... and my prog should display the first and last inputed data and the no. of times you inputed... the problem is... I can't seem to di...
[no replies]
How to fix this error?
 
1>sier.obj : error LNK2019: unresolved external symbol "void __cdecl printGen(int * *,class std::basic_ostream<char,struct std::char_traits<char> > &,int,int,in...
[1 reply] : That sounds like you forgot to link something. Could we please see the... (by Albatross)
read data from a .dat file instead of my array
 
I have wrote this code for my C++ class. now I have to move some of my data into a .dat file. I now how to ready and write but I having problem on how Im going ...
[no replies]
Sorting Question
 
Good day, Here's a question related to which container is better in a particular case: Why is it more expensive to use a vector than a list when I inten...
[3 replies] Last: Thank you, it helped me too. See you late (by haesungov)
some error in program
 
#include <iostream> using namespace std; void main() { float a; cout<<" enter your number"; cin>>a; if(a=(100 ^ 90)); cout<<"exlant"; if(a=(90 ^...
[6 replies] Last: thank you vrey much " kyon " you A Best Programer in C++ My program h... (by m3laa4u)
by Arik
not reading the contents of a file when reopening it
 
I am doing a program that opens a file and reads the grade. then when its finished it has an average and number of students. then i open the file again and comp...
[no replies]
by DJ TLG
How to check if string only contains only numbers
 
I have to write a method which asks a question to the user and gives couple options to choose from. User input must include numbers only. So if user enters 32a ...
[1 reply] : if you only care about integers, it's simple. bool is_number(const s... (by hamsterman)
November 2010 Pages: 1... 3031323334... 42
  Archived months: [oct2010] [dec2010]

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