• Member Avatar for gerard4143
    gerard4143

    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 …
  • Member Avatar for gerard4143
    gerard4143

    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 …
  • Member Avatar for gerard4143
    gerard4143

    Replied To a Post in what difficulties most of the beginners in c++ programming student face i g

    Or posting in the wrong section?
  • Member Avatar for gerard4143
    gerard4143

    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.
  • Member Avatar for gerard4143
    gerard4143

    Replied To a Post in Multiple definition of functions help pls

    Ok, which functions and line numbers are you talking about?
  • Member Avatar for gerard4143
    gerard4143

    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?
  • Member Avatar for gerard4143
    gerard4143

    Replied To a Post in Help on C program add new entry

    Shouldn't this scanf("%s", &employeeIDNew); be scanf("%s", employeeIDNew);
  • Member Avatar for gerard4143
    gerard4143

    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.
  • Member Avatar for gerard4143
    gerard4143

    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 …
  • Member Avatar for gerard4143
    gerard4143

    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 …
  • Member Avatar for gerard4143
    gerard4143

    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/
  • Member Avatar for gerard4143
    gerard4143

    Replied To a Post in Pipe implementation in C/C++

    Can you post your code?
  • Member Avatar for gerard4143
    gerard4143

    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',' …
  • Member Avatar for gerard4143
    gerard4143

    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..
  • Member Avatar for gerard4143
    gerard4143

    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) { ... }
  • Member Avatar for gerard4143
    gerard4143

    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;
  • Member Avatar for gerard4143
    gerard4143

    Replied To a Post in Question about how ifstream reads

    Are you sure the datafile is in the same folder as the executable.
  • Member Avatar for gerard4143
    gerard4143

    Replied To a Post in Question about how ifstream reads

    Did you pass std::endl or "\n" to std::cout?
  • Member Avatar for gerard4143
    gerard4143

    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 …
  • Member Avatar for gerard4143
    gerard4143

    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 …
  • Member Avatar for gerard4143
    gerard4143

    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
  • Member Avatar for gerard4143
    gerard4143

    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/
  • Member Avatar for gerard4143
    gerard4143

    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?
  • Member Avatar for gerard4143
    gerard4143

    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 …
  • Member Avatar for gerard4143
    gerard4143

    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.
  • Member Avatar for gerard4143
    gerard4143

    Replied To a Post in counter modified without being touched

    Could you please give more details?
  • Member Avatar for gerard4143
    gerard4143

    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.
  • Member Avatar for gerard4143
    gerard4143

    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
  • Member Avatar for gerard4143
    gerard4143

    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.
  • Member Avatar for gerard4143
    gerard4143

    Marked Solved Status for Ocaml Questions

    I'm curious as to where a member would post a question on ML(Ocaml) type language?
  • Member Avatar for gerard4143
    gerard4143

    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.
  • Member Avatar for gerard4143
    gerard4143

    Created Ocaml Questions

    I'm curious as to where a member would post a question on ML(Ocaml) type language?
  • Member Avatar for gerard4143
    gerard4143

    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 …
  • Member Avatar for gerard4143
    gerard4143

    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 …
  • Member Avatar for gerard4143
    gerard4143

    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.
  • Member Avatar for gerard4143
    gerard4143

    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 …
  • Member Avatar for gerard4143
    gerard4143

    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.
  • Member Avatar for gerard4143
    gerard4143

    Replied To a Post in for_each output through global function access

    Could you elaborate on your question?
  • Member Avatar for gerard4143
    gerard4143

    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 …
  • Member Avatar for gerard4143
    gerard4143

    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.
  • Member Avatar for gerard4143
    gerard4143

    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.
  • Member Avatar for gerard4143
    gerard4143

    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...
  • Member Avatar for gerard4143
    gerard4143

    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] …
  • Member Avatar for gerard4143
    gerard4143

    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 …
  • Member Avatar for gerard4143
    gerard4143

    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; …
  • Member Avatar for gerard4143
    gerard4143

    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 …
  • Member Avatar for gerard4143
    gerard4143

    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 …
  • Member Avatar for gerard4143
    gerard4143

    Replied To a Post in Simple C++ error

    OK. What compiler and IDE are you using?
  • Member Avatar for gerard4143
    gerard4143

    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.
  • Member Avatar for gerard4143
    gerard4143

    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.