Search Result

Collapse
248 results in 0.0029 seconds.
Keywords
Members
Tags
  •  

  • rangerSkip
    started a topic add subtract large numbers C++
    in C

    add subtract large numbers C++

    I'm looking to find the sums and differences of large numbers inputed by the user. all numbers must by positive and whole and the first number must be larger than the second. I'm having a couple problems:

    1) I'm currently using arrays and saving the input into a string. I think that, when copying the data from the string to the array, I need to have the numbers at the very end of the array. I think I found a good way but its not working...
    See more | Go to post
    Last edited by rangerSkip; Dec 17 '11, 01:11 AM. Reason: made some "progress"

  • how to write a direct3d camera and make it move like a first person game

    hello all, me and my friend are writing a 3d game engine in directx 11 in our spare time for fun in c++ but were wondering on how we would achieve making our camera move around our 3d world, or rather how to make the 3d world move around our camera, any help would be greatly appreciated. thanks :D
    See more | Go to post

  • Imposter
    started a topic Pragma
    in C

    Pragma

    How can i use a pragma directive in order to show warning by compiler when a variable is declared twice.. That is

    class a
    {
    int b;
    void f()
    {
    int b;
    }
    };

    although it is getting compiled without warning.
    See more | Go to post

  • mrmodest
    started a topic Multiple clients connect to server
    in C

    Multiple clients connect to server

    So... I am trying to write a C++ Server that can accept multiple clients. I have already written some very simple code that will accept one client but I am having trouble getting it to accept more than one. Below is the server code I have right now, it works but only for one client.
    Code:
    #include "info.h"
    
    using namespace std;
    
    int main(){
    
    long answer;
    char message[256];
    ...
    See more | Go to post

  • David H
    started a topic Which of these for loops will iterate faster?
    in C

    Which of these for loops will iterate faster?

    Which one of these for loops will iterate through each character in a std::string faster?
    Code:
    for (unsigned i = 0u; i < str.length(); ++i)
    Code:
    for (unsigned i = 0u, end = str.length(); i < end; ++i)
    See more | Go to post

  • Kiritler
    started a topic lexx/yacc incorrect analyzing?
    in C

    lexx/yacc incorrect analyzing?

    My program translates regular lexical expressions in DNF.
    Faced with the problem of incorrect reading of the input string
    The symbol "!" it recognize as a "(" and "*" causes segmentation fault

    I have no idea why it happens, I can't find any error in my code

    Thank you very much!
    To start write in the terminal:
    make
    ./DNF <test.txt...
    See more | Go to post

  • Reading from array into the file - with encoding ascii characters

    Dear members,
    I'm a newbie and I created a simple program, but I have one problem I can't deal with. I should work on Win CE.

    Ok: I want this program to read 'array of arrays' and save encoded data into file.txt. Every 3 bytes from there should be encoded from ASCII (function below).

    The biggest problem is with loop (or some other way to fix it) to read all array (without any skips).

    Now it's like:...
    See more | Go to post

  • psychocoyote
    started a topic expected } before else
    in C

    expected } before else

    Thanks for reading this in advance

    Basically I compile my script and I get this return error
    Code:
    lab05.cpp: In function ‘int main()’:
    lab05.cpp:46: error: expected `}' before ‘else’
    lab05.cpp: At global scope:
    lab05.cpp:46: error: expected unqualified-id before ‘else’
    lab05.cpp:61: error: expected declaration before ‘}’ token

    Anyone care to point and laugh at...
    See more | Go to post

  • Saurabh85
    started a topic Comparison of two waveforms of audio files
    in C

    Comparison of two waveforms of audio files

    Hi,
    I am a VC++ developer and currently need help in comparing two audio files. Lets say I have two wave files and one of it is created using the other with some modifications like lowering the loudness etc.

    Now, I have to compare these files and see if the modified one is almost copy of the original one, means, while creating the modified one, my application has unknowingly not distorted the file.

    A percentage value...
    See more | Go to post

  • KENNY LIU
    started a topic C++ constructor help!!
    in C

    C++ constructor help!!

    class description (MyString):

    class defines a sequence of characters (similar to class string). The implementation must be as an array of characters that are dynamically allocated and resized as necessary. You must use a null character to terminate the string - just like C-strings are null terminated.

    deafult constructor:

    Code:
    /// get_length(char *s) gets length of s before null character. buf is private
    ...
    See more | Go to post

  • Is anyone know how to program with telit GM862 for SMS in C++ or C

    Hi,

    Does anybody know how to program for sending SMS with telit GM862 GPS in C++ or C ?

    I am using 1st time. I have a Telit EVK2 kit. but I do not have any sdk & supporting sample program. Also want to know how to create the software environment for this.

    I have to write the sample program that will send the sms in predefine number example (longitude & latitude info).

    Plz give me...
    See more | Go to post

  • Iham
    started a topic Creating peg solitaire game in C++?
    in C

    Creating peg solitaire game in C++?

    The peg solitaire is in a triangular shape. Consisting of 15 pegs.

    I'm just curious as to how it is programmed and I'm starting to learn C++ on my own. So how would I do such a puzzle on C++?

    I'm looking forward to making a program that would solve the puzzle upon user prompting.

    If anyone has the code or something about it. It would be nice.
    See more | Go to post

  • Noodles
    started a topic scanf problems with strings and chars
    in C

    scanf problems with strings and chars

    Hi,

    Im quite new to C++ and am trying to learn most of the commands.
    So i wanted to make a Programm that has a normal mode and a non normal mode, kindof.
    And i wanted to make a question, which the user has to answer to start normal or unnormal mode.
    I think this code should show my idea.

    The if command never Reacts to a j.
    Why is that??

    Code:
      char jon;
    ...
    See more | Go to post

  • AttributeError: 'module' object has no attribute 'getElementsByTagName'

    Hey,

    I am using Ubuntu10.04 with python 2.6 on 64bit system,
    I want to run xml file but it stucks with an error as mentioned below.

    File "online_xml.py" , line 60, in readStrokes
    strokes = dom.getElements ByTagName("Stro ke")
    AttributeError: 'module' object has no attribute 'getElementsByT agName'

    Please suggest me about the possible error that may have.
    Thanks...
    See more | Go to post

  • error: none of the 2 overloads can convert parameter 1 from type 'char [7]'

    #include<iostre am>
    #include<string >
    using namespace std;
    class Class1
    {
    public :
    Class1(char* p){};

    };

    class Class2
    {
    public:
    Class2(char* p){ };
    };

    void f(Class1&x){};
    void f(Class2&x){};

    void main()
    {
    f("string");
    }
    See more | Go to post
Working...