Beginners - May 2013 (Page 4)

by r0ry
If else statement
 
Hello just started learning and I don't understand what I'm doing wrong here , so here is the problem, when I input the string and choose 1 it continues but the...
[5 replies] Last: Thanks for the quick answers , helped a lot :) (by r0ry)
C-String and String
 
Write your question here. Hey I know a lot of people talk about the difference between C-String and String. C-String is a sequence of chars stored in an ...
[10 replies] Last: A string literal is an array of char, but it's not necessary holding ... (by Cubbi)
fundmental data types
 
Hi i a little confuse about fundmental data types For example what is the diffrence between int and long int They both 4 bytes and with the same range of num...
[4 replies] Last: https://en.wikipedia.org/wiki/Integer_%28computer_science%29 https://e... (by MiiNiPaa)
by ishraq
[C PRGM] Get only words from string
 
Hello My assignment is to read input file containing a paragraph and store words only in array. I have to get rid of all non-alphabetic characters so that th...
[4 replies] Last: 2 words are separated by spaces. Oh, yes, you will need isspace() to... (by MiiNiPaa)
by ishraq
Counting number of elements for each row
 
Hello. I have the following text file: 54 164.3 201.6 226.7 63.4 71.2 210.2 94.8 147.7 47.9 155.5 212.5 184.9 182.4 187.8 60.3 59.1 64.7 141.7 21...
[6 replies] Last: Thanks guys (by ishraq)
READ,STORE, AND SORT IN ASCENDING ORDER
 
As you could understand from the title, I'm really a novice in this programming environment. I'd like to ask you for help: I need to read a file like: 11:02,...
[3 replies] Last: there are also lots of fast sorting algorithms, you just need to imple... (by Rechard3)
question interpreting ISO/IEC
 
I am trying to extract words from a text file and only want to get characters in the range between ! and ~. I know that the computer only understands numbers an...
[2 replies] Last: you do not have to do any type casting. simply use the following condi... (by dedlier)
How do I call functions?
 
I am a very beginner. I am self taught and learning as I go. My question is after I create the functions. How do I invoke them in main()? Below is my code, but ...
[4 replies] Last: i think you need some more tutorials on classes: http://www.cplusplu... (by Rechard3)
cin/cout Undeclared (1,2)
 
I'll admit I don't have TOO much experience with coding, but I've never seen this error before. It tells me that cin, cout, and endl are all undeclared and I ha...
[21 replies] Last: You are welcome, you will figure out what you did wrong much better if... (by letscode)
I need help in understanding a function in the code
 
I have this code that I need help in understanding how the function in the program knows the lowest value in an array. It’s basically a for loop in the functi...
[1 reply] : When posting code use code tags http://www.cplusplus.com/articles/jEyw... (by Lachlan Easton)
number guessing game help
 
when I run my code it wont show the higher or lower part after 2 guesses any help would be appreciated, if I can figure out the first loop I will be able to fin...
[4 replies] Last: this is using netbeans (by madmack76)
Redeclared class?
 
Hi, I have this code as shown: /* * The Amazing Journey * main.cpp */ #include <cstdlib> #include "Setup.h" #include "SETUPDEFINE.h"; using ...
[1 reply] : I think you need to take a look at how to properly prototype a class. ... (by Austin J)
Interesting issue with 2d array?
 
I was bored and made a tic-tac-toe game, and used a 2d char array to make the map. I originally had it char MapArray but after defining the elements to a bl...
[no replies]
by Daleth
What exactly happens with a lambda expression
 
Every tutorial I've read about lambda functions basically state the following from http://www.cplusplus.com/faq/intro/: A simple lambda is supposed to decompo...
[5 replies] Last: Ah, okay thanks, and I will definitely remember next time to enclose m... (by Daleth)
i want a really long decimal
 
Write your question here. hiiii everyone! so im making this program which calculates out the taylor series for e and i was able to do it however it went up to ...
[7 replies] Last: and what should i use intsead of conio.h? i use it cuz i saw it on the... (by lordoffelines)
Need Help With 2D Arrays
 
hey guys, I'm trying to solve the following problem set https://www.dropbox.com/s/uj2kd8a764v7txy/Problem%20Set.pdf I have the following code so far, I ne...
[no replies]
Sorting Numbers In Descending Order Gone Wrong
 
Hello everyone! My name is Emil, I'm a novice programmer, and I started watching educational YouTube-videos about C++-programming four weeks ago, alongside...
[6 replies] Last: Oh, now I understand. Thank you, I really appreciate your help! :) (by GoranGaming)
by yaraa
can you tell me whats the output here
 
int x=9; int *yptr; yptr=&x; yptr+=2; cout<<*yptr; system("pause"); }
[8 replies] Last: [quote=yaraa]Then it would be 11 is that right ?? No, it would be rand... (by LB)
Dynamic memory problem?
 
Hello, I'm starting to learn C++ and I decided to create a simple program using dynamic memory from the tutorial on this website just for practice. But I don'...
[8 replies] Last: Alright! Now I get it. Thanks! (by jesuscheng)
May 2013 Pages: 123456... 66
  Archived months: [apr2013] [jun2013]

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