Community Member
Member Avatar
Featured gerard4143 371 Replied To a Post in utf8 and Unicode
Topic by gerard4143 in Computer Science
@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 see how that function would work with utf8. Reply by gerard4143
Member Avatar
Featured gerard4143 371 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 in itself but I fail to see how it maps a utf8 encoding to an uppercase unicode value. What is … Topic by gerard4143 in Computer Science
Member Avatar
Topic by fahadmunir32 in Software Development
Or posting in the wrong section? Reply by gerard4143
Member Avatar
Topic by baid.arham619 in Software Development
c++
I think you are confused. First you write the program and then you post it with any problems you are having. Reply by gerard4143
Member Avatar
Topic by radu.nuconteaza in Software Development
c
Ok, which functions and line numbers are you talking about? Reply by gerard4143
Member Avatar
gerard4143 371 Replied To a Post in manipulating struct members
Topic by nhrnjic6 in Software Development
c++
The solution or hints of a solution depend on which data structures you plan to use. Could you post what you have so far? Reply by gerard4143
Member Avatar
gerard4143 371 Replied To a Post in Help on C program add new entry
Topic by Pia_1 in Software Development
c
Shouldn't this



scanf("%s", &employeeIDNew);


be



scanf("%s", employeeIDNew); Reply by gerard4143
Member Avatar
gerard4143 371 Replied To a Post in modulus operator
Topic by Ahtsham in Software Development
c++
Well 3 divided by 5 has 3 left over. The modulus operator computes the remainder of integer division. Reply by gerard4143
Member Avatar
Topic by Fedoros in Software Development
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 and indicate exactly where and what the problem is. Reply by gerard4143
Member Avatar
Featured gerard4143 371 Replied To a Post in Memorable Quotations
Topic by vegaseat in Community Center
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 voting.

Charles Bukowski Reply by gerard4143
Member Avatar
gerard4143 371 Replied To a Post in getline until char then print
Topic by CreatorZeus in Software Development
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/ Reply by gerard4143
Member Avatar
gerard4143 371 Replied To a Post in Pipe implementation in C/C++
Topic by hemanshurpatel in Software Development
c
Can you post your code? Reply by gerard4143
Member Avatar
gerard4143 371 Replied To a Post in copy string at specified location
Topic by inspire_all in Software Development
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',' ',' ', ' ', ' ', ' ', ' '};
char str2[] = "this is more text";

fprintf(stdout, "str1->%s\n", str1); … Reply by gerard4143
Member Avatar
gerard4143 371 Replied To a Post in copy string at specified location
Topic by inspire_all in Software Development
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.. Reply by gerard4143
Member Avatar
Topic by samer.aboufakher.3 in Software Development
c++
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)
{
...
} Reply by gerard4143
Member Avatar
Topic by samer.aboufakher.3 in Software Development
c++
You seem to be missing the opening brace here



void toss(int & x)//missing brace here
//0=heads 1=tails
x=rand()%2; Reply by gerard4143
Member Avatar
gerard4143 371 Replied To a Post in Question about how ifstream reads
Topic by mixelplik in Software Development
c++
Are you sure the datafile is in the same folder as the executable. Reply by gerard4143
Member Avatar
gerard4143 371 Replied To a Post in Question about how ifstream reads
Topic by mixelplik in Software Development
c++
Did you pass std::endl or "\n" to std::cout? Reply by gerard4143
Member Avatar
gerard4143 371 Replied To a Post in Question about how ifstream reads
Topic by mixelplik in Software Development
c++
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 << "You read->" << data << "<-into data!" << std::endl;
}

names.close();

return 0;
} Reply by gerard4143
Member Avatar
Topic by roshan.parate.73 in Software Development
c
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 condition*/)
{

}
}
return 0;
}


Now lets see you write the condition part and populate the array. Reply by gerard4143
Member Avatar
gerard4143 371 Replied To a Post in c++
Topic by girmanigatu in Software Development
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 Reply by gerard4143
Member Avatar
gerard4143 371 Replied To a Post in Creating bare metal utilities and OS
Topic by ArnoldRich in Software Development
c
Here's some links you might want to read...

http://linuxgazette.net/issue77/krishnakumar.html
http://www.acm.uiuc.edu/sigops/roll_your_own/ Reply by gerard4143
Member Avatar
Topic by roshan.parate.73 in Software Development
c
OK. What have you tried so far? Reply by gerard4143
Member Avatar
gerard4143 371 Replied To a Post in Just for the sake of learning...
Topic by centenond in Software Development
c
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 each id.



size_t i = 0;

for (; i < 100; ++i)
{
if (std[i].id == some_int)
{
//do something … Reply by gerard4143
Member Avatar
gerard4143 371 Replied To a Post in Creating bare metal utilities and OS
Topic by ArnoldRich in Software Development
c
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. Reply by gerard4143
Member Avatar
gerard4143 371 Replied To a Post in counter modified without being touched
Topic by MacErich in Software Development
Could you please give more details? Reply by gerard4143
Member Avatar
gerard4143 371 Replied To a Post in Creating bare metal utilities and OS
Topic by ArnoldRich in Software Development
c
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. Reply by gerard4143
Member Avatar
gerard4143 371 Replied To a Post in Just for the sake of learning...
Topic by centenond in Software Development
c
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 Reply by gerard4143
Member Avatar
gerard4143 371 Replied To a Post in Cipher code doesn't outputs content
Topic by sixtorodriguez in Software Development
Try reopening the input file or setting the file position back to the beginning with fseek() on line 22. Reply by gerard4143
Member Avatar
Featured gerard4143 371 Marked Solved Status for Ocaml Questions
I'm curious as to where a member would post a question on ML(Ocaml) type language? Topic by gerard4143 in DaniWeb Community Feedback