-
Replied To a Post in utf8 and Unicode
@deceptikon That's the point. How does an uppercase function work when its used with utf8? A uppercase function would be pretty simple arithmetic with ASCII values but I fail to … -
Created utf8 and Unicode
I have a simple question about unicode and utf8. How does a utf8 encoding know what its uppercase encoding is? I understand how utf8 encoding carries its unicode value embedded … -
Replied To a Post in what difficulties most of the beginners in c++ programming student face i g
Or posting in the wrong section? -
Replied To a Post in write a program to enter ten numbers and display the highest using array.
I think you are confused. First you write the program and then you post it with any problems you are having. -
Replied To a Post in Multiple definition of functions help pls
Ok, which functions and line numbers are you talking about? -
Replied To a Post in manipulating struct members
The solution or hints of a solution depend on which data structures you plan to use. Could you post what you have so far? -
Replied To a Post in Help on C program add new entry
Shouldn't this scanf("%s", &employeeIDNew); be scanf("%s", employeeIDNew); -
Replied To a Post in modulus operator
Well 3 divided by 5 has 3 left over. The modulus operator computes the remainder of integer division. -
Replied To a Post in C Program to 3 child Process and write to files
I guess you are not aware of our homework policy. We don't do homework problems. If you want help with a specific problem then you'll have to post the code … -
Replied To a Post in Memorable Quotations
The difference between a democracy and a dictatorship is that in a democracy you vote first and take orders later; in a dictatorship you don't have to waste your time … -
Replied To a Post in getline until char then print
You can set the delimiter for getline(). istream& getline (istream& is, string& str, char delim); Please check out this link http://www.cplusplus.com/reference/string/string/getline/ -
Replied To a Post in Pipe implementation in C/C++
Can you post your code? -
Replied To a Post in copy string at specified location
Do you mean something like this? #include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc, char**argv) { /*make sure str1 is padded with enough room*/ char str1[] = {'H','e','l','l','o',',',' ','W','o','r','l','d','\0',' … -
Replied To a Post in copy string at specified location
How can i do it? Depends. Do you want to overwrite the characters or do you want to insert the characters and shift everything down.. -
Replied To a Post in need some help cant find the error !!!!
Actually, what is going on here? void toss(int & x) //0=heads 1=tails x=rand()%2; int result(int a, int b, int c) { ... } -
Replied To a Post in need some help cant find the error !!!!
You seem to be missing the opening brace here void toss(int & x)//missing brace here //0=heads 1=tails x=rand()%2; -
Replied To a Post in Question about how ifstream reads
Are you sure the datafile is in the same folder as the executable. -
Replied To a Post in Question about how ifstream reads
Did you pass std::endl or "\n" to std::cout? -
Replied To a Post in Question about how ifstream reads
Try running this program with your data. #include <iostream> #include <fstream> using namespace std; int main(int argc, char** argv) { ifstream names; names.open("P25.txt"); string data; while(names >> data) { cout … -
Replied To a Post in Given an array of random characters, integers and symbols, WAP to print the
Here you go.... #include <stdio.h> #define ARR_SIZE 10 int main() { size_t i = 0; char chr_arr[ARR_SIZE]; /*populate int_arr*/ for (; i < ARR_SIZE; ++i) { if (chr_arr[i] /*meets some … -
Replied To a Post in c++
C++ is a play on the C programming language increment operator. C++ literally means C language incremented. What's the purpose of it? Here check the wiki http://en.wikipedia.org/?title=C%2B%2B -
Replied To a Post in Creating bare metal utilities and OS
Here's some links you might want to read... http://linuxgazette.net/issue77/krishnakumar.html http://www.acm.uiuc.edu/sigops/roll_your_own/ -
Replied To a Post in Given an array of random characters, integers and symbols, WAP to print the
OK. What have you tried so far? -
Replied To a Post in Just for the sake of learning...
Yes, you will searching for the element contained in the array std. If you need to search id in the array std then you could loop through std and check … -
Replied To a Post in Creating bare metal utilities and OS
Well first you have to identify which platform this OS will run on and then you have to brush up on that platform's assembler code. -
Replied To a Post in counter modified without being touched
Could you please give more details? -
Replied To a Post in Creating bare metal utilities and OS
I think you can use any compiler which has the ability modify the linker, GNU's compiler has linker scripts which controls this important aspect. -
Replied To a Post in Just for the sake of learning...
Well this is how you access an element of std[100] and get its elements. std[searchid].id std[searchid].name std[searchid].fatherName std[searchid].motherName -
Replied To a Post in Cipher code doesn't outputs content
Try reopening the input file or setting the file position back to the beginning with fseek() on line 22. -
Marked Solved Status for Ocaml Questions
I'm curious as to where a member would post a question on ML(Ocaml) type language? -
Replied To a Post in Ocaml Questions
Thanks. I didn't realize the software section had a generic top-level which caught everything in the software section. -
Created Ocaml Questions
I'm curious as to where a member would post a question on ML(Ocaml) type language? -
Replied To a Post in Noob: while loop keeps executing even when sentinal value entered
If you insists on breaking out of the loop immediately then you should use break. Something like this... #include <iostream> #include <iomanip> using namespace std; int main() { int employeeNumber … -
Replied To a Post in A stack of Struct problem
Shouldn't this have a semi-colon after it? struct item { int* num ; int* q; };//semi-colon Why are the structure elements pointers? If you insist on pointers then you'll have … -
Replied To a Post in Bank account system
If you want to save yourself some frustration then don't include this in your header file using namespace std; Header files shouldn't expose anything in a namespace. -
Replied To a Post in for_each output through global function access
I'm pretty sure the standard says something about modifying the value past to the function in for_each(). If you want to change a value past to a function then I … -
Replied To a Post in Stopping the loop to wait for input
This forums provides help to users who have specific questions. It isn't a free programming advice column. -
Replied To a Post in for_each output through global function access
Could you elaborate on your question? -
Replied To a Post in I need C Programming help, Asap! please!)?
I have a question about this line scanf("%d", &val); Why are you reading a integer into a character? Won't it make more sense to read the characters directly into the … -
Replied To a Post in What's wrong with my Vigenere cipher code?
Did you try the function tolower()? You could apply this to each character and perform any calculations to the result. -
Replied To a Post in need help ASAP
Well what do you need help with? Please post the code you attempted and highlight any sections and explain the problems. -
Replied To a Post in Why this array does not work
I'm at a complete lose as to what you are trying to accomplish here... -
Replied To a Post in Why this array does not work
Try looking at the function here: #include <iostream> using namespace std; int ture ( int a[], int b[], int d); int main () { int b [5]={1,2,3,4,5}; int a [5] … -
Replied To a Post in Why this array does not work
The arrays are fine! Do you have another problem with the code? Doesn't this for loop run past your arrays? for (int d = 0; d < 10; d++)//arrays have … -
Replied To a Post in Count number of occurrences of a digit within a string
I would have to say that you need a flagging system which marks a integer element when its been counted. Are you sure this is C? for(int i = 0; … -
Replied To a Post in c++ beginner:help with simple problem
Number one. Why all the semi-colons? Here. Can you spot the error now? class Timerange { public: Timerange(string initstring) { string current = ""; unsigned short mode = 0; string … -
Replied To a Post in Student Records (Average is 0)
Looking at your code I find that you have to make a decision. Do you want to calculate the average once and store the value in the structure Student or … -
Replied To a Post in Simple C++ error
OK. What compiler and IDE are you using? -
Replied To a Post in Simple C++ error
Did you check that the compiler was C++? It may be defaulting to C. I know NetBeans - C\C++ plugin will do this sometines. -
Replied To a Post in Simple C++ error
Are you sure your compiling this with a C++ compiler? Could you be using a C compiler?
The End.