Search:

Type: Posts; User: skg29

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    900

    I close everything, and opened again. rebuilt all...

    I close everything, and opened again. rebuilt all and its working :D thnks
  2. Replies
    4
    Views
    900

    I removed the & before fptr. But the file is...

    I removed the & before fptr. But the file is still empty. The program does not write anything.
  3. Replies
    4
    Views
    900

    File between functions

    Passing file between functions.

    In the main, there is a switch case. Option 1 executes Function named Main_Linear_Reg()


    #include "Pearson.h"
    void Main_Linear_Reg();
    void Main_Linear_Reg()...
  4. Replies
    6
    Views
    1,296

    ok it worked. But how about making it more...

    ok it worked. But how about making it more general. for example i want to build a map with <char><char> where the user inputs the data and decides when to end the loop.
  5. Replies
    6
    Views
    1,296

    following error: ||In function 'int...

    following error:



    ||In function 'int main(int, char**)':|
    12|error: no match for 'operator=' in 'mp[(i + 1)] = 66'|
    c:\program files...
  6. Replies
    6
    Views
    1,296

    STL Map - simple question on looping

    I have the following:



    #include <cstdlib>
    #include <iostream>
    #include <map>
    using namespace std;
  7. Thread: Counting vowels

    by skg29
    Replies
    3
    Views
    1,986

    Yes it does work. I did not know about that if....

    Yes it does work. I did not know about that if. Thanks :)
  8. Thread: Counting vowels

    by skg29
    Replies
    3
    Views
    1,986

    Counting vowels

    I have to write a program that takes a series of alphabets and displays the repeating vowels and their corresponding occurrence. The input can be either lower case or upper case. For help, i can...
  9. Thread: Return Error

    by skg29
    Replies
    3
    Views
    887

    Okay. Thanks :D

    Okay.
    Thanks :D
  10. Thread: Return Error

    by skg29
    Replies
    3
    Views
    887

    Return Error

    #include <cstdlib>
    #include <iostream>


    using namespace std;


    struct Student
    {
    string id;
  11. Replies
    8
    Views
    1,730

    Line 29 i tried reci = num e-1 ; but...

    Line 29 i tried


    reci = num e-1 ;


    but even 1/num does not work.
    No it was not a copy paste. I actually work it out in class on paper for that above question with normal numbers. So i tried...
  12. Replies
    8
    Views
    1,730

    Here is what i attempted. I was following some...

    Here is what i attempted. I was following some slides describing selection and loops.



    /* Title: Write a program to prompt the user for an integer and calculate the sum of all the integers
    ...
  13. Replies
    8
    Views
    1,730

    How do i use that to calculate in C ? do i just...

    How do i use that to calculate in C ? do i just write 1/X ?
  14. Replies
    8
    Views
    1,730

    Using E(exponential)

    I know that to you can represent 1.425 by 1425e-3. Is that correct?

    So if i want to do the inverse of a number (assuming X), then X e-1 is the reciprocal of X. Is that correct or i cannot use...
  15. Replies
    7
    Views
    2,286

    That there were eleven cars BUT in a consecutive...

    That there were eleven cars BUT in a consecutive row? right? Line 32 confirms if they are counted in a consecutive way. Am i right?
  16. Replies
    7
    Views
    2,286

    Tried that to no avail :(

    Tried that to no avail :(
  17. Replies
    7
    Views
    2,286

    Understanding some Logic

    Here is a program i am trying to figure out the logic. I can understand the commented lines but then the rest i do not comprehend. Could someone shine some lights.



    /* Title: Write a program...
  18. Thread: Nested While

    by skg29
    Replies
    4
    Views
    3,590

    I got that working ;) #include ...

    I got that working ;)




    #include <stdio.h>
    int main()
    {
    int m, n;
    int i=0;
  19. Thread: Nested While

    by skg29
    Replies
    4
    Views
    3,590

    Ok. I will try to figure out the things you said...

    Ok. I will try to figure out the things you said as actually am new to C programming.
  20. Thread: Nested While

    by skg29
    Replies
    4
    Views
    3,590

    Nested While

    Hello there :)

    I am stuck on how to use nest while!! This is the question:

    Write a program that reads in two integers m and n, and prints out an m-by-n rectangle of
    asterisks.
    ...
Results 1 to 20 of 21